{"id":18292505,"url":"https://github.com/marclop/prometheus-demo","last_synced_at":"2026-06-17T21:03:32.073Z","repository":{"id":81024866,"uuid":"44274177","full_name":"marclop/prometheus-demo","owner":"marclop","description":"Prometheus demo / PoC","archived":false,"fork":false,"pushed_at":"2015-10-21T09:32:40.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T02:19:05.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/marclop.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}},"created_at":"2015-10-14T20:23:17.000Z","updated_at":"2015-10-14T20:24:34.000Z","dependencies_parsed_at":"2023-03-12T13:02:41.172Z","dependency_job_id":null,"html_url":"https://github.com/marclop/prometheus-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/marclop%2Fprometheus-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marclop%2Fprometheus-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marclop%2Fprometheus-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marclop%2Fprometheus-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marclop","download_url":"https://codeload.github.com/marclop/prometheus-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999852,"owners_count":21031044,"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-11-05T14:18:21.469Z","updated_at":"2026-06-17T21:03:32.067Z","avatar_url":"https://github.com/marclop.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus environment\n\nThis repo contains a prometheus environment composed by:\n* [Prometheus server](https://github.com/prometheus/prometheus)\n* [Push Gateway](https://github.com/prometheus/pushgateway) (which after the VelocityConf NYC will probably stop the use of that, for the obvious reasons pointed out by [Björn](https://github.com/beorn7))\n* Incrementer (python app)\n\n## Python app details\n\nThe app is (poorly) written in Python, uses prometheus [python3 library](https://github.com/slok/prometheus-python) but it serves the purpose it set, which is interact with Prometheus, interacting in two ways:\n\n* Generating a random value for a gauge called \"newgauge\"\n* Increment a counter called \"newcounter\"\n\n## Dependencies\n\nThis repo highly depends on Docker, so wherever you run this environment, you'll need to have the [docker](https://www.docker.com/) and [docker-compose](https://docs.docker.com/compose/)\n\n## Usage\n\n### Start it!\n\n```\nmake dev\n```\n\n### Stop and remove containers \u0026 incrementer image\n\n```\nmake nodev\n```\n\n### Logs\n\n```\nmake logs\n```\n\n### Run a gauge incrementer\n\nRuns a curl agains the incrementer API and sets the gauge to a random value 0 to 10 every 1.2s\n\n```\nmake gauge\n```\n\n### Run a counter incrementer\n\nRuns a curl agains the incrementer API and increments the counter\n\n```\nmake counter\n```\n\n## TODO\n\n* Docker-machine host auto-discovery (really not that difficult)\n* Counter name injection via API call (either GET or POST)\n* Alerts\n* Summary\n* Historygrams\n* Readme URLS for interaction (API and Prometheus)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarclop%2Fprometheus-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarclop%2Fprometheus-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarclop%2Fprometheus-demo/lists"}