{"id":20102944,"url":"https://github.com/stackrox/prometheus-metric-parser","last_synced_at":"2026-05-08T20:34:00.405Z","repository":{"id":56854871,"uuid":"259978402","full_name":"stackrox/prometheus-metric-parser","owner":"stackrox","description":"Utility to parse prometheus metrics and compare them against other metrics","archived":false,"fork":false,"pushed_at":"2024-04-22T13:03:31.000Z","size":212,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-22T13:59:30.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackrox.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}},"created_at":"2020-04-29T16:20:50.000Z","updated_at":"2024-04-22T13:59:34.338Z","dependencies_parsed_at":"2024-04-22T14:09:46.255Z","dependency_job_id":null,"html_url":"https://github.com/stackrox/prometheus-metric-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stackrox/prometheus-metric-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fprometheus-metric-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fprometheus-metric-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fprometheus-metric-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fprometheus-metric-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackrox","download_url":"https://codeload.github.com/stackrox/prometheus-metric-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fprometheus-metric-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32796003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-13T17:33:44.481Z","updated_at":"2026-05-08T20:34:00.388Z","avatar_url":"https://github.com/stackrox.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prometheus-metric-parser\nUtility to parse prometheus metrics and compare them against other metrics\n\nSample usage:\nSingle\n```\nprometheus-metric-parser single --file run/metrics-1 --metrics rox_central_sensor_event_duration\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=AlertResults  (2316931.820/20591) 112.522\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=Deployment  (35067.526/1000) 35.068\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=Namespace  (4.639/1) 4.639\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=Pod  (2470375.252/30640) 80.626\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=ProcessIndicator  (75900.908/124067) 0.612\nrox_central_sensor_event_duration Action=REMOVE_RESOURCE Type=AlertResults  (813122.062/1000) 813.122\nrox_central_sensor_event_duration Action=REMOVE_RESOURCE Type=Deployment  (643661.228/1000) 643.661\nrox_central_sensor_event_duration Action=REMOVE_RESOURCE Type=Pod  (2605066.704/30640) 85.022\nrox_central_sensor_event_duration Action=UNSET_ACTION_RESOURCE Type=ClusterStatusUpdate  (1.825/2) 0.913\nrox_central_sensor_event_duration Action=UNSET_ACTION_RESOURCE Type=ReprocessDeployment  (2355775.354/13561) 173.717\nrox_central_sensor_event_duration Action=UPDATE_RESOURCE Type=AlertResults  (1323609.459/5234) 252.887\nrox_central_sensor_event_duration Action=UPDATE_RESOURCE Type=Deployment  (1034455.449/5257) 196.777\nrox_central_sensor_event_duration Action=UPDATE_RESOURCE Type=Namespace  (3.804/1) 3.804\nrox_central_sensor_event_duration Action=UPDATE_RESOURCE Type=Pod  (506333.994/5000) 101.267\n```\n\nCompare\n```\nprometheus-metric-parser compare --new-file rocks-2d-ui-clicking/metrics-1 --old-file master-commit-latest/metrics-1 --metrics rox_central_sensor_event_duration\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=AlertResults  (old: (7337589.02/22827) 321.44, new (2316931.82/20591) 112.52): change: -64.9949%\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=Deployment  (old: (780959.81/2501) 312.26, new (35067.53/1000) 35.07): change: -88.7697%\nrox_central_sensor_event_duration Action=UPDATE_RESOURCE Type=Namespace  (old: (3.04/1) 3.04, new (3.80/1) 3.80): change: 25.2979%\nrox_central_sensor_event_duration Action=UPDATE_RESOURCE Type=Pod  (old: (1209997.35/12500) 96.80, new (506333.99/5000) 101.27): change: 4.6147%\nrox_central_sensor_event_duration Action=REMOVE_RESOURCE Type=Pod  (old: (10338396.54/75652) 136.66, new (2605066.70/30640) 85.02): change: -37.7847%\nrox_central_sensor_event_duration Action=UNSET_ACTION_RESOURCE Type=ClusterStatusUpdate  (old: (1.86/2) 0.93, new (1.83/2) 0.91): change: -1.9899%\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=ProcessIndicator  (old: (11889.16/326354) 0.04, new (75900.91/124067) 0.61): change: 1579.3007%\nrox_central_sensor_event_duration Action=REMOVE_RESOURCE Type=AlertResults  (old: (3135411.99/3272) 958.26, new (813122.06/1000) 813.12): change: -15.1456%\nrox_central_sensor_event_duration Action=REMOVE_RESOURCE Type=Deployment  (old: (4731132.52/3168) 1493.41, new (643661.23/1000) 643.66): change: -56.9000%\nrox_central_sensor_event_duration Action=UNSET_ACTION_RESOURCE Type=ReprocessDeployment  (old: (4907789.49/36457) 134.62, new (2355775.35/13561) 173.72): change: 29.0438%\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=Namespace  (old: (3.78/1) 3.78, new (4.64/1) 4.64): change: 22.6006%\nrox_central_sensor_event_duration Action=CREATE_RESOURCE Type=Pod  (old: (13212793.84/75477) 175.06, new (2470375.25/30640) 80.63): change: -53.9432%\nrox_central_sensor_event_duration Action=UPDATE_RESOURCE Type=AlertResults  (old: (7739267.29/7147) 1082.87, new (1323609.46/5234) 252.89): change: -76.6466%\nrox_central_sensor_event_duration Action=UPDATE_RESOURCE Type=Deployment  (old: (10362886.65/27410) 378.07, new (1034455.45/5257) 196.78): change: -47.9522%\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackrox%2Fprometheus-metric-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackrox%2Fprometheus-metric-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackrox%2Fprometheus-metric-parser/lists"}