2.5 KiB
fluent-plugin-clouderametrics
Fluentd 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 provides documentation on how to use each api.
Installation
RubyGems
$ gem install fluent-plugin-clouderametrics
Configuration
<source>
@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: "")
</source>
Sample Configuration
<source>
@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
</source>
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. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.