Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mia-0032/fluent-plugin-stackdriver-monitoring
Stackdriver Monitoring custom metrics output plugin for Fluentd
https://github.com/mia-0032/fluent-plugin-stackdriver-monitoring
Last synced: 22 days ago
JSON representation
Stackdriver Monitoring custom metrics output plugin for Fluentd
- Host: GitHub
- URL: https://github.com/mia-0032/fluent-plugin-stackdriver-monitoring
- Owner: mia-0032
- License: mit
- Created: 2016-10-01T05:55:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T06:23:24.000Z (over 6 years ago)
- Last Synced: 2024-10-31T12:55:34.577Z (about 1 month ago)
- Language: Ruby
- Size: 19.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-google-cloud-operations - mia-0032/fluent-plugin-stackdriver-monitoring
README
# fluent-plugin-stackdriver-monitoring
[Stackdriver Monitoring](https://cloud.google.com/monitoring/) custom metrics output plugin for [Fluentd](http://www.fluentd.org/)
## Installation
```shell
$ gem install fluent-plugin-stackdriver-monitoring
```## Authentication
See [google-cloud-monitoring gem document](https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/google-cloud-monitoring#setup-authentication).
## Configuration
Sample configuration is below.
```
@type stackdriver_monitoring
project {{PROJECT_NAME}}
key {{KEY_NAME}}
type custom.googleapis.com/{{METRICS_NAME}}
metric_kind GAUGE
value_type INT64
flush_interval 1s # must be 1(sec) or above
```
- project (string, required)
- Set your Stackdriver project id.
- custom_metrics
- key (string, required)
- Specify field name in your log to send to Stackdriver.
- type (string, required)
- Set name of descriptor. It must start with `custom.googleapis.com/`.
- metric_kind(enum, required)
- See [metric kind](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind).
- You can specify `GAUGE` or `CUMULATIVE`.
- Custom metric does not support `DELTA`. See [here](https://cloud.google.com/monitoring/api/v3/metrics?hl=en#metric-kinds).
- value_type(enum, required)
- See [value type](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#valuetype).
- You can specify `BOOL`, `INT64` or `DOUBLE` if metric_kind is `GAUGE`. And `INT64` or `DOUBLE` can be specified if metric_kind is `CUMULATIVE`.
- Custom metric does not support `MONEY` and `STRING`. See [here](https://cloud.google.com/monitoring/api/v3/metrics?hl=en#metric-kinds).
- time_interval(time, optional)
- This param is used as the difference between start time and end time.
- It must be greater than 0s if metric_kind is set to `CUMULATIVE`.## TODO
- Add test!
- Support Unit and Monitored Resource in custom_metrics.