Simple go server that serves a textfile from disk for its metrics endpoint. Allows for manual testing of OpenMetrics scrapers and visualizers.
Run locally:
go run cmd/server.go
Build locally:
docker build -t openmetrics-mocker -f build/Dockerfile .
Deploy to Kubernetes:
# NOTE: modify the configmap to update the metrics whenever you need.
# you may also want to modify the image if testing your own
# version of the image.
kubectl apply -f deployments/deploy.yaml