Giter Site home page Giter Site logo

paambaati / mae Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 70 KB

🔥Mesos app exporter for Prometheus

Home Page: https://pypi.org/project/mae/

License: MIT License

Python 100.00%
mesos marathon prometheus prometheus-exporter prometheus-metrics python python3 python2

mae's Introduction

🔥 mae Maintainability Test Coverage

mae collects Prometheus metrics from your Mesos apps.

See Deployment Strategy to learn how to set up mae on your Mesos cluster.

Requirements

mae requires Python (>= 2.7), and supports Python 3 (>= 3.5).

Installation

pip install mae

Usage

$ mae --help

usage: mae [-h] app_port slave_address slave_port

positional arguments:
  app_port       Port on which this exporter will run on
  slave_address  Mesos slave address
  slave_port     Mesos slave port

The logging level of the CLI can also be configured with the LOG_LEVEL environment variable. Read the logging library's levels for all the available levels.

Task Labels

Once mae is up and running, it will start collecting metrics from all apps that have the prometheus.metrics.enabled label. You can also customize how the metrics are collected —

Task Label Description Required? Default
prometheus.metrics.enabled Enables metrics collection. If the label isn't found, the app's metrics are not collected. Yes
prometheus.metrics.port_index The port index where your app is exposing its Prometheus metrics. This is useful for Mesos apps that use multiple ports. No 0
prometheus.metrics.endpoint The endpoint where your app is exposing its metrics. No /metrics

Deployment Strategy

mae is designed to be run as a daemon on all Mesos slave nodes. This ideally involves 2 steps —

  1. Install mae as part of your base image/AMI or via user data.
  2. Run mae as a daemon. For example, if your distro supports systemd, here's a sample script that runs the exporter on port 8888
    # Save this to /etc/systemd/system/mae.service
    [Unit]
    Description=Mesos App Exporter
    After=network.target
    
    [Service]
    Type=simple
    Restart=on-failure
    Environment="LOG_LEVEL=INFO"
    ExecStart=/usr/local/bin/mae 8888 localhost 5051 # Assuming the Mesos slave process is running on port 5051
    
    [Install]
    WantedBy=multi-user.target
    

mae's People

Contributors

dependabot-preview[bot] avatar paambaati avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

mae's Issues

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.