mirror of
https://github.com/fosrl/newt.git
synced 2026-03-27 04:56:41 +00:00
fix: Update otel-collector.yaml and docker-compose to correct endpoint configurations and enhance resource detection
This commit is contained in:
@@ -20,7 +20,7 @@ services:
|
|||||||
OTEL_EXPORTER_OTLP_ENDPOINT: "collector:4317"
|
OTEL_EXPORTER_OTLP_ENDPOINT: "collector:4317"
|
||||||
OTEL_EXPORTER_OTLP_INSECURE: "true"
|
OTEL_EXPORTER_OTLP_INSECURE: "true"
|
||||||
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: "cumulative"
|
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: "cumulative"
|
||||||
NEWT_ADMIN_ADDR: "0.0.0.0:2112"
|
NEWT_ADMIN_ADDR: ":2112"
|
||||||
# Base NEWT configuration
|
# Base NEWT configuration
|
||||||
PANGOLIN_ENDPOINT: ${PANGOLIN_ENDPOINT}
|
PANGOLIN_ENDPOINT: ${PANGOLIN_ENDPOINT}
|
||||||
NEWT_ID: ${NEWT_ID}
|
NEWT_ID: ${NEWT_ID}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ receivers:
|
|||||||
otlp:
|
otlp:
|
||||||
protocols:
|
protocols:
|
||||||
grpc:
|
grpc:
|
||||||
endpoint: 0.0.0.0:4317
|
endpoint: ":4317"
|
||||||
|
|
||||||
processors:
|
processors:
|
||||||
memory_limiter:
|
memory_limiter:
|
||||||
@@ -10,7 +10,7 @@ processors:
|
|||||||
limit_percentage: 80
|
limit_percentage: 80
|
||||||
spike_limit_percentage: 25
|
spike_limit_percentage: 25
|
||||||
resourcedetection:
|
resourcedetection:
|
||||||
detectors: [env, host]
|
detectors: [env, system]
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
batch: {}
|
batch: {}
|
||||||
transform/promote:
|
transform/promote:
|
||||||
@@ -19,12 +19,12 @@ processors:
|
|||||||
metric_statements:
|
metric_statements:
|
||||||
- context: datapoint
|
- context: datapoint
|
||||||
statements:
|
statements:
|
||||||
- set(attributes["service_instance_id"], resource.attributes["service.instance.id"]) where IsSet(resource.attributes["service.instance.id"])
|
- set(attributes["service_instance_id"], resource.attributes["service.instance.id"]) where resource.attributes["service.instance.id"] != nil
|
||||||
- set(attributes["site_id"], resource.attributes["site_id"]) where IsSet(resource.attributes["site_id"])
|
- set(attributes["site_id"], resource.attributes["site_id"]) where resource.attributes["site_id"] != nil
|
||||||
|
|
||||||
exporters:
|
exporters:
|
||||||
prometheus:
|
prometheus:
|
||||||
endpoint: 0.0.0.0:8889
|
endpoint: ":8889"
|
||||||
send_timestamps: true
|
send_timestamps: true
|
||||||
# Falls du kein Remote-Write-Ziel hast, kommentiere es aus:
|
# Falls du kein Remote-Write-Ziel hast, kommentiere es aus:
|
||||||
# prometheusremotewrite:
|
# prometheusremotewrite:
|
||||||
|
|||||||
Reference in New Issue
Block a user