Prometheus Mesos metrics snapshot exporter
This is an exporter for Prometheus to get Mesos metrics snapshot data.
Building and running
make
./prometheus_mesos_metrics <flags>
Flags
| Name |
Description |
| web.listen-address |
Address to listen on for web interface and telemetry. |
| web.telemetry-path |
Path under which to expose metrics. |
| exporter.discovery |
Enable auto disovery of elected master and active slaves. |
| exporter.discovery.master-url |
URL to a Mesos master. |
| exporter.local-url |
URL to the local slave if not using discovery. |
| exporter.interval |
Interval at which to fetch the Mesos slave metrics. |
| log.level |
Only log messages with the given severity or above. Valid levels: debug, info, warn, error, fatal, panic. |
Modes
prometheus_mesos_metrics can operate in two modes: discovery and local.
In local mode only the IP specified with the commandline flag -exporter.local-address will be queried and exported.
This mode is to facilitate having one exporter per Mesos slave.
In discovery mode the Mesos slaves are discovered using the -exporter.discovery.master flag. The exporter will fetch
all slave metrics and export them.
This mode lets you have one exporter per Mesos cluster.