send logs to loki

This commit is contained in:
Charlotte 🦝 Delenk 2023-12-10 21:00:22 +01:00
parent 3b356139b2
commit 2a40b7e047
No known key found for this signature in database

View file

@ -1,6 +1,7 @@
{config, ...}: {
{config, pkgs, ...}: {
services.opentelemetry-collector = {
enable = true;
package = pkgs.opentelemetry-collector-contrib;
settings = {
receivers = {
otlp.protocols = {
@ -12,6 +13,9 @@
exporters = {
"otlp".endpoint = "nas.int.chir.rs:4317";
otlp.tls.insecure = true;
loki = {
endpoint = "https://nas.int.chir.rs:3100/loki/api/v1/push";
};
};
extensions = {
zpages = {};
@ -32,7 +36,7 @@
logs = {
receivers = ["otlp"];
processors = ["batch"];
exporters = ["otlp"];
exporters = ["loki"];
};
};
telemetry = {