You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Best performance for logging to `stdout`](#best-performance-for-stdout)
16
17
*[Testing](#testing)
@@ -259,6 +260,15 @@ module.exports = function createLogger(options) {
259
260
}
260
261
```
261
262
263
+
<aid="grafana-loki"></a>
264
+
## Using Grafana Loki to evaluate pino logs in a kubernetes cluster
265
+
266
+
To get pino logs into Grafana Loki there are two options:
267
+
268
+
1.**Push:** Use [pino-loki](https://github.com/Julien-R44/pino-loki) to send logs directly to Loki.
269
+
1.**Pull:** Configure Grafana Promtail to read and properly parse the logs before sending them to Loki.
270
+
Similar to Google Cloud logging, this involves remapping the log levels. See this [article](https://medium.com/@janpaepke/structured-logging-in-the-grafana-monitoring-stack-8aff0a5af2f5) for details.
0 commit comments