{"id":16372502,"url":"https://github.com/nicholasjhenry/prometheus-playground","last_synced_at":"2026-01-27T16:33:07.669Z","repository":{"id":66794465,"uuid":"276923379","full_name":"nicholasjhenry/prometheus-playground","owner":"nicholasjhenry","description":"Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud.","archived":false,"fork":false,"pushed_at":"2020-07-03T18:05:37.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T09:25:32.114Z","etag":null,"topics":["professional-development"],"latest_commit_sha":null,"homepage":"https://prometheus.io","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/nicholasjhenry.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":"2020-07-03T14:48:48.000Z","updated_at":"2022-01-31T00:00:00.000Z","dependencies_parsed_at":"2023-04-10T08:18:45.253Z","dependency_job_id":null,"html_url":"https://github.com/nicholasjhenry/prometheus-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicholasjhenry/prometheus-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fprometheus-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fprometheus-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fprometheus-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fprometheus-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicholasjhenry","download_url":"https://codeload.github.com/nicholasjhenry/prometheus-playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fprometheus-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: 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":["professional-development"],"created_at":"2024-10-11T03:11:35.629Z","updated_at":"2026-01-27T16:33:07.664Z","avatar_url":"https://github.com/nicholasjhenry.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus Playground\n\nhttps://prometheus.io/docs/introduction/overview/\n\n## Docs\n\n- Expression Language: https://prometheus.io/docs/prometheus/latest/querying/basics/\n- Configuration: https://prometheus.io/docs/prometheus/latest/configuration/configuration/\n- Label Best Practices: https://prometheus.io/docs/practices/naming/#labels\n\n## Notes\n\nhttps://prometheus.io/docs/introduction/first_steps/\n\n- Query metrics with console at `http://localhost:9090/graph`, e.g. `promhttp_metric_handler_requests_total`\n- Filter (only success responses) `promhttp_metric_handler_requests_total{code=\"200\"}`\n- Aggregation `count(promhttp_metric_handler_requests_total)`\n- Graph ( per-second HTTP request rate returning status code 200 ) `rate(promhttp_metric_handler_requests_total{code=\"200\"}[1m])`\n\nhttps://prometheus.io/docs/concepts/data_model/\n\n- \"streams of timestamped values belonging to the same metric and the same set of labeled dimensions.\"\n- \"Every time series is uniquely identified by its metric name and optional key-value pairs called labels.\"\n- metric name, e.g. `http_requests_total`\n- \"Labels enable Prometheus's dimensional data model\"\n- labels, e.g. method `POST` to route `/api/tracks`\n- \"Samples form the actual time series data.\"\n- sample `\u003cmetric name\u003e{\u003clabel name\u003e=\u003clabel value\u003e, ...}`, e.g. `api_http_requests_total{method=\"POST\", handler=\"/messages\"}`\n- same notation: http://opentsdb.net\n\nhttps://prometheus.io/docs/concepts/metric_types/\n\n- metric types: counter, gauge, histogram, summary\n- counter: a cumulative metric\n- gauge (a unit): \"represents a single numerical value that can arbitrarily go up and down\", e.g. temperatures, current memory usage, number of concurrent requests (count)\n- histogram (time): samples observations, counts in configurable buckets, e.g. request durations, response sizes\n    - cumulative counters: `\u003cbasename\u003e_bucket{le=\"\u003cupper inclusive bound\u003e\"}`\n    - total sum: `\u003cbasename\u003e_sum`\n    - count: `\u003cbasename\u003e_count`\n    - `histogram_quantile()`\n    - https://prometheus.io/docs/prometheus/latest/querying/functions/#histogram_quantile\n    - https://prometheus.io/docs/practices/histograms/\n    - Apdex (Application Performance Index): https://en.wikipedia.org/wiki/Apdex\n- summary: a summary samples observations, e.g. request durations, response sizes\n    - streaming quantiles: `\u003cbasename\u003e{quantile=\"\u003cφ\u003e\"}`\n    - total sum: `\u003cbasename\u003e_sum`\n    - count: `\u003cbasename\u003e_count`\n\nhttps://prometheus.io/docs/concepts/jobs_instances/\n\n- job with multiple instances\n- applied as labels: `job`, `instance`\n\nhttps://prometheus.io/docs/prometheus/latest/getting_started/\n\n- console\n    - `prometheus_target_interval_length_seconds`\n    - `count(prometheus_target_interval_length_seconds)`\n- graph\n    - `rate(prometheus_tsdb_head_chunks_created_total[1m])`\n- Setup node exporter, try `node_cpu_seconds_total`\n- graph `avg by (job, instance, mode) (rate(node_cpu_seconds_total[5m]))`\n\nhttps://prometheus.io/docs/guides/cadvisor/\n\n- http://localhost:8090 (not the default port of `8080`)\n- http://localhost:8090/docker/redis\n- http://localhost:9090/graph\n  - `container_start_time_seconds`\n  - `container_start_time_seconds{name=\"redis\"}`\n  - `rate(container_cpu_usage_seconds_total{name=\"redis\"}[1m])`\n  - `container_memory_usage_bytes{name=\"redis\"}`\n  - `rate(container_network_transmit_bytes_total[1m])`\n  - `rate(container_network_receive_bytes_total[1m])`\n- docs: https://github.com/google/cadvisor/blob/master/docs/storage/prometheus.md","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicholasjhenry%2Fprometheus-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicholasjhenry%2Fprometheus-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicholasjhenry%2Fprometheus-playground/lists"}