docker: remove unused Alloy configuration for Loki

This commit is contained in:
Vincent Bernat
2025-08-30 07:24:03 +02:00
parent 91cd91f3f8
commit 84a6da3b8a
2 changed files with 0 additions and 57 deletions

View File

@@ -35,7 +35,6 @@ the ownership of the Prometheus volume:
- 🌱 *docker*: update node-exporter to 1.9.1
- 🌱 *docker*: stop spawning demo exporters by default
- 🌱 *build*: build with Go 1.25
- 🌱 *docker*: use Docker labels to dynamically configure Grafana Alloy
## 2.0.0-beta.4 - 2025-08-18

View File

@@ -1,56 +0,0 @@
discovery.relabel "lokilogs" {
targets = discovery.relabel.loki.output
rule {
source_labels = ["service_name"]
regex = "loki"
action = "keep"
}
}
loki.source.docker "lokilogs" {
host = "unix:///var/run/docker.sock"
targets = discovery.relabel.lokilogs.output
forward_to = [loki.process.lokilogs.receiver]
}
loki.process "lokilogs" {
forward_to = [loki.write.default.receiver]
// ts=2025-08-29T05:07:45.543770684Z caller=spanlogger.go:116 middleware=QueryShard.astMapperware org_id=fake traceID=0dd74c5aaeb81d32 user=fake level=warn msg="failed mapping AST" err="context canceled" query="{service_name=\"alloy\"}"
stage.logfmt {
mapping = {
ts = "",
level = "",
msg = "",
err = "",
query = "",
caller = "",
org_id = "",
trace_id = "",
user = "",
}
}
stage.labels {
values = {
level = "",
}
}
stage.structured_metadata {
values = {
query = "",
caller = "",
org_id = "",
trace_id = "",
user = "",
}
}
stage.template {
source = "message"
template = `{{ .msg }}{{ if .err }}: {{ .err }}{{ end }}`
}
stage.timestamp {
source = "ts"
format = "RFC3339"
}
stage.output {
source = "message"
}
}