{"id":13581903,"url":"https://github.com/faceair/VictoriaLogs","last_synced_at":"2025-04-06T10:33:05.284Z","repository":{"id":47237086,"uuid":"302114367","full_name":"faceair/VictoriaLogs","owner":"faceair","description":"Loki On VictoriaMetrics","archived":true,"fork":false,"pushed_at":"2021-09-08T16:49:52.000Z","size":31060,"stargazers_count":65,"open_issues_count":2,"forks_count":12,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-05T21:45:23.712Z","etag":null,"topics":["grafana","logging","loki","prometheus","victoriametrics"],"latest_commit_sha":null,"homepage":"","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/faceair.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":"2020-10-07T17:42:07.000Z","updated_at":"2024-07-27T17:55:05.000Z","dependencies_parsed_at":"2022-09-01T06:51:45.499Z","dependency_job_id":null,"html_url":"https://github.com/faceair/VictoriaLogs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faceair%2FVictoriaLogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faceair%2FVictoriaLogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faceair%2FVictoriaLogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faceair%2FVictoriaLogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faceair","download_url":"https://codeload.github.com/faceair/VictoriaLogs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247470545,"owners_count":20944146,"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":["grafana","logging","loki","prometheus","victoriametrics"],"created_at":"2024-08-01T15:02:18.632Z","updated_at":"2025-04-06T10:33:03.799Z","avatar_url":"https://github.com/faceair.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Loki On VictoriaMetrics\n\nThis project experimentally supports the [loki](https://grafana.com/docs/loki/latest/overview/) protocol on the VictoriaMetrics Cluster, and the performance may be better than original loki.\n\nMore discussion can be found at [VictoriaMetrics#816](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/816#issuecomment-705538059)\n\n## Supported\n* LogQL, extends MetricsQL to support [filter expressions](https://grafana.com/docs/loki/latest/logql/#filter-expression) and full PromQL \u0026 MetricsQL support for querying metrics.\n* Major HTTP API\n  * `/loki/api/v1/query`\n  * `/loki/api/v1/query_range`\n  * `/loki/api/v1/label` \u0026 `/loki/api/v1/labels`\n  * `/loki/api/v1/label/\u003cname\u003e/values`\n  * `/loki/api/v1/tail` (websocket)\n  * `/loki/api/v1/push`\n* Additional support for prometheus-style data writing via tcp, like `loki{component=\"parser\",level=\"WARN\"} \"app log line\"`\n\n## How to build \u0026 run\n\n```\n$ make all\n$ bin/vmstorage\n$ bin/vmselect -storageNode 127.0.0.1:8401\n$ bin/vminsert -storageNode 127.0.0.1:8400 -importerListenAddr 127.0.0.1:2003\n```\n\nSet loki datasource endpoint as `http://127.0.0.1:8481/select/0/`, If you call it manually, the full URL is `http://127.0.0.1:8481/select/0/loki/api/v1/query_range`.\n\nTest insert logs with tcp:\n```\n$ nc 127.0.0.1 2003\nloki{component=\"parser\",level=\"WARN\"} \"app log line\"\n```\n\nIf you want to call push api to insert data, use `http://127.0.0.1:8480/insert/0/loki/api/v1/push`.\n\nFor more details, please refer to  [VictoriaMetrics Cluster](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/cluster)\n\n## Screenshot\n\n![loki-query-range](./docs/loki-query-range.png)\n\n![loki-live-tail](./docs/loki-live-tail.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaceair%2FVictoriaLogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaceair%2FVictoriaLogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaceair%2FVictoriaLogs/lists"}