Git Product home page Git Product logo

prom_mesos_state_exporter's Introduction

Prometheus Target Exporter

Exporting metrics scraped from mesos state, added reserved task related metrics so far:

reserved_tasks_count
used_reservations_count
unrunning_reserved_tasks_count

Using Docker

You can deploy this exporter using the ekesken/prom-mesos-state-exporter Docker image.

For example:

docker run -d -e PROM_TARGET_ENDPOINT=http://server-prom.marathon.mesos:9090/mesos-states -p 9099:9099 ekesken/prom-mesos-state-exporter
# try it
# curl http://localhost:9099/metrics

Deploy on Marathon

You can deploy this exporter on marathon via following curl command:

curl -XPOST -H 'Content-Type: application/json;' marathon.mesos:8080/v2/apps -d '{
  "cpus": 0.01,
  "mem": 100,
  "id": "/prom/mesos-state-exporter",
  "instances": 1,
  "env": {
    "MESOS_ENDPOINT": "http://leader.mesos:5050"
  },
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "ekesken/prom-mesos-state-exporter",
      "network": "BRIDGE",
      "privileged": true,
      "portMappings": [{"containerPort": 9099}]
    }
  },
  "healthChecks": [{"protocol": "HTTP", "path": "/metrics"}]
}'

Scrape config on prometheus

A sample prometheus mesos-state yaml example if you already have have mesos-dns:

  - job_name: 'mesos-state'
    dns_sd_configs:
      - names: ['_mesos-state-exporter-prom._tcp.marathon.mesos']

prom_mesos_state_exporter's People

Watchers

James Cloos avatar Mehmet Kağan Kayaalp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.