{"id":22475494,"url":"https://github.com/philips/etcd-prometheus-operator-demo","last_synced_at":"2025-07-25T06:36:17.379Z","repository":{"id":66550429,"uuid":"73294919","full_name":"philips/etcd-prometheus-operator-demo","owner":"philips","description":null,"archived":false,"fork":false,"pushed_at":"2016-11-30T03:06:14.000Z","size":11,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T17:27:31.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philips.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-09T15:14:14.000Z","updated_at":"2018-08-19T12:32:51.000Z","dependencies_parsed_at":"2023-02-28T13:16:14.729Z","dependency_job_id":null,"html_url":"https://github.com/philips/etcd-prometheus-operator-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fetcd-prometheus-operator-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fetcd-prometheus-operator-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fetcd-prometheus-operator-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fetcd-prometheus-operator-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philips","download_url":"https://codeload.github.com/philips/etcd-prometheus-operator-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248817272,"owners_count":21166213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-06T13:17:39.758Z","updated_at":"2025-04-14T03:35:34.522Z","avatar_url":"https://github.com/philips.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# etcd-prometheus-operator-demo\n\nSimple demonstration of using etcd and Prometheus operators together.\n\n[Video demo from KubeCon](https://www.youtube.com/watch?v=Uf7PiHXqmnw\u0026index=80\u0026list=PLj6h78yzYM2PqgIGU1Qmi8nY7dqn9PCr4)\n\nPre-requisite:\n- Working [minikube and kubectl](https://github.com/kubernetes/minikube#installation)\n\n## Deploy Operators\n\nLaunch the [etcd Operator](https://coreos.com/blog/introducing-the-etcd-operator.html) and [Prometheus Operator](https://coreos.com/blog/the-prometheus-operator.html) in the cluster.\n\n\n```\nkubectl create -f https://coreos.com/operators/prometheus/latest/prometheus-operator.yaml\nkubectl create -f https://coreos.com/operators/etcd/latest/deployment.yaml\n```\n\n## Run the demo-cluster and monitor\n\nCreate a three member etcd cluster called \"demo-cluster\"\n\n```\nkubectl create -f  https://raw.githubusercontent.com/philips/etcd-prometheus-operator-demo/master/demo-cluster.yaml\n```\n\nConfirm it is working by finding three pods listed\n\n```\nkubectl get pods -l etcd_cluster=demo-cluster\n```\n\nCreate a Prometheus service to monitor this cluster\n\n```\nkubectl create -f https://raw.githubusercontent.com/philips/etcd-prometheus-operator-demo/master/demo-cluster-monitoring.yaml\n```\n\n## Try out Prometheus\n\nIf you are using minikube simply do \n\n```\nminikube service demo-cluster-prometheus\n```\n\nOtherwise visit the nodePort on a node IP\n\n```\nkubectl describe service demo-cluster-prometheus\n```\n\nTry out a query in prometheus like graphing the total bytes sent between peers\n\n```\nrate(etcd_network_peer_sent_bytes_total[30s])\n```\n\nAnd now try and delete a peer and see what happens to the graphs\n\n```\nkubectl delete pod demo-cluster-0000\n```\n\n## Cleanup\n\n```\nkubectl delete -f https://github.com/philips/etcd-prometheus-operator-demo/blob/master/demo-cluster.yaml\nkubectl delete -f https://raw.githubusercontent.com/philips/etcd-prometheus-operator-demo/master/demo-cluster-monitoring.yaml\n```\n\n\n## Putting some keys in\n\n```\nkubectl expose pod demo-cluster-0002 --selector='etcd_cluster=demo-cluster' --name=demo-cluster --type=NodePort  -l etcd_cluster=demo-cluster  --target-port 2379\n```\n\n```\nEP=$(minikube service --url demo-cluster); while true; do etcdctl --endpoints ${EP}  put hello etcd; done\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips%2Fetcd-prometheus-operator-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilips%2Fetcd-prometheus-operator-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips%2Fetcd-prometheus-operator-demo/lists"}