diff --git a/linux/observability-agent-autoconf.sh b/linux/observability-agent-autoconf.sh index 27c3ddd..8fe69e9 100755 --- a/linux/observability-agent-autoconf.sh +++ b/linux/observability-agent-autoconf.sh @@ -397,9 +397,13 @@ otelcol.receiver.otlp "default" { http { endpoint = "0.0.0.0:4318" } + grpc { + endpoint = "0.0.0.0:4317" + } output { metrics = [otelcol.exporter.prometheus.default.input] traces = [otelcol.processor.batch.default.input] + logs = [otelcol.exporter.loki.default.input] } } @@ -422,6 +426,19 @@ otelcol.exporter.otlphttp "traceEndpoint" { } } +otelcol.exporter.loki "default" { + forward_to = [loki.write.lokiEndpoint.receiver] +} + +loki.write "lokiEndpoint"{ + endpoint { + url = "https://api.fusionreactor.io/v1/logs" + basic_auth { + password = "$key" + } + } +} + EOF break elif [ "$ans" = "n" ]; then diff --git a/readme.md b/readme.md index db8af36..3cd00fd 100644 --- a/readme.md +++ b/readme.md @@ -144,7 +144,7 @@ If you wish to enable Open Telemetry metrics and traces, the following environme | Variable | Type | Example | Description | |-------------------|----------|---------|-------------------------------------------------| -| `otel_collection` | `bool` | `true` | Enables Open Telemetry metrics and traces | +| `otel_collection` | `bool` | `true` | Enables Open Telemetry metrics, traces and logs | ### Scraping from additional exporters At present, there are some integrations we don't support out the box. Use of these integrations is via a scrape endpoint.