marathon-event-metrics
December 8, 2016 ยท View on GitHub
marathon-event-metrics is a tool for reporting Marathon events to InfluxDB.
Configuration
The tool is configured via the following environment variables:
INFLUX_HOST(no default value) - InfluxDB hostINFLUX_PORT(8086) - InfluxDB http API portINFLUX_DB(marathon) - name of the database that will hold the measurements. It must already exist. The tool will use the default retention policy.INFLUX_STATIC_TAGS(no default value) - a set of static tags to be sent with every data point, formatted according to Influx's line protocol, e. g.environment=dev,foo=barMARATHON_HOST(localhost) - Marathon hostMARATHON_PORT(8080) - Marathon http API portCALLBACK_HOST(localhost) - the host that Marathon should send the events to, aka the host this application is running onPORT0(defaults to the value ofAPP_PORT) - this application's http API port that is available "publicly" (e. g. when running inside a Docker container)APP_PORT(9999) - the "local" http API port
Running the application
Locally (requires NodeJS)
npm start
Using Docker
docker build .
docker run -e 'INFLUX_HOST=...' -e ... <image-id>
Supported events
Currently the tool reports the following event types:
status_update_event