1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 00:55:06 +03:00
awx/tools/otel/otel-collector-config.yaml
Chris Meyers cae42653bf Add recording
* Always output awx logs to a file via otel
* That log file can always be later replayed into a product that
  supports otlp at a later date.
* Useful when you find a problem that you need a time series DB to help
  find and solve.
* Useful if a community member or customer has a problem where a time
  series db would be helpful. You can take a "remote" users log and
  replay it locally for analysis.
2024-05-31 13:55:17 -04:00

51 lines
769 B
YAML

receivers:
otlp:
protocols:
grpc:
http:
exporters:
debug:
verbosity: detailed
file:
path: /awx-logs/awx-logs.json.zstd
rotation:
max_days: 14
localtime: false
max_megabytes: 300
max_backups: 200
format: json
compression: zstd
loki:
endpoint: http://loki:3100/loki/api/v1/push
tls:
insecure: true
headers:
"X-Scope-OrgID": "1"
default_labels_enabled:
exporter: true
job: true
instance: true
level: true
processors:
batch:
extensions:
health_check:
zpages:
endpoint: ":55679"
service:
pipelines:
logs:
receivers: [otlp]
processors: [batch]
exporters: [file, loki]
extensions:
- health_check
- zpages