Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spaghettifunk/druid-prometheus-exporter
Service to collect Apache Druid metrics and export them to Prometheus
https://github.com/spaghettifunk/druid-prometheus-exporter
druid gin golang metrics prometheus
Last synced: 2 months ago
JSON representation
Service to collect Apache Druid metrics and export them to Prometheus
- Host: GitHub
- URL: https://github.com/spaghettifunk/druid-prometheus-exporter
- Owner: spaghettifunk
- License: apache-2.0
- Created: 2020-04-29T11:41:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-01T20:35:20.000Z (over 1 year ago)
- Last Synced: 2024-10-02T05:23:08.055Z (3 months ago)
- Topics: druid, gin, golang, metrics, prometheus
- Language: Go
- Homepage:
- Size: 138 KB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Apache Druid Prometheus Exporter
By setting up Apache Druid to push the metrics to a HTTP service, you are able to collect metrics for monitoring. This service exposes only two endpoints:
1. `/collect`
2. `/metrics`## Collect endpoint
This endpoint is a `POST` where you can instruct Druid to send the metrics to. The endpoint will parse each `feed` and update the corresponded prometheus metric.
## Metrics endpoint
The prometheus client exposes all the metrics on this endpoint. In this way, your prometheus server can read the exposed metrics.
## Druid configuration
You need to configure Druid to send the metrics to this service. To do so,you need to change the configuration file to add/update it with the following entries
```
druid_emitter_logging_logLevel=debug
druid_emitter_logging_loggerClass=HttpPostEmitter
druid_emitter=http
druid_emitter_http_recipientBaseUrl=http://{exporter_addr}:7000/collect
```In the `config` folder of this project, you can find an example.