Skip to content

Commit

Permalink
Add Azure Monitor exporter to otel-collector-config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0GiS0 committed Dec 18, 2023
1 parent fdb9822 commit be84d64
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .devcontainer/otel-collector-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ exporters:
insecure: true
loki:
endpoint: http://loki:3100/loki/api/v1/push

# azuremonitor:
# connection_string: "InstrumentationKey=a7c817bc-3165-4afc-9c73-8985c04f4b48;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/"
azuremonitor:
connection_string: "<INSTRUMENTATION_KEY>"


connectors:
Expand All @@ -40,23 +39,13 @@ processors:

service:
pipelines:
# traces:
# receivers: [zipkin, otlp ]
# exporters: [ debug, otlp, spanmetrics ]
# metrics:
# receivers: [ spanmetrics ]
# exporters: [ debug, prometheus ]
# logs:
# receivers: [ otlp ]
# processors: [ resource ]
# exporters: [ debug, loki ]
traces:
receivers: [ otlp ]
exporters: [ debug, otlp, spanmetrics ]
exporters: [ debug, otlp, spanmetrics, azuremonitor ]
metrics:
receivers: [ spanmetrics ]
exporters: [ debug, prometheus ]
exporters: [ debug, prometheus, azuremonitor ]
logs:
receivers: [ otlp ]
processors: [ resource ]
exporters: [ debug, loki ]
exporters: [ debug, loki, azuremonitor ]

0 comments on commit be84d64

Please sign in to comment.