{"id":16679038,"url":"https://github.com/dcoles/prometheus-pandas","last_synced_at":"2025-10-08T15:09:31.332Z","repository":{"id":40649910,"uuid":"159111132","full_name":"dcoles/prometheus-pandas","owner":"dcoles","description":"Pandas integration for Prometheus.","archived":false,"fork":false,"pushed_at":"2024-09-13T17:32:56.000Z","size":195,"stargazers_count":51,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-30T15:30:17.993Z","etag":null,"topics":["data-analysis","jupyter-notebook","pandas","prometheus","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/prometheus-pandas/","language":"Jupyter Notebook","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/dcoles.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}},"created_at":"2018-11-26T04:32:17.000Z","updated_at":"2025-07-01T07:48:25.000Z","dependencies_parsed_at":"2023-11-22T08:28:00.063Z","dependency_job_id":"fa82ac08-af9e-4b50-8ef6-ed7b18e98c2e","html_url":"https://github.com/dcoles/prometheus-pandas","commit_stats":{"total_commits":29,"total_committers":4,"mean_commits":7.25,"dds":"0.24137931034482762","last_synced_commit":"72762aad68137aa5bf7d38f8c92e4b7fefa9a728"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/dcoles/prometheus-pandas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoles%2Fprometheus-pandas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoles%2Fprometheus-pandas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoles%2Fprometheus-pandas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoles%2Fprometheus-pandas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcoles","download_url":"https://codeload.github.com/dcoles/prometheus-pandas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoles%2Fprometheus-pandas/sbom","scorecard":{"id":329837,"data":{"date":"2025-08-11","repo":{"name":"github.com/dcoles/prometheus-pandas","commit":"72762aad68137aa5bf7d38f8c92e4b7fefa9a728"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"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":"Code-Review","score":0,"reason":"Found 2/29 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-29gw-9793-fvw7","Warn: Project is vulnerable to: PYSEC-2015-24 / GHSA-4vwq-x64q-j4cj","Warn: Project is vulnerable to: PYSEC-2017-46 / GHSA-66gw-5xpf-gfp5","Warn: Project is vulnerable to: PYSEC-2015-25 / GHSA-92mr-v722-f48m","Warn: Project is vulnerable to: PYSEC-2022-12 / GHSA-pq7m-3gw7-gq5x","Warn: Project is vulnerable to: PYSEC-2017-47","Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"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-18T03:18:33.023Z","repository_id":40649910,"created_at":"2025-08-18T03:18:33.023Z","updated_at":"2025-08-18T03:18:33.023Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278964300,"owners_count":26076644,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["data-analysis","jupyter-notebook","pandas","prometheus","python"],"created_at":"2024-10-12T13:32:44.736Z","updated_at":"2025-10-08T15:09:31.302Z","avatar_url":"https://github.com/dcoles.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus Pandas\n\nPython library for querying [Prometheus](https://prometheus.io/) and accessing the results as\n [Pandas](https://pandas.pydata.org/) data structures.\n\nThis is mostly intended for use in [Jupyter](https://jupyter.org/) notebooks. See [Prometheus.ipynb](Prometheus.ipynb) for an example.\n\n## Example\n\nEvaluate an instant query at a single point in time:\n\n```python\n\u003e\u003e\u003e from prometheus_pandas import query\n\u003e\u003e\u003e\n\u003e\u003e\u003e p = query.Prometheus('http://localhost:9090')\n\u003e\u003e\u003e series = p.query('node_cpu_seconds_total{mode=\"system\"}', '2020-05-10T00:00:00Z')\n\u003e\u003e\u003e print(series)\nnode_cpu_seconds_total{cpu=\"0\",instance=\"localhost:9100\",job=\"node\",mode=\"system\"}    15706.47\nnode_cpu_seconds_total{cpu=\"1\",instance=\"localhost:9100\",job=\"node\",mode=\"system\"}    15133.25\nnode_cpu_seconds_total{cpu=\"2\",instance=\"localhost:9100\",job=\"node\",mode=\"system\"}    15095.59\nnode_cpu_seconds_total{cpu=\"3\",instance=\"localhost:9100\",job=\"node\",mode=\"system\"}    14649.20\ndtype: float64\n```\n\nEvaluates an expression query over a time range:\n\n```python\n\u003e\u003e\u003e from prometheus_pandas import query\n\u003e\u003e\u003e\n\u003e\u003e\u003e p = query.Prometheus('http://localhost:9090')\n\u003e\u003e\u003e dataframe = p.query_range(\n        'sum(rate(node_cpu_seconds_total{mode=~\"system|user\"}[1m])) by (mode)',\n        '2020-10-05T00:00:00Z', '2020-10-05T06:00:00Z', '1h')\n\u003e\u003e\u003e print(dataframe)\ndtype: float64\n---\n                     {mode=\"system\"}  {mode=\"user\"}\n2020-10-05 00:00:00         0.022667       0.038222\n2020-10-05 01:00:00         0.015333       0.036667\n2020-10-05 02:00:00         0.028000       0.040667\n2020-10-05 03:00:00         0.015111       0.034889\n2020-10-05 04:00:00         0.015556       0.038000\n2020-10-05 05:00:00         0.018444       0.040222\n2020-10-05 06:00:00         0.018222       0.035111\n```\n\nCustomizing the HTTP request:\n\n```python\n\u003e\u003e\u003e import requests\n\u003e\u003e\u003e from prometheus_pandas import query\n\u003e\u003e\u003e\n\u003e\u003e\u003e http = requests.Session()\n\u003e\u003e\u003e http.auth = ('user', 'pass')  # Basic authentication\n\u003e\u003e\u003e http.cert = '/path/client.cert'  # X.509 client certificate authentication\n\u003e\u003e\u003e http.verify = '/path/to/certfile'  # Custom certificate bundle\n\u003e\u003e\u003e\n\u003e\u003e\u003e p = query.Prometheus('http://localhost:9090', http)\n\u003e\u003e\u003e series = p.query('node_cpu_seconds_total{mode=\"system\"}', '2020-10-05T00:00:00Z')\n\u003e\u003e\u003e print(series)\nnode_cpu_seconds_total{cpu=\"0\",instance=\"localhost:9100\",job=\"node\",mode=\"system\"}    3954.92\ndtype: float64\n```\n\n## Installation\n\nLatest release via [`pip`](https://pip.pypa.io):\n\n```bash\npip install prometheus-pandas [--user]\n```\n\nvia Git:\n\n```bash\ngit clone https://github.com/dcoles/prometheus-pandas.git; cd prometheus-pandas\npython3 setup.py install [--user]\n```\n\n## Licence\n\nLicenced under the [MIT License](https://choosealicense.com/licenses/mit/). See `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcoles%2Fprometheus-pandas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcoles%2Fprometheus-pandas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcoles%2Fprometheus-pandas/lists"}