{"id":14008213,"url":"https://github.com/qvl/promplot","last_synced_at":"2026-01-14T23:27:06.366Z","repository":{"id":48958780,"uuid":"79156692","full_name":"qvl/promplot","owner":"qvl","description":"Create plots from Prometheus metrics and send them to you","archived":true,"fork":false,"pushed_at":"2021-07-03T10:08:21.000Z","size":17052,"stargazers_count":139,"open_issues_count":3,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-14T08:25:37.954Z","etag":null,"topics":["cli","golang","graph","metrics","plot","prometheus","slack"],"latest_commit_sha":null,"homepage":"https://qvl.io/promplot","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/qvl.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}},"created_at":"2017-01-16T20:29:38.000Z","updated_at":"2025-04-22T17:54:39.000Z","dependencies_parsed_at":"2022-09-16T04:00:55.327Z","dependency_job_id":null,"html_url":"https://github.com/qvl/promplot","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/qvl/promplot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qvl%2Fpromplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qvl%2Fpromplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qvl%2Fpromplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qvl%2Fpromplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qvl","download_url":"https://codeload.github.com/qvl/promplot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qvl%2Fpromplot/sbom","scorecard":{"id":756423,"data":{"date":"2025-08-11","repo":{"name":"github.com/qvl/promplot","commit":"2a512f68802efef27815b0365370bc6a5c1f8565"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":1,"reason":"Found 4/22 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license:0","Info: FSF or OSI recognized license: MIT License: license:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.17.0 not signed: https://api.github.com/repos/qvl/promplot/releases/35927016","Warn: release artifact v0.16.0 not signed: https://api.github.com/repos/qvl/promplot/releases/7978402","Warn: release artifact v0.15 not signed: https://api.github.com/repos/qvl/promplot/releases/6316671","Warn: release artifact v0.14 not signed: https://api.github.com/repos/qvl/promplot/releases/6309666","Warn: release artifact v0.13 not signed: https://api.github.com/repos/qvl/promplot/releases/6309507","Warn: release artifact v0.17.0 does not have provenance: https://api.github.com/repos/qvl/promplot/releases/35927016","Warn: release artifact v0.16.0 does not have provenance: https://api.github.com/repos/qvl/promplot/releases/7978402","Warn: release artifact v0.15 does not have provenance: https://api.github.com/repos/qvl/promplot/releases/6316671","Warn: release artifact v0.14 does not have provenance: https://api.github.com/repos/qvl/promplot/releases/6309666","Warn: release artifact v0.13 does not have provenance: https://api.github.com/repos/qvl/promplot/releases/6309507"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T21:48:10.772Z","repository_id":48958780,"created_at":"2025-08-22T21:48:10.772Z","updated_at":"2025-08-22T21:48:10.772Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28438148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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":["cli","golang","graph","metrics","plot","prometheus","slack"],"created_at":"2024-08-10T11:01:25.483Z","updated_at":"2026-01-14T23:27:06.348Z","avatar_url":"https://github.com/qvl.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"#  :chart_with_upwards_trend: promplot\n\n[![GoDoc](https://godoc.org/qvl.io/promplot?status.svg)](https://pkg.go.dev/qvl.io/promplot)\n[![Build Status](https://travis-ci.org/qvl/promplot.svg?branch=master)](https://travis-ci.org/qvl/promplot)\n[![Go Report Card](https://goreportcard.com/badge/qvl.io/promplot)](https://goreportcard.com/report/qvl.io/promplot)\n\n\n`promplot` is an opinionated tool to create plots from your [Prometheus](https://prometheus.io/) metrics and automatically sends them to you.\n\n\n**Slack example:**\n\n``` sh\npromplot -title \"Open File Descriptors\" -query \"process_open_fds\" -range \"7d\" -url $promurl -slack $slacktoken -channel stats\n```\n\n![Demo Screenshot](screenshot.png)\n\nCurrently the only implemented transport is [Slack](https://slack.com/).\nBut feel free to [add a new one](#development)!\n\n\n    Usage: promplot [flags...]\n\n    Create and deliver plots from your Prometheus metrics.\n\n    Save plot to file or send it right to a slack channel.\n    One of -slack or -file must be set.\n\n\n    Flags:\n      -channel string\n            Required when -slack is set. Slack channel to post to.\n      -file string\n            File to save image to. Should have same extension as specified -format. Set -file to - to write to stdout.\n      -format string\n            Optional. Image format. For possible values see: https://godoc.org/github.com/gonum/plot/vg/draw#NewFormattedCanvas (default \"png\")\n      -query string\n            Required. PQL query.\n      -range value\n            Required. Time to look back to. Format: 5d12h34m56s\n      -silent\n            Optional. Suppress all output.\n      -slack string\n            Slack API token (https://api.slack.com/docs/oauth-test-tokens). Set to post plot to Slack.\n      -time value\n            Time for query (default is now). Format like the default format of the Unix date command.\n      -title string\n            Optional. Title of graph. (default \"Prometheus metrics\")\n      -url string\n            Required. URL of Prometheus server.\n      -version\n            Print binary version.\n\n\n## Install\n\n- With [Go](https://golang.org/):\n```\ngo get qvl.io/promplot\n```\n\n- With [Homebrew](http://brew.sh/):\n```\nbrew install qvl/tap/promplot\n```\n\n- Download from https://github.com/qvl/promplot/releases\n\n\n## Examples\n\nIt's simple to create a shell script for multiple plots:\n\n### Slack\n\n```sh\ncommon=\"-url $promurl -channel stats -slack $slacktoken -range 24h\"\n\npromplot $common \\\n  -title \"Free memory in MB\" \\\n  -query \"node_memory_MemFree /1024 /1024\"\n\npromplot $common \\\n  -title \"Free disk space in GB\" \\\n  -query \"node_filesystem_free /1024 /1024 /1024\"\n\npromplot $common \\\n  -title \"Open file descriptors\" \\\n  -query \"process_open_fds\"\n```\n\n\n### Mailing results\n\nThere is no mail transport built into promplot but you can use the Linux `mail` utility instead:\n\n```sh\ntmp=\"$(mktemp -d)\"\ncommon=\"-url $promurl -range 24h\"\n\npromplot $common \\\n  -title \"Free memory in MB\" \\\n  -query \"node_memory_MemFree /1024 /1024\" \\\n  -file ${tmp}/memory.png\n\npromplot $common \\\n  -title \"Open file descriptors\" \\\n  -query \"process_open_fds\" \\\n  -file ${tmp}/fds.png\n\necho \"Your daily report is here.\" | mail \\\n  -s \"Daily server stats\" \\\n  -a ${tmp}/memory.png \\\n  -a ${tmp}/fds.png \\\n  name@example.com\n```\n\n\nAnd with a scheduler like [sleepto](https://qvl.io/sleepto) you can easily automate this script to run every day or once a week.\n\n\n## Development\n\nMake sure to use `gofmt` and create a [Pull Request](https://github.com/qvl/promplot/pulls).\n\nWhen changing external dependencies please use [dep](https://github.com/golang/dep/) to vendor them.\n\n\n### Releasing\n\nPush a new Git tag and [GoReleaser](https://github.com/goreleaser/releaser) will automatically create a release.\n\n\n## Thank you\n\nto these helpful open source projects promplot is built on top of:\n\n- [Gonum Plot](https://github.com/gonum/plot)\n- [Prometheus Golang client](https://github.com/prometheus/client_golang)\n- [Slack API package](https://github.com/nlopes/slack)\n\n\n## License\n\n[MIT](./license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqvl%2Fpromplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqvl%2Fpromplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqvl%2Fpromplot/lists"}