# fluent-plugin-clouderametrics [![Gem Version](https://badge.fury.io/rb/fluent-plugin-clouderametrics.svg)](https://badge.fury.io/rb/fluent-plugin-clouderametrics) [Fluentd](https://fluentd.org/) input plugin for cloudera metrics. Cloudera metrics plugin queries for cloudera cluster metrics and is easily configurable so that you can pull the metrics you want. [Cloudera Manager APIs](https://cloudera.github.io/cm_api/apidocs/v19/index.html/) provides documentation on how to use each api. ## Installation ### RubyGems ``` $ gem install fluent-plugin-clouderametrics ``` ## Configuration ``` @type clouderametrics  tag   tagname (default: cloudera.metrics)  timespan 60 (default: 60) [seconds]  user username   (default: user) pass password (default: password) host http://cloudera-host.com (default: http://localhost) port 7180 (default: 7180)  api_version v19                         (default: v19) api_endpoint timeseries query select+*+where+roletype=DATANODE (default: "") ``` ### Sample Configuration ``` @type clouderametrics tag azure.cloudera timespan 10 user username pass password host http://test-cloudera-mn0.westus.cloudapp.azure.com port 7180 api_endpoint hosts api_version v17 query select+cpu_user_rate+where+roletype=DATANODE ``` ## Test Run tests: ``` $ rake test ``` ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.