Updated promtail config

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-11-27 14:14:58 +00:00
parent 796f891f17
commit 8ce2c08c34
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 5 additions and 2 deletions

View File

@ -77,6 +77,7 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/auth-type: basic nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: prometheus-credentials nginx.ingress.kubernetes.io/auth-secret: prometheus-credentials
nginx.ingress.kubernetes.io/auth-secret-type: auth-file
spec: spec:
ingressClassName: nginx ingressClassName: nginx
tls: tls:

View File

@ -60,6 +60,10 @@ data:
filename: /run/promtail/positions.yaml filename: /run/promtail/positions.yaml
server: server:
http_listen_port: 3101 http_listen_port: 3101
clients:
- url: http://loki.auth-proxy.svc:80/loki/api/v1/push
external_labels:
kubernetes_cluster: scaleway
target_config: target_config:
sync_period: 10s sync_period: 10s
scrape_configs: scrape_configs:
@ -578,8 +582,6 @@ spec:
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args: args:
- "-config.file=/etc/promtail/promtail.yaml" - "-config.file=/etc/promtail/promtail.yaml"
- "-client.url=http://loki.auth-proxy.svc:80/loki/api/v1/push"
- "-client.external-labels=kubernetes_cluster=scaleway"
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /etc/promtail mountPath: /etc/promtail