Skip to content

About

Prometheus Mesos Exporter

Resources

Stars

1 star

Watchers

1 watching

Forks

 
 

Repository files navigation

Prometheus Mesos Exporter

Exporter for Mesos master and agent metrics for Mesos > 1.0

Installing

$ go get github.com/mesosphere/mesos-exporter

Using

The Mesos Exporter can either expose cluster wide metrics from a master or task metrics from an agent.

Usage of mesos-exporter:
  -addr string
       	Address to listen on (default ":9110")
  -ignoreCompletedFrameworkTasks
       	Don't export task_state_time metric
  -master string
       	Expose metrics from master running on this URL
  -slave string
       	Expose metrics from slave running on this URL
  -timeout duration
       	Master polling timeout (default 5s)
  -exportedTaskLabels
       	Comma-separated list of task labels to whitelist for inclusion in the 
       	task_labels metric.        
  -trustedRedirects
        Comma-separated list of trusted hosts (ip addresses, host names) 
        where metrics requests can be redirected. Only valid on mesos masters

Usually you would run one exporter with -master pointing to the current leader and one exporter for each slave with -slave pointing to it. You should be able to run the mesos-exporter like this:

  • Master: mesos-exporter -master http://mesos-master.local:5050
  • Agent: mesos-exporter -slave http://mesos-slave.local:5051

Example /w docker run

docker run  prometheus_mesos_exporter -master http://mesos-master.local:5050

About

Prometheus Mesos Exporter

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages