Skip to content

Commit

Permalink
feat: promtail chart v5
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Jun 14, 2022
1 parent 100a59d commit 2d1a7b8
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions promtail.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,8 @@ locals {
serviceMonitor:
enabled: ${local.kube-prometheus-stack["enabled"] || local.victoria-metrics-k8s-stack["enabled"]}
config:
lokiAddress: ${local.promtail["loki_address"]}
file: |
server:
log_level: info
http_listen_port: {{ .Values.config.serverPort }}
client:
url: {{ .Values.config.lokiAddress }}
tls_config:
{{- toYaml .Values.config.snippets.tls_config | nindent 4 }}
positions:
filename: /run/promtail/positions.yaml
scrape_configs:
{{- tpl .Values.config.snippets.scrapeConfigs $ | nindent 2 }}
{{- tpl .Values.config.snippets.extraScrapeConfigs . | nindent 2 }}
clients:
- url: ${local.promtail["loki_address"]}
tolerations:
- effect: NoSchedule
operator: Exists
Expand Down Expand Up @@ -71,10 +59,11 @@ locals {
mountPath: /tls
readOnly: true
config:
snippets:
tls_config:
cert_file: /tls/tls.crt
key_file: /tls/tls.key
clients:
- url: ${local.promtail["loki_address"]}
tls_config:
cert_file: /tls/tls.crt
key_file: /tls/tls.key
VALUES
}

Expand Down

0 comments on commit 2d1a7b8

Please sign in to comment.