Skip to content

A lightweight RESTful metrics collector and Prometheus exporter

License

Notifications You must be signed in to change notification settings

mike-douglas/tiny-exporter

Repository files navigation

tiny-exporter

Release All Tests GitHub issues GitHub license

Tiny exporter is a lightweight RESTful API for collecting metrics that can be exported to Prometheus.

It supports storing gauge, counter, and histogram metrics with labels.

Example Uses

  • A metrics collection and export agent for IoT devices
  • A sidecar to an app that wants to collect metrics
  • A lightweight metrics agent and exporter for a k8s cluster

Running

The easiest way to use this is with the Docker image at mdouglas/tiny-exporter.

Running with Docker

docker run -d -p 5000:9800 mdouglas/tiny-exporter:latest

Local Development / Running Manually

For local development or to run it yourself, it's simply a Flask app. Run it with:

FLASK_APP=api flask run

Documentation

Documentation can be found at the wiki.

License

See LICENSE