{"id":22974051,"url":"https://github.com/bolcom/local-prometheus-grafana","last_synced_at":"2025-04-02T07:24:56.194Z","repository":{"id":49487788,"uuid":"377538936","full_name":"bolcom/local-prometheus-grafana","owner":"bolcom","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-20T16:10:34.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-07T22:27:16.351Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bolcom.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":"2021-06-16T15:13:57.000Z","updated_at":"2024-08-28T03:48:24.000Z","dependencies_parsed_at":"2022-08-24T20:20:29.493Z","dependency_job_id":null,"html_url":"https://github.com/bolcom/local-prometheus-grafana","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/bolcom%2Flocal-prometheus-grafana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolcom%2Flocal-prometheus-grafana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolcom%2Flocal-prometheus-grafana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolcom%2Flocal-prometheus-grafana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bolcom","download_url":"https://codeload.github.com/bolcom/local-prometheus-grafana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246771554,"owners_count":20831085,"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-14T23:59:58.930Z","updated_at":"2025-04-02T07:24:56.168Z","avatar_url":"https://github.com/bolcom.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to run local prometheus + grafana instance\nto test / validate your metrics...\n\n## how it is set-up\nPrometheus is configured to \"scrape\" the node-exporter container. This container is not necessary, but illustrates how you can add your own LOCAL Java/Go service to be scraped as well.\n\n## how to start\n- First download required files: https://github.com/bolcom/local-prometheus-grafana/archive/refs/heads/master.zip\n- Unzip contents\n- Run `docker-compose up` inside directory.\n- Then open grafana: http://localhost:3000/.\n- Log-in with username `foo` and password `bar`.\n- There is already a dashboard `test` created with one graph, fetching data out of the local prometheus instance. Wait a few minutes, then the data will arrive.\n\n## exposed services\n- prometheus server: http://localhost:9090/ (see targets here: http://localhost:9090/targets)\n- grafana: http://localhost:3000/\n- node-exporter: http://localhost:9100/metrics\n\nWhen all containers are started, open grafana and open the \"test\" dashboard.\n\n## how to add your local running service?\nSimple, change the prometheus config file (`prometheus.yml`) and add a new target. Since the whole stack is running in docker containers, you should connect to `host.docker.internal:\u003c\u003cyour-port\u003e\u003e`. An example can be found in the config file, just uncomment it.\n\n## More info\n\nSee this blogpost: https://techlab.bol.com/how-to-validate-your-apps-metrics-on-a-local-grafana-instance/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolcom%2Flocal-prometheus-grafana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolcom%2Flocal-prometheus-grafana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolcom%2Flocal-prometheus-grafana/lists"}