Add monitoring stack
This commit is contained in:
23
grafana/alloy_values.yaml
Normal file
23
grafana/alloy_values.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
alloy:
|
||||
configMap:
|
||||
content: |-
|
||||
logging {
|
||||
level = "info"
|
||||
format = "logfmt"
|
||||
}
|
||||
|
||||
discovery.kubernetes "pods" {
|
||||
role = "pod"
|
||||
}
|
||||
|
||||
loki.source.kubernetes "pods" {
|
||||
targets = discovery.kubernetes.pods.targets
|
||||
forward_to = [loki.write.loki.receiver]
|
||||
|
||||
}
|
||||
|
||||
loki.write "loki" {
|
||||
endpoint {
|
||||
url = "http://loki.grafana.svc.cluster.local:3100/loki/api/v1/push"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user