Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Prometheus Mesos exporter

This is an exporter for Prometheus to get Mesos data.

The configuration, config.json should contain all Mesos slaves you want to
monitor.

Prometheus configuration to add this exporter:

job: {
  name: "mesos-exporter"
  scrape_interval: "5s"

  target_group: {
    target: "http://mesosexporter.example.com/metrics"
  }
}

Where http://mesosexporter.example.com/metrics is the URL to this exporter.

Building the binary can be done by running make.

Run the binary with the following command:

./bin/mesos_exporter -config-file=config.json

Docker

A Docker container is available at
https://registry.hub.docker.com/u/antonlindstrom/mesos-exporter/

If you want to use it with your own configuration, you can mount it as a
volume:

docker run -d -v /root/config.json:/config.json -p 4000:4000 antonlindstrom/mesos-exporter

It's also possible to use in your own Dockerfile:

FROM antonlindstrom/mesos-exporter
ADD config.json /config.json

Docker Pull Command
Owner
antonlindstrom
Source Repository

Comments (1)
rajasi
2 years ago

Please can anybody share a sample configuration file for running the docker container of prom/mesos-exporter or the format of 'config.json' for specifying the slaves to monitor.