Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 567 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 567 Bytes

openmetrics-mocker

Simple go server that serves a textfile from disk for its metrics endpoint. Allows for manual testing of OpenMetrics scrapers and visualizers.

Development and Testing

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