{"id":13582995,"url":"https://github.com/metrico/promql2logql","last_synced_at":"2025-04-12T18:31:12.294Z","repository":{"id":145716671,"uuid":"522586852","full_name":"metrico/promql2logql","owner":"metrico","description":"PromQL to LogQL Transpiler for qryn.dev ","archived":false,"fork":false,"pushed_at":"2023-07-07T12:42:58.000Z","size":80,"stargazers_count":5,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T12:51:09.490Z","etag":null,"topics":["logql","loki","promql","qryn"],"latest_commit_sha":null,"homepage":"https://qryn.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metrico.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":"2022-08-08T14:39:46.000Z","updated_at":"2023-07-07T12:56:04.000Z","dependencies_parsed_at":"2023-07-18T06:01:27.475Z","dependency_job_id":null,"html_url":"https://github.com/metrico/promql2logql","commit_stats":null,"previous_names":["metrico/promql2logql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrico%2Fpromql2logql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrico%2Fpromql2logql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrico%2Fpromql2logql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrico%2Fpromql2logql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metrico","download_url":"https://codeload.github.com/metrico/promql2logql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248613316,"owners_count":21133490,"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":["logql","loki","promql","qryn"],"created_at":"2024-08-01T15:03:10.891Z","updated_at":"2025-04-12T18:31:12.273Z","avatar_url":"https://github.com/metrico.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cimg src=\"https://user-images.githubusercontent.com/1423657/218816262-e0e8d7ad-44d0-4a7d-9497-0d383ed78b83.png\" width=200 /\u003e\n\n\n# prom2logql\nPromQL to LogQL template based transpiler for [qryn](https://metrico.in)\n\n[![Node.js CI](https://github.com/lmangani/promql2logql/actions/workflows/test.yml/badge.svg)](https://github.com/lmangani/promql2logql/actions/workflows/test.yml)\n\n### Status\n* Experimental! Do not use it.\n\n## Usage\n```\nconst { prom2log, prom2labels } = require('@qxip/promql2logql');\nconst logql = prom2log(promql);\nconst labels = prom2labels(promql);\n```\n\n## Example\nInput:\n```\nrate(foo{\"bar\"=\"baz\")[5m]) by (x,y)\n```\nOutput:\n```\nrate({__name__=\"foo\", bar=\"baz\"} | unwrap_value [300s]) by (x,y)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrico%2Fpromql2logql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetrico%2Fpromql2logql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrico%2Fpromql2logql/lists"}