send logs to loki
This commit is contained in:
parent
3b356139b2
commit
2a40b7e047
1 changed files with 6 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue