{"id":27253457,"url":"https://github.com/marselester/prometheus-on-kubernetes","last_synced_at":"2025-06-12T23:02:21.535Z","repository":{"id":143042076,"uuid":"72521829","full_name":"marselester/prometheus-on-kubernetes","owner":"marselester","description":"Web app monitoring with Prometheus toolkit running on Kubernetes","archived":false,"fork":false,"pushed_at":"2016-11-02T11:13:18.000Z","size":9,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T23:02:04.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marselester.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2016-11-01T09:25:58.000Z","updated_at":"2020-02-15T06:57:18.000Z","dependencies_parsed_at":"2023-03-21T00:23:52.623Z","dependency_job_id":null,"html_url":"https://github.com/marselester/prometheus-on-kubernetes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marselester/prometheus-on-kubernetes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fprometheus-on-kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fprometheus-on-kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fprometheus-on-kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fprometheus-on-kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marselester","download_url":"https://codeload.github.com/marselester/prometheus-on-kubernetes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marselester%2Fprometheus-on-kubernetes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259546379,"owners_count":22874558,"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":"2025-04-11T01:27:40.217Z","updated_at":"2025-06-12T23:02:21.522Z","avatar_url":"https://github.com/marselester.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web app monitoring with Prometheus\n\nThis repository is an example set up of a web application written in Go\nthat exposes its metrics for [Prometheus](https://prometheus.io/) monitoring toolkit.\nThe application and Prometheus run on [Kubernetes](http://kubernetes.io/) cluster.\n\n## Hello app\n\nThere are three versions of the hello app which can be pulled from\n[Docker Hub](https://hub.docker.com/r/marselester/prom-on-k8s/).\n\n```bash\n$ sudo docker run --rm -p 8000:8000 marselester/prom-on-k8s:v3\n$ curl localhost:8000/hello\nHello, World!\n$ curl localhost:8000/metrics\n...\n# HELP hello_request_duration_seconds Histogram of the /hello request duration.\n# TYPE hello_request_duration_seconds histogram\nhello_request_duration_seconds_bucket{le=\"0.01\"} 0\nhello_request_duration_seconds_bucket{le=\"0.025\"} 0\nhello_request_duration_seconds_bucket{le=\"0.05\"} 0\nhello_request_duration_seconds_bucket{le=\"0.1\"} 1\nhello_request_duration_seconds_bucket{le=\"0.25\"} 1\nhello_request_duration_seconds_bucket{le=\"0.5\"} 1\nhello_request_duration_seconds_bucket{le=\"1\"} 1\nhello_request_duration_seconds_bucket{le=\"2.5\"} 1\nhello_request_duration_seconds_bucket{le=\"5\"} 1\nhello_request_duration_seconds_bucket{le=\"10\"} 1\nhello_request_duration_seconds_bucket{le=\"+Inf\"} 1\nhello_request_duration_seconds_sum 0.083953974\nhello_request_duration_seconds_count 1\n# HELP hello_requests_total Total number of /hello requests.\n# TYPE hello_requests_total counter\nhello_requests_total{status=\"500\"} 1\n```\n\nIf you want to build the hello app from source code, you should\nclone the repository into your `GOPATH`, otherwise vendoring won't work\n(we use [Glide](https://glide.sh/)).\n\n```bash\n$ git clone git@github.com:marselester/prometheus-on-kubernetes.git \\\n\t$GOPATH/src/github.com/marselester/prometheus-on-kubernetes\n$ cd $GOPATH/src/github.com/marselester/prometheus-on-kubernetes/hello-app\n$ glide install\n$ make build\n```\n\n## Kubernetes manifests\n\nKubernetes manifests have excessive names, e.g., `name: prometheus-deployment`\ninstead of just `name: prometheus`. That is done for demonstration purpose.\n\n- [prometheus][kube-prometheus]\n- [hello app][kube-hello]\n\n[kube-prometheus]: ./kube/prometheus\n[kube-hello]: ./kube/hello\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarselester%2Fprometheus-on-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarselester%2Fprometheus-on-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarselester%2Fprometheus-on-kubernetes/lists"}