Skip to content

Commit

Permalink
Adding attributes to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
sankur-codes committed Feb 18, 2025
1 parent c7b1858 commit ca42f90
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/deploy/generator/scripts/util-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,14 @@ IPADDRESS='$ipaddress'"
collection_interval: 20s
processors:
batch:
attributes/insert:
actions:
- key: \"location\"
action: insert
value: \"$LOCATION\"
- key: \"host\"
action: insert
value: \"$(hostname)\"
extensions:
health_check:
endpoint: $ipaddress:13133
Expand All @@ -498,7 +506,7 @@ service:
pipelines:
metrics:
receivers: [httpcheck]
processors: [batch]
processors: [batch, attributes/insert]
exporters: [otlp]"

write_file aro_otel_collector_appconfig_filename aro_otel_collector_appconfig_file true
Expand Down

0 comments on commit ca42f90

Please sign in to comment.