-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev docker compose: add otel collector with prom remote write
Add experimental support for testing otel collector together with Mimir. For reproducing #5576 Signed-off-by: György Krajcsovits <[email protected]>
- Loading branch information
Showing
4 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
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
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
36 changes: 36 additions & 0 deletions
36
development/mimir-monolithic-mode/config/otel-collector-remote-write-config.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Based on information on https://opentelemetry.io/docs/collector/configuration/ | ||
receivers: | ||
# Data sources: traces, metrics, logs | ||
otlp: # Allow sending data via OTLP protocol | ||
protocols: | ||
grpc: | ||
http: | ||
|
||
# Data sources: metrics | ||
prometheus: # Scrape self | ||
config: | ||
scrape_configs: | ||
- job_name: otel-collector-remote-write | ||
scrape_interval: 5s | ||
static_configs: | ||
- targets: [localhost:8888] | ||
|
||
processors: | ||
batch: | ||
|
||
exporters: | ||
prometheusremotewrite: | ||
endpoint: http://mimir-1:8001/api/v1/push | ||
|
||
extensions: | ||
health_check: | ||
pprof: | ||
zpages: | ||
|
||
service: | ||
extensions: [health_check, pprof, zpages] | ||
pipelines: | ||
metrics: | ||
receivers: [otlp, prometheus] | ||
processors: [batch] | ||
exporters: [prometheusremotewrite] |
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