prometheus and otlp
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# scrape_configs:
|
||||
# # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
||||
# - job_name: "otel_collector"
|
||||
# static_configs:
|
||||
# - targets: ["otel_collector:6327"]
|
||||
|
||||
storage:
|
||||
tsdb:
|
||||
out_of_order_time_window: 30m
|
||||
|
||||
otlp:
|
||||
# Recommended attributes to be promoted to labels.
|
||||
promote_resource_attributes:
|
||||
- service.instance.id
|
||||
- service.name
|
||||
- service.namespace
|
||||
- service.version
|
||||
- container.name
|
||||
- deployment.environment
|
||||
- deployment.environment.name
|
||||
@@ -0,0 +1,11 @@
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
[Container]
|
||||
Image=quay.io/prometheus/prometheus:latest
|
||||
PublishPort=9090:9090
|
||||
Volume=prometheus-data.volume:/prometheus
|
||||
Volume=./prometheus-config.yml:/etc/prometheus/prometheus.yml:ro
|
||||
Network=monitoring.network
|
||||
HostName=prometheus
|
||||
Exec=--config.file=/etc/prometheus/prometheus.yml --web.enable-otlp-receiver
|
||||
Reference in New Issue
Block a user