[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4666":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},4666,"loki","grafana\u002Floki","grafana","Like Prometheus, but for logs.","https:\u002F\u002Fgrafana.com\u002Foss\u002Floki",null,"Go",28358,4024,377,1291,0,6,52,186,25,45,"GNU Affero General Public License v3.0",false,"main",true,[27,7,28,29,5,30],"cloudnative","hacktoberfest","logging","prometheus","2026-06-12 02:01:03","\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fsources\u002Flogo_and_name.png\" alt=\"Loki Logo\">\u003C\u002Fp>\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fgrafana\u002Floki\u002Factions\u002Fworkflows\u002Fcheck.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fgrafana\u002Floki\u002Factions\u002Fworkflows\u002Fcheck.yml\u002Fbadge.svg\" alt=\"Check\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Fgrafana\u002Floki\">\u003Cimg src=\"https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Fgrafana\u002Floki\" alt=\"Go Report Card\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fslack.grafana.com\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fjoin%20slack-%23loki-brightgreen.svg\" alt=\"Slack\" \u002F>\u003C\u002Fa>\n[![Fuzzing Status](https:\u002F\u002Foss-fuzz-build-logs.storage.googleapis.com\u002Fbadges\u002Floki.svg)](https:\u002F\u002Fbugs.chromium.org\u002Fp\u002Foss-fuzz\u002Fissues\u002Flist?sort=-opened&can=1&q=proj:loki)\n\n# Loki: like Prometheus, but for logs.\n\nLoki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by [Prometheus](https:\u002F\u002Fprometheus.io\u002F).\nIt is designed to be very cost effective and easy to operate.\nIt does not index the contents of the logs, but rather a set of labels for each log stream.\n\nCompared to other log aggregation systems, Loki:\n\n- does not do full text indexing on logs. By storing compressed, unstructured logs and only indexing metadata, Loki is simpler to operate and cheaper to run.\n- indexes and groups log streams using the same labels you’re already using with Prometheus, enabling you to seamlessly switch between metrics and logs using the same labels that you’re already using with Prometheus.\n- is an especially good fit for storing [Kubernetes](https:\u002F\u002Fkubernetes.io\u002F) Pod logs. Metadata such as Pod labels is automatically scraped and indexed.\n- has native support in Grafana (needs Grafana v6.0).\n\nA Loki-based logging stack consists of 3 components:\n\n- [Alloy](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Falloy) is agent, responsible for gathering logs and sending them to Loki.\n- [Loki](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Floki) is the main service, responsible for storing logs and processing queries.\n- [Grafana](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fgrafana) for querying and displaying the logs.\n\n**Note that Alloy replaced Promtail in the stack, because Promtail is considered to be feature complete, and future development for logs collection will be in [Grafana Alloy](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Falloy).**\n\nLoki is like Prometheus, but for logs: we prefer a multidimensional label-based approach to indexing, and want a single-binary, easy to operate system with no dependencies.\nLoki differs from Prometheus by focusing on logs instead of metrics, and delivering logs via push, instead of pull.\n\n## Getting started\n\n* [Installing Loki](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Finstallation\u002F)\n* [Installing Alloy](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Fsend-data\u002Falloy\u002F)\n* [Getting Started](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Fget-started\u002F)\n\n### ⚠️ Helm Chart Migration\nEffective March 16, 2026, the Grafana Loki Helm chart will be forked to a new repository [grafana-community\u002Fhelm-charts](https:\u002F\u002Fgithub.com\u002Fgrafana-community\u002Fhelm-charts).  The chart in the Loki repository will continue to be maintained for GEL users only.  See [#20705](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Floki\u002Fissues\u002F20705) for details.\n\n## Upgrading\n\n* [Upgrading Loki](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Fupgrading\u002F)\n\n## Documentation\n\n* [Latest release](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002F)\n* [Upcoming release](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Fnext\u002F), at the tip of the main branch\n\nCommonly used sections:\n\n- [API documentation](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Fapi\u002F) for getting logs into Loki.\n- [Labels](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Fgetting-started\u002Flabels\u002F)\n- [Operations](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Foperations\u002F)\n- [Docker Driver Client](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Fclients\u002Fdocker-driver\u002F) is a Docker plugin to send logs directly to Loki from Docker containers.\n- [LogCLI](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Fquery\u002Flogcli\u002F) provides a command-line interface for querying logs.\n- [Loki Canary](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Foperations\u002Floki-canary\u002F) monitors your Loki installation for missing logs.\n- [Troubleshooting](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Foperations\u002Ftroubleshooting\u002F) presents help dealing with error messages.\n- [Loki in Grafana](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Floki\u002Flatest\u002Foperations\u002Fgrafana\u002F) describes how to set up a Loki datasource in Grafana.\n\n## Getting Help\n\nIf you have any questions or feedback regarding Loki:\n\n- Search existing thread in the Grafana Labs community forum for Loki: [https:\u002F\u002Fcommunity.grafana.com](https:\u002F\u002Fcommunity.grafana.com\u002Fc\u002Fgrafana-loki\u002F)\n- Ask a question on the Loki Slack channel. To invite yourself to the Grafana Slack, visit [https:\u002F\u002Fslack.grafana.com\u002F](https:\u002F\u002Fslack.grafana.com\u002F) and join the #loki channel.\n- [File an issue](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Floki\u002Fissues\u002Fnew) for bugs, issues and feature suggestions.\n- Send an email to [lokiproject@googlegroups.com](mailto:lokiproject@googlegroups.com), or use the [web interface](https:\u002F\u002Fgroups.google.com\u002Fforum\u002F#!forum\u002Flokiproject).\n- UI issues should be filed directly in [Grafana](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fgrafana\u002Fissues\u002Fnew).\n\nYour feedback is always welcome.\n\n## Further Reading\n\n- The original [design doc](https:\u002F\u002Fdocs.google.com\u002Fdocument\u002Fd\u002F11tjK_lvp1-SVsFZjgOTr1vV3-q6vBAsZYIQ5ZeYBkyM\u002Fview) for Loki is a good source for discussion of the motivation and design decisions.\n- Callum Styan's March 2019 DevOpsDays Vancouver talk \"[Grafana Loki: Log Aggregation for Incident Investigations][devopsdays19-talk]\".\n- Grafana Labs blog post \"[How We Designed Loki to Work Easily Both as Microservices and as Monoliths][architecture-blog]\".\n- Tom Wilkie's early-2019 CNCF Paris\u002FFOSDEM talk \"[Grafana Loki: like Prometheus, but for logs][fosdem19-talk]\" ([slides][fosdem19-slides], [video][fosdem19-video]).\n- David Kaltschmidt's KubeCon 2018 talk \"[On the OSS Path to Full Observability with Grafana][kccna18-event]\" ([slides][kccna18-slides], [video][kccna18-video]) on how Loki fits into a cloud-native environment.\n- Goutham Veeramachaneni's blog post \"[Loki: Prometheus-inspired, open source logging for cloud natives](https:\u002F\u002Fgrafana.com\u002Fblog\u002F2018\u002F12\u002F12\u002Floki-prometheus-inspired-open-source-logging-for-cloud-natives\u002F)\" on details of the Loki architecture.\n- David Kaltschmidt's blog post \"[Closer look at Grafana's user interface for Loki](https:\u002F\u002Fgrafana.com\u002Fblog\u002F2019\u002F01\u002F02\u002Fcloser-look-at-grafanas-user-interface-for-loki\u002F)\" on the ideas that went into the logging user interface.\n\n[devopsdays19-talk]: https:\u002F\u002Fgrafana.com\u002Fblog\u002F2019\u002F05\u002F06\u002Fhow-loki-correlates-metrics-and-logs-and-saves-you-money\u002F\n[architecture-blog]: https:\u002F\u002Fgrafana.com\u002Fblog\u002F2019\u002F04\u002F15\u002Fhow-we-designed-loki-to-work-easily-both-as-microservices-and-as-monoliths\u002F\n[fosdem19-talk]: https:\u002F\u002Ffosdem.org\u002F2019\u002Fschedule\u002Fevent\u002Floki_prometheus_for_logs\u002F\n[fosdem19-slides]: https:\u002F\u002Fspeakerdeck.com\u002Fgrafana\u002Fgrafana-loki-like-prometheus-but-for-logs\n[fosdem19-video]: https:\u002F\u002Fmirror.as35701.net\u002Fvideo.fosdem.org\u002F2019\u002FUB2.252A\u002Floki_prometheus_for_logs.mp4\n[kccna18-event]: https:\u002F\u002Fkccna18.sched.com\u002Fevent\u002FGrXC\u002Fon-the-oss-path-to-full-observability-with-grafana-david-kaltschmidt-grafana-labs\n[kccna18-slides]: https:\u002F\u002Fspeakerdeck.com\u002Fdavkal\u002Fon-the-path-to-full-observability-with-oss-and-launch-of-loki\n[kccna18-video]: https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=U7C5SpRtK74&list=PLj6h78yzYM2PZf9eA7bhWnIh_mK1vyOfU&index=346\n\n## Contributing\n\nRefer to [CONTRIBUTING.md](CONTRIBUTING.md)\n\n### Building from source\n\nLoki can be run in a single host, no-dependencies mode using the following commands.\n\nYou need an up-to-date version of [Go](https:\u002F\u002Fgo.dev\u002F), we recommend using the version found in our [Makefile](https:\u002F\u002Fgithub.com\u002Fgrafana\u002Floki\u002Fblob\u002Fmain\u002FMakefile)\n\n```bash\n# Checkout source code\n$ git clone https:\u002F\u002Fgithub.com\u002Fgrafana\u002Floki\n$ cd loki\n\n# Build binary\n$ go build .\u002Fcmd\u002Floki\n\n# Run executable\n$ .\u002Floki -config.file=.\u002Fcmd\u002Floki\u002Floki-local-config.yaml\n```\n\nAlternatively, on Unix systems you can use `make` to build the binary, which adds additional arguments to the `go build` command.\n\n```bash\n# Build binary\n$ make loki\n\n# Run executable\n$ .\u002Fcmd\u002Floki\u002Floki -config.file=.\u002Fcmd\u002Floki\u002Floki-local-config.yaml\n```\n\nTo run multiple Loki tenants locally, ensure that auth_enabled is set to true and provide a runtime config with any tenant specific overrides.\n```bash\n# Build binary\n$ make loki\n\n# Run executable\n.\u002Floki -config.file=.\u002Fcmd\u002Floki\u002Floki-local-multi-tenant-config.yaml -runtime-config.file=.\u002Fcmd\u002Floki\u002Floki-overrides.yaml\n```\n\n## Adopters\n\nPlease see [ADOPTERS.md](ADOPTERS.md) for some of the organizations using Loki today.\nIf you would like to add your organization to the list, please open a PR to add it to the list.\n\n## License\n\nGrafana Loki is distributed under [AGPL-3.0-only](LICENSE). For Apache-2.0 exceptions, see [LICENSING.md](LICENSING.md).\n","Loki 是一个专为日志设计的聚合系统，灵感来源于 Prometheus。它采用多维度标签索引方式而非全文索引，通过存储压缩后的非结构化日志并仅对元数据进行索引，使得运营成本更低且易于管理。Loki 支持与 Prometheus 使用相同的标签体系，方便用户在度量指标和日志之间无缝切换，并特别适合用于 Kubernetes 环境中存储 Pod 日志。其技术栈包括负责收集日志并发送给 Loki 的 Alloy 代理、处理查询及存储的日志服务 Loki 本身以及用于展示查询结果的 Grafana。该方案非常适合需要高效、低成本且易于扩展的日志管理和分析场景，尤其是那些已经在使用 Prometheus 监控系统的云原生应用环境。",2,"2026-06-11 03:00:01","top_language"]