mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Fix otel collector & loki
This commit is contained in:
@@ -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."/" = {
|
||||
|
||||
@@ -29,6 +29,11 @@
|
||||
};
|
||||
common = {
|
||||
path_prefix = "/var/lib/loki";
|
||||
ring = {
|
||||
kvstore = {
|
||||
store = "inmemory";
|
||||
};
|
||||
};
|
||||
};
|
||||
schema_config = {
|
||||
configs = [
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user