39 lines
980 B
YAML
39 lines
980 B
YAML
alloy:
|
|
configMap:
|
|
content: |-
|
|
prometheus.exporter.self "default" {
|
|
}
|
|
|
|
prometheus.scrape "metamonitoring" {
|
|
targets = prometheus.exporter.self.default.targets
|
|
forward_to = [prometheus.remote_write.default.receiver]
|
|
}
|
|
|
|
prometheus.remote_write "default" {
|
|
endpoint {
|
|
url = "http://mimir-nginx.mimir-distributed.svc/api/v1/push"
|
|
}
|
|
}
|
|
|
|
logging {
|
|
level = "warn"
|
|
format = "json"
|
|
write_to = [loki.write.default.receiver]
|
|
}
|
|
|
|
loki.write "default" {
|
|
endpoint {
|
|
url = "http://loki-gateway.loki-distributed.svc.cluster.local/loki/api/v1/push"
|
|
}
|
|
}
|
|
|
|
tracing {
|
|
sampling_fraction = 0.1
|
|
write_to = [otelcol.exporter.otlp.default.input]
|
|
}
|
|
|
|
otelcol.exporter.otlp "default" {
|
|
client {
|
|
endpoint = "tempo-distributor.trace-test.svc.cluster.local:4317"
|
|
}
|
|
} |