{"id":36444171,"url":"https://github.com/ylz-at/prometheus-charts","last_synced_at":"2026-01-11T22:02:42.047Z","repository":{"id":37424764,"uuid":"410274080","full_name":"ylz-at/prometheus-charts","owner":"ylz-at","description":"Visualize Prometheus queries in image format.","archived":false,"fork":false,"pushed_at":"2026-01-06T04:04:22.000Z","size":242,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-08T21:31:54.651Z","etag":null,"topics":["prometheus-client","prometheus-monitoring-solution"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ylz-at.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-25T13:02:30.000Z","updated_at":"2026-01-02T14:52:09.000Z","dependencies_parsed_at":"2024-03-10T15:51:05.391Z","dependency_job_id":"4faa32a2-ef09-4d3d-8dbf-12bb1b9aada2","html_url":"https://github.com/ylz-at/prometheus-charts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ylz-at/prometheus-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylz-at%2Fprometheus-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylz-at%2Fprometheus-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylz-at%2Fprometheus-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylz-at%2Fprometheus-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ylz-at","download_url":"https://codeload.github.com/ylz-at/prometheus-charts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylz-at%2Fprometheus-charts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28324844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T18:42:50.174Z","status":"ssl_error","status_checked_at":"2026-01-11T18:39:13.842Z","response_time":60,"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":["prometheus-client","prometheus-monitoring-solution"],"created_at":"2026-01-11T22:02:41.962Z","updated_at":"2026-01-11T22:02:42.037Z","avatar_url":"https://github.com/ylz-at.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus Charts [![Golang CI](https://github.com/ylz-at/prometheus-charts/actions/workflows/go.yml/badge.svg)](https://github.com/ylz-at/prometheus-charts/actions/workflows/go.yml) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fylz-at%2Fprometheus-charts.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fylz-at%2Fprometheus-charts?ref=badge_shield)\n\n`prometheus-charts` is used for plotting the metrics in prometheus to images.\n\n### Install\n- With Go:\n```shell script\n$ go get -u github.com/ylz-at/prometheus-charts\n```\n- From Source:\n```shell script\n$ go build -o bin/grafana-plot cmd/grafana-plot/main.go\n$ go build -o bin/prometheus-plot cmd/prometheus-plot/main.go\n```\n\n### Usage\n\n```shell script\n$ go run cmd/prometheus-plot/main.go --help\nUsage of prometheus-plot:\n  -addr string\n        Prometheus address (default \"http://127.0.0.1:9090\")\n  -format string\n        Output format (default \"png\")\n  -offset value\n        Query time offset (default 1h0m0s)\n  -output string\n        Output file\n  -query string\n        Query\n  -step value\n        Query step (default 15s)\n  -t value\n        Query point time (default Sat Aug  8 17:26:29 CST 2020)\n  -title string\n        Metric title (default \"Metric\")\n```\n\n### Example\n\n- start prometheus\n```shell script\n$ docker run --rm -d --name prometheus -p 9090:9090 prometheus/prometheus\n```\n\n- run this program\n```shell script\n$ go run cmd/prometheus-plot/main.go -query go_memstats_frees_total\n```\n\n- check the output\n```shell script\n$ ls Metric.png\nMetric.png\n```\n![Output](Metric.png)\n\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fylz-at%2Fprometheus-charts.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fylz-at%2Fprometheus-charts?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fylz-at%2Fprometheus-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fylz-at%2Fprometheus-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fylz-at%2Fprometheus-charts/lists"}