{"id":20260381,"url":"https://github.com/influxdata/promql","last_synced_at":"2025-04-11T01:32:32.273Z","repository":{"id":39009783,"uuid":"207942755","full_name":"influxdata/promql","owner":"influxdata","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-01T20:56:16.000Z","size":114,"stargazers_count":11,"open_issues_count":0,"forks_count":6,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-03-24T22:42:03.292Z","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/influxdata.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":"2019-09-12T01:57:13.000Z","updated_at":"2024-02-16T03:08:10.000Z","dependencies_parsed_at":"2022-09-06T00:53:13.224Z","dependency_job_id":null,"html_url":"https://github.com/influxdata/promql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fpromql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fpromql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fpromql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fpromql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/influxdata","download_url":"https://codeload.github.com/influxdata/promql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248325295,"owners_count":21084902,"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","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-14T11:19:22.796Z","updated_at":"2025-04-11T01:32:32.243Z","avatar_url":"https://github.com/influxdata.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PromQL Module\n\n[![GoDoc](https://godoc.org/github.com/influxdata/promql?status.svg)](http://godoc.org/github.com/influxdata/promql)\n\nThe PromQL module in this package is a pruned version of the native Prometheus [promql](https://github.com/prometheus/prometheus/tree/master/promql) package, but extracted into a single module with fewer dependencies.\n\nThis module removes the promql engine and keeps anything related to lexing and parsing the PromQL language.\n\nEach version of this module matches with the equivalent Prometheus version.\n\n## Example\n\nThe PromQL module can be used to parse an expression.\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/influxdata/promql/v2\"\n)\n\nvar myExpression = `http_requests_total{job=\"prometheus\"}[5m]`\n\nfunc main() {\n    expr, err := promql.ParseExpr(myExpression)\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Println(promql.Tree(expr))\n}\n```\n\n## Contributing\n\nAny changes to PromQL should not be made to this module as it is a pruned mirror of the original prometheus package. Changes should be submitted to the upstream [Prometheus](https://github.com/prometheus/prometheus) project and they will find their way into this repository when a new release happens.\n\nThe only changes that will be accepted into this repository are ones that fix a problem in the mirroring process, deviations from the upstream Prometheus, or operational changes to fulfill the primary purpose of this repository as a mirror of the promql package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Fpromql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfluxdata%2Fpromql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Fpromql/lists"}