@effectstream/grafana-loki 0.100.13 → 0.100.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @effectstream/grafana-loki
|
|
2
|
+
|
|
3
|
+
NPM wrapper around [Grafana Loki](https://grafana.com/oss/loki/) — the
|
|
4
|
+
log-aggregation backend EffectStream nodes ship structured logs to in
|
|
5
|
+
local development. Installs a pinned binary into
|
|
6
|
+
`node_modules/.bin/grafana-loki`.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
bun add @effectstream/grafana-loki
|
|
12
|
+
# or
|
|
13
|
+
npm install @effectstream/grafana-loki
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Standalone usage
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Start Loki with a config file
|
|
20
|
+
bunx grafana-loki -config.file=loki.yaml
|
|
21
|
+
|
|
22
|
+
# Or invoke through this package
|
|
23
|
+
bun run --bun @effectstream/grafana-loki/start
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The package downloads the pinned tarball for your OS/arch on install.
|
|
27
|
+
|
|
28
|
+
## Inside EffectStream
|
|
29
|
+
|
|
30
|
+
The orchestrator's observability step pairs this with
|
|
31
|
+
`@effectstream/grafana-alloy` so logs emitted via `@effectstream/log`
|
|
32
|
+
land in Loki, queryable from a local Grafana. Out of the box you get
|
|
33
|
+
component-tagged (`ComponentNames`) logs without writing any collector
|
|
34
|
+
config.
|
|
35
|
+
|
|
36
|
+
## Links
|
|
37
|
+
|
|
38
|
+
- Docs: https://effectstream.github.io/docs/packages/binaries/grafana-loki
|
|
39
|
+
- Source: https://github.com/PaimaStudios/paima-engine/tree/main/packages/binaries/grafana-loki
|
|
40
|
+
- Upstream Grafana Loki: https://grafana.com/oss/loki/
|