2018-02-28 01:32:13 +03:00
|
|
|
|
# fluent-plugin-clouderametrics
|
2018-03-03 00:22:38 +03:00
|
|
|
|
[![Gem Version](https://badge.fury.io/rb/fluent-plugin-clouderametrics.svg)](https://badge.fury.io/rb/fluent-plugin-clouderametrics)
|
2018-02-28 02:34:06 +03:00
|
|
|
|
|
2018-03-02 23:20:40 +03:00
|
|
|
|
[Fluentd](https://fluentd.org/) input plugin for cloudera metrics.
|
2018-02-28 02:34:06 +03:00
|
|
|
|
|
2018-03-02 23:20:40 +03:00
|
|
|
|
Cloudera metrics plugin queries for cloudera cluster metrics and is easily configurable so that you can pull the metrics you want.
|
|
|
|
|
|
2018-03-02 23:21:20 +03:00
|
|
|
|
[Cloudera Manager APIs](https://cloudera.github.io/cm_api/apidocs/v19/index.html/) provides documentation on how to use each api.
|
2018-02-28 02:34:06 +03:00
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
### RubyGems
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ gem install fluent-plugin-clouderametrics
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
|
|
```
|
2018-03-02 23:20:40 +03:00
|
|
|
|
<source>
|
2018-03-03 01:24:39 +03:00
|
|
|
|
@type clouderametrics
|
|
|
|
|
tag tagname (default: cloudera.metrics)
|
2018-03-03 01:24:12 +03:00
|
|
|
|
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)
|
2018-03-03 00:30:57 +03:00
|
|
|
|
api_endpoint timeseries
|
2018-03-08 21:42:39 +03:00
|
|
|
|
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
|
2018-03-02 23:20:40 +03:00
|
|
|
|
</source>
|
2018-02-28 02:34:06 +03:00
|
|
|
|
```
|
|
|
|
|
|
2018-03-03 00:48:00 +03:00
|
|
|
|
## Test
|
|
|
|
|
|
|
|
|
|
Run tests:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ rake test
|
|
|
|
|
```
|
|
|
|
|
|
2018-03-16 09:03:22 +03:00
|
|
|
|
## Contributing
|
2018-02-28 02:34:06 +03:00
|
|
|
|
|
2018-03-16 09:03:22 +03:00
|
|
|
|
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.
|