Issue on send metric's Attribute to oneuptime by OtelCollector #375

Closed
opened 2026-04-05 16:19:30 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @hilux66 on 9/17/2025

I've gathered exporter's metrics from OtelCollector
i send them to Oneuptime -->Telemetry and APM

Already I can see the metrics in Telemetry and APM -->metrics , i need to select the label of the metric by choosing Attribute in form but there is an issue to sending attributes from OtelCollector in config file that not works.

`receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
include_metadata: true
http:
endpoint: 0.0.0.0:4318
include_metadata: true
cors:
allowed_origins: [""]
allowed_headers: ["
"]
prometheus:
config:
scrape_configs:
- job_name: "fortiexporter"
scrape_interval: 30s
metrics_path: /probe
honor_labels: true
static_configs:
- targets:
- https://172.18.x.x:x

      relabel_configs:
        - source_labels: [__address__]
          target_label: __param_target

        - target_label: __address__
          replacement: '172.18.86.x:9710'

processors:
attributes/labels-to-resource:
actions:
- key: name
action: insert
from_attribute: name
- key: vdom
action: insert
from_attribute: vdom
- key: parent
action: insert
from_attribute: parent
- key: p2serial
action: insert
from_attribute: p2serial
batch:

exporters:
otlphttp:
endpoint: "http://open-telemetry-ingest:3403/otlp"
headers:
"Content-Type": "application/json"
"x-oneuptime-token": "1cd8bc30-xxxx-11f0-9c89-899afed7d4a4"
sending_queue:
enabled: true
num_consumers: 3
queue_size: 1000
debug:
verbosity: detailed

service:
telemetry:
logs:
level: "debug"
extensions: [headers_setter, health_check]
pipelines:
metrics:
receivers: [prometheus, otlp]
processors: [batch]
exporters: [otlphttp, debug]`

*Originally created by @hilux66 on 9/17/2025* I've gathered exporter's metrics from OtelCollector i send them to Oneuptime -->Telemetry and APM Already I can see the metrics in Telemetry and APM -->metrics , i need to select the label of the metric by choosing Attribute in form but there is an issue to sending attributes from OtelCollector in config file that not works. `receivers: otlp: protocols: grpc: endpoint: 0.0.0.0:4317 include_metadata: true http: endpoint: 0.0.0.0:4318 include_metadata: true cors: allowed_origins: ["*"] allowed_headers: ["*"] prometheus: config: scrape_configs: - job_name: "fortiexporter" scrape_interval: 30s metrics_path: /probe honor_labels: true static_configs: - targets: - https://172.18.x.x:x relabel_configs: - source_labels: [__address__] target_label: __param_target - target_label: __address__ replacement: '172.18.86.x:9710' processors: attributes/labels-to-resource: actions: - key: name action: insert from_attribute: name - key: vdom action: insert from_attribute: vdom - key: parent action: insert from_attribute: parent - key: p2serial action: insert from_attribute: p2serial batch: exporters: otlphttp: endpoint: "http://open-telemetry-ingest:3403/otlp" headers: "Content-Type": "application/json" "x-oneuptime-token": "1cd8bc30-xxxx-11f0-9c89-899afed7d4a4" sending_queue: enabled: true num_consumers: 3 queue_size: 1000 debug: verbosity: detailed service: telemetry: logs: level: "debug" extensions: [headers_setter, health_check] pipelines: metrics: receivers: [prometheus, otlp] processors: [batch] exporters: [otlphttp, debug]`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#375