/datacollector

Super simple Prometheus UDP data collector

Primary LanguageGoApache License 2.0Apache-2.0

datacollector

Push data via UDP (port 8080). Pull pushed data via GET /metrics (port 9090)

This is just a proof of concept atm!

Build

go mod download # get the dependencies
go build -o bin/datacollector

Example

Run datacollector

bin/datacollector

Send stuff via UDP

nc -u 127.0.0.1 8080

Get the stuff

curl 127.0.0.1:9090/metrics