{"id":18640644,"url":"https://github.com/mrwinston/relabel-config-playground","last_synced_at":"2026-06-29T21:02:23.617Z","repository":{"id":138555535,"uuid":"467148704","full_name":"mrWinston/relabel-config-playground","owner":"mrWinston","description":"Small project for debugging prometheus relabel configs and recording rules","archived":false,"fork":false,"pushed_at":"2022-03-08T09:34:28.000Z","size":143,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T08:40:06.988Z","etag":null,"topics":["docker-compose","monitoring-tool","podman-compose","prometheus"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrWinston.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,"zenodo":null}},"created_at":"2022-03-07T15:22:02.000Z","updated_at":"2024-06-17T06:45:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb39658e-26e7-4f7b-9d10-132701b362d5","html_url":"https://github.com/mrWinston/relabel-config-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrWinston/relabel-config-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrWinston%2Frelabel-config-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrWinston%2Frelabel-config-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrWinston%2Frelabel-config-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrWinston%2Frelabel-config-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrWinston","download_url":"https://codeload.github.com/mrWinston/relabel-config-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrWinston%2Frelabel-config-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34942665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker-compose","monitoring-tool","podman-compose","prometheus"],"created_at":"2024-11-07T05:55:12.273Z","updated_at":"2026-06-29T21:02:23.613Z","avatar_url":"https://github.com/mrWinston.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus relabel config playground\n\nThis Repo helps creating and debugging prometheus relabel configs and recording\nrules by running a local prometheus instance that scrapes metrics from a static\nfile.\n\n## Prerequisites\n\n* [podman](https://podman.io/) or docker\n* [podman-compose](https://github.com/containers/podman-compose) or the docker equivalent\n\n## Using this project\n\n\u003e This short guide will be using `podman-compose`. If you're on `docker`, you should be able to just substitute `podman-compose` with `docker-compose`. But i did not test it with docker-compose.\n\nStart the stack using podman-compose:\n\n```\npodman-compose up --force-recreate\n```\n\nThis will spin up prometheus and the static metrics server. The stack looks like this:\n\n![stack overview](./docs/overview.png)\n\nThe prometheus UI will be made available under [localhost:9090](http://localhost:9090).\n\nChanges to [static-metrics](./static-metrics) should show up pretty immediately in the prometheus ui, as the scrape and evaluation_interval interval is only 1 second. (yes, that's not a lot. I don't like waiting)\n\nFor changes to the [relabel-configs](./prometheus.yml#L22) and [recording-rules.yml](./recording-rules.yml) to be effective, you will need to re-start the stack.\n\n## Node Exporter\n\nBy uncommenting the last 4 lines from [prometheus.yml](./prometheus.yml#L27) and the code block starting at line 14 in [docker-compose.yml](./docker-compose.yml#L14), node-exporter will also spawn and be scraped by the prometheus instance. This give you a whole lot more non-synthetic metrics to play around with.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrwinston%2Frelabel-config-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrwinston%2Frelabel-config-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrwinston%2Frelabel-config-playground/lists"}