The metrics bunder is a service receiving metrics from other services bunding them for further user in prometheus and other time series databases. It is as basic as it get's and does not provide any means of auth. https://metrics-bundler.nbg1.emile.space
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
emile 7a5049b42f Update 'README.md' 3 months ago
.gitignore Initial commit 3 months ago
Dockerfile wrote a simple Dockerfile 3 months ago
LICENSE Initial commit 3 months ago
README.md Update 'README.md' 3 months ago
main.go built a simple feature-complete metrics bundler 3 months ago

README.md

Go Report Card

metrics-bundler

The metrics bunder is a service receiving metrics from other services bunding them for further user in prometheus and other time series databases.

Functions (read / write metrics)

First of all, writing metrics works by submitting a POST request to the /metrics endpoint:

$ url -X POST --data "key=number&value=800" https://metrics-bundler.nbg1.emile.space/metrics

After that, a GET request can be submitted to the same endpoint (/metrics). It returns all of the metrics submitted:

$ curl -X GET https://metrics-bundler.nbg1.emile.space/metrics                                                                       
number 800.000000

Prometheus integration

Prometheus can be instructed to use this by creating a new job in the prometheus configuration file:

...

  - job_name: 'metrics-bundler'
    scrape_interval: 5s
    static_configs:
      - targets: ['<hostname>:<port>']

...

Using the job a above, prometheus is instructed to scrape the /metrics endpoint of the given host every 5 seconds.