Skip to content

Commit 9365e41

Browse files
author
Yuvaraj Kakaraparthi
committed
fix promtail configuration to work with loki
1 parent f9e624a commit 9365e41

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

hack/observability/promtail/values.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22

33
config:
44
# publish data to loki
5-
lokiAddress: http://loki:3100/loki/api/v1/push
5+
clients:
6+
- url: http://loki:3100/loki/api/v1/push
67

78
snippets:
89
pipelineStages:
9-
# Parse cluster and machine to make them available as labels.
10-
- cri: { }
11-
- json:
12-
expressions:
10+
# Parse cluster and machine to make them available as labels.
11+
- cri: {}
12+
- json:
13+
expressions:
14+
controller:
15+
cluster: join('/',[Cluster.namespace,Cluster.name])
16+
machine: join('/',[Machine.namespace,Machine.name])
17+
- labels:
1318
controller:
14-
cluster: join('/',[Cluster.namespace,Cluster.name])
15-
machine: join('/',[Machine.namespace,Machine.name])
16-
- labels:
17-
controller:
18-
cluster:
19-
machine:
19+
cluster:
20+
machine:

0 commit comments

Comments
 (0)