{"id":20548370,"url":"https://github.com/email2vimalraj/prometheus-docker","last_synced_at":"2026-03-06T21:32:15.822Z","repository":{"id":152670103,"uuid":"224473436","full_name":"email2vimalraj/prometheus-docker","owner":"email2vimalraj","description":"Learning prometheus by setting up end-to-end","archived":false,"fork":false,"pushed_at":"2019-11-27T16:33:01.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T10:45:15.044Z","etag":null,"topics":["alertmanager","metrics","prometheus","pushgateway"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/email2vimalraj.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}},"created_at":"2019-11-27T16:32:43.000Z","updated_at":"2019-11-27T16:34:18.000Z","dependencies_parsed_at":"2023-06-18T03:33:39.821Z","dependency_job_id":null,"html_url":"https://github.com/email2vimalraj/prometheus-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/email2vimalraj/prometheus-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/email2vimalraj%2Fprometheus-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/email2vimalraj%2Fprometheus-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/email2vimalraj%2Fprometheus-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/email2vimalraj%2Fprometheus-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/email2vimalraj","download_url":"https://codeload.github.com/email2vimalraj/prometheus-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/email2vimalraj%2Fprometheus-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30198661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["alertmanager","metrics","prometheus","pushgateway"],"created_at":"2024-11-16T02:13:12.886Z","updated_at":"2026-03-06T21:32:15.769Z","avatar_url":"https://github.com/email2vimalraj.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus in Docker\n\nThis effort is to help me understand on how to setup prometheus server, push gateway and its alert manager from start to end without any tools from the market.\n\nI would've simply used the docker images which prometheus gives, however this excercise is purely for my own learning purpose on how things work.\n\n## Setup\n\n- Create a docker network for this entire setup first: `docker network create --driver=bridge prom-network`\n- Clone this repo\n- From the parent directory, run:\n\n```bash\ndocker image build -t vimal/prometheus:1.0 .\ncd node-exporter-docker\ndocker image build -t vimal/node-exporter:1.0 .\ncd ../alert-manager-docker\ndocker image build -t vimal/alertmanager:1.0 .\ncd ..\n```\n\n- Create the prometheus container:\n\n```bash\ndocker run --name prometheus-vimal --network prom-network -p 9090:9090 -v /Users/vimal/development/playground/prometheus-playground/prom-docker/prometheus.yml:/usr/mware/prometheus/prometheus.yml -v /Users/vimal/development/playground/prometheus-playground/prom-docker/alert.rules.yml:/usr/mware/prometheus/alert.rules.yml --rm -dt vimal/prometheus:1.0\n```\n\nI've created two volume points here, one for `prometheus` configuration and another for `alert rules`. Please refer those files\n\n- Create the node exporter container:\n\n```bash\ndocker run --name node-exporter-vimal --network prom-network -p 9100:9100 --rm -dt vimal/node-exporter:1.0\n```\n\n- Create the alert manager container:\n\n```bash\ndocker run --name alertmanager-vimal --network prom-network -p 9093:9093 --rm -dt vimal/alertmanager:1.0\n```\n\n- Prometheus: http://localhost:9090/\n- Node Exporter: http://localhost:9100/metrics\n- Alert Manager: http://localhost:9093/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femail2vimalraj%2Fprometheus-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femail2vimalraj%2Fprometheus-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femail2vimalraj%2Fprometheus-docker/lists"}