.. | ||
alertingrules.yaml | ||
deployment.yaml | ||
docker-compose.yaml | ||
Dockerfile | ||
exporter.py | ||
kustomization.yaml | ||
README.md | ||
service.yaml | ||
servicemonitor.yaml |
Python environment setup for testing
Install the prometheus prometheus client
pip install prometheus-client
Deployment
Setup etcd running inmemory including backups
See here.
Build the docker image
Build the docker image (after changing the docker repo URL in the docker-compose.yaml
and in the deployment.yaml
):
docker compose Build
docker compose push
Deploy onto your cluster
kubectl apply -k .