Centralized logging via otel

This commit is contained in:
Chris Meyers
2024-05-13 11:16:17 -04:00
committed by Chris Meyers
parent d0fe0ed796
commit 0eb465531c
11 changed files with 270 additions and 0 deletions

View File

@@ -613,3 +613,13 @@ docker exec -it -e VAULT_TOKEN=<token> tools_vault_1 vault kv get --address=http
### Prometheus and Grafana integration
See docs at https://github.com/ansible/awx/blob/devel/tools/grafana/README.md
### OpenTelemetry Integration
```bash
OTEL=true GRAFANA=true LOKI=true PROMETHEUS=true make docker-compose
```
This will start the sidecar container `tools_otel_1` and configure AWX logging to send to it. The OpenTelemetry Collector is configured to export logs to Loki. Grafana is configured with Loki as a datasource. AWX logs can be viewed in Grafana.
`http://localhost:3001` grafana