code/etcd-inmemory-monitoring
2023-04-10 19:28:42 +00:00
..
alertingrules.yaml updates after writing blog 2023-04-10 21:23:12 +02:00
deployment.yaml updates after writing blog 2023-04-10 21:23:12 +02:00
docker-compose.yaml updates after writing blog 2023-04-10 21:23:12 +02:00
Dockerfile etcd monitoring code examples. 2023-04-10 20:52:24 +02:00
exporter.py etcd monitoring code examples. 2023-04-10 20:52:24 +02:00
kustomization.yaml etcd monitoring code examples. 2023-04-10 20:52:24 +02:00
README.md Update 'etcd-inmemory-monitoring/README.md' 2023-04-10 19:28:42 +00:00
service.yaml updates after writing blog 2023-04-10 21:23:12 +02:00
servicemonitor.yaml updates after writing blog 2023-04-10 21:23:12 +02:00

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 .