Receive and aggregate fleeting metrics (from FaaS).
This proof of concept uses:
- QUIC without http3 as a transport protocol
- statsd string format for metrics
In the client/main.go
example, we send multiple metric counter, to confirm it is summed in the prometheus endpoint output.
Library used:
- quic-go, a QUIC implementation in pure go
- go-dogstatsd-parser, a standalone parser for DogStatsD metrics protocol
- prometheus/client_golang, the Go client library for prometheus
- opentelemetry-go, the Go implementation of OpenTelemetry
Launch the server
go run main.go
Send sample metrics
go run client/main.go
View prometheus metrics
curl localhost:2223/metrics