Skip to content

Commit 910c8eb

Browse files
soohyunmeclaude
andcommitted
fix(loki): deploy Promtail as separate HelmChart
Loki chart v6.x removed Promtail as a subchart — the promtail: section in loki values.yaml was silently ignored, so no log collection agent was running (causing "No options found" in Grafana label browser). Add Promtail 6.16.6 as its own HelmChart alongside Loki and move the Promtail config into a dedicated promtail-values.yaml. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d954218 commit 910c8eb

3 files changed

Lines changed: 34 additions & 31 deletions

File tree

infrastructure/base/monitoring/loki/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ helmCharts:
1010
releaseName: loki
1111
namespace: monitoring
1212
valuesFile: values.yaml
13+
- name: promtail
14+
repo: https://grafana.github.io/helm-charts
15+
version: 6.16.6
16+
releaseName: promtail
17+
namespace: monitoring
18+
valuesFile: promtail-values.yaml
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
config:
2+
clients:
3+
- url: http://loki:3100/loki/api/v1/push
4+
scrape_configs:
5+
- job_name: kubernetes-pods
6+
kubernetes_sd_configs:
7+
- role: pod
8+
relabel_configs:
9+
- source_labels: [__meta_kubernetes_pod_name]
10+
action: replace
11+
target_label: pod
12+
- source_labels: [__meta_kubernetes_namespace]
13+
action: replace
14+
target_label: namespace
15+
- source_labels: [__meta_kubernetes_pod_label_app]
16+
action: replace
17+
target_label: app
18+
- source_labels: [__meta_kubernetes_pod_container_name]
19+
action: replace
20+
target_label: container
21+
22+
resources:
23+
limits:
24+
cpu: 100m
25+
memory: 128Mi
26+
requests:
27+
cpu: 50m
28+
memory: 64Mi

infrastructure/base/monitoring/loki/values.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -68,34 +68,3 @@ loki:
6868
prefix: loki_index_
6969
period: 24h
7070

71-
# Promtail - log collection agent
72-
promtail:
73-
enabled: true
74-
config:
75-
clients:
76-
- url: http://loki:3100/loki/api/v1/push
77-
scrape_configs:
78-
- job_name: kubernetes-pods
79-
kubernetes_sd_configs:
80-
- role: pod
81-
relabel_configs:
82-
- source_labels: [__meta_kubernetes_pod_name]
83-
action: replace
84-
target_label: pod
85-
- source_labels: [__meta_kubernetes_namespace]
86-
action: replace
87-
target_label: namespace
88-
- source_labels: [__meta_kubernetes_pod_label_app]
89-
action: replace
90-
target_label: app
91-
- source_labels: [__meta_kubernetes_pod_container_name]
92-
action: replace
93-
target_label: container
94-
95-
resources:
96-
limits:
97-
cpu: 100m
98-
memory: 128Mi
99-
requests:
100-
cpu: 50m
101-
memory: 64Mi

0 commit comments

Comments
 (0)