Skip to content

Commit

Permalink
Merge pull request #60 from intergral/otel
Browse files Browse the repository at this point in the history
feat(otel): added otel logging
  • Loading branch information
ibalal-intergral authored Oct 29, 2024
2 parents cac6c00 + 4644cf2 commit 53d7afd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions linux/observability-agent-autoconf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 53d7afd

Please sign in to comment.