Fix otel collector & loki

This commit is contained in:
2025-05-29 15:32:35 +00:00
parent faa49e32d8
commit db63115735
3 changed files with 26 additions and 16 deletions

View File

@@ -133,7 +133,7 @@ in {
extraConfig = "proxy_pass_header Authorization;";
};
};
# virtualHosts."otel-groc.sdg.moe" = {
# virtualHosts."otel-grpc.sdg.moe" = {
# enableACME = true;
# addSSL = true;
# locations."/" = {

View File

@@ -29,6 +29,11 @@
};
common = {
path_prefix = "/var/lib/loki";
ring = {
kvstore = {
store = "inmemory";
};
};
};
schema_config = {
configs = [

View File

@@ -2,11 +2,11 @@ receivers:
otlp:
protocols:
grpc:
endpoint: localhost:4317
endpoint: localhost:4318
auth:
authenticator: basicauth/server
http:
endpoint: localhost:4318
endpoint: localhost:4319
auth:
authenticator: basicauth/server
@@ -20,26 +20,31 @@ processors:
batch:
exporters:
otlp/jaeger: # Jaeger supports OTLP directly
endpoint: https://jaeger.example.com:4317
prometheusremotewrite: # the PRW exporter, to ingest metrics to backend
endpoint: https://prw.example.com/v1/api/remote_write
file: # the File Exporter, to ingest logs to local file
path: ./app42_example.log
rotation:
otlp/mimir:
endpoint: localhost:9095
tls:
insecure: true
otlp/loki:
endpoint: localhost:9096
tls:
insecure: true
otlp/tempo:
endpoint: localhost:9097
tls:
insecure: true
service:
extensions: [basicauth/server]
pipelines:
traces/dev:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp/jaeger]
metrics/prod:
exporters: [otlp/tempo]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [prometheusremotewrite]
logs/dev:
exporters: [otlp/mimir]
logs:
receivers: [otlp]
processors: [batch]
exporters: [file]
exporters: [otlp/loki]