Last active
October 7, 2024 22:42
-
-
Save benbhall/04b3ec79b6a1934be586efbf06a0ef21 to your computer and use it in GitHub Desktop.
OTEL Collector Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
receivers: | |
otlp: | |
protocols: | |
grpc: | |
http: | |
filelog: | |
include: [ /var/log/myservice/*.json ] | |
operators: | |
- type: json_parser | |
timestamp: | |
parse_from: attributes.time | |
layout: '%Y-%m-%d %H:%M:%S' | |
exporters: | |
elasticsearch/trace: | |
endpoints: [https://elastic.example.com:9200] | |
traces_index: trace_index | |
elasticsearch/log: | |
endpoints: [http://localhost:9200] | |
logs_index: my_log_index | |
prometheus: | |
endpoint: "1.2.3.4:1234" | |
file/rotation_with_default_settings: | |
path: ./foo | |
rotation: | |
service: | |
pipelines: | |
traces: | |
receivers: [otlp] | |
exporters: [otlp, elasticsearch/trace] | |
logs: | |
receivers: [otlp] | |
exporters: [otlp, elasticsearch/log, file/rotation_with_default_settings] | |
metrics: | |
receivers: [otlp] | |
exporters: [otlp, prometheus] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment