alloy pod logs
This commit is contained in:
@@ -347,12 +347,15 @@ subjects:
|
||||
apiVersion: v1
|
||||
data:
|
||||
config.alloy: |-
|
||||
loki.write "local" {
|
||||
loki.write "default" {
|
||||
endpoint {
|
||||
url = "http://loki-gateway.grafana-loki.svc.cluster.local/loki/api/v1/push"
|
||||
tenant_id = "prod"
|
||||
}
|
||||
}
|
||||
|
||||
loki.source.kubernetes "pod_logs" {
|
||||
forward_to = [loki.write.default.receiver]
|
||||
}
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
|
||||
@@ -34,13 +34,16 @@ alloy:
|
||||
create: true
|
||||
# -- Content to assign to the new ConfigMap. This is passed into `tpl` allowing for templating from values.
|
||||
content: |-
|
||||
loki.write "local" {
|
||||
loki.write "default" {
|
||||
endpoint {
|
||||
url = "http://loki-gateway.grafana-loki.svc.cluster.local/loki/api/v1/push"
|
||||
tenant_id = "prod"
|
||||
}
|
||||
}
|
||||
|
||||
loki.source.kubernetes "pod_logs" {
|
||||
forward_to = [loki.write.default.receiver]
|
||||
}
|
||||
|
||||
# -- Name of existing ConfigMap to use. Used when create is false.
|
||||
name: null
|
||||
# -- Key in ConfigMap to get config from.
|
||||
|
||||
Reference in New Issue
Block a user