helm chart for prometheus and loki stack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

112 lines
2.2 KiB

prometheus:
enabled: true
alertmanager:
enabled: true
# baseURL: "http://localhost:9093"
# configFileName: alertmanager.yml
# alertmanagerFiles:
# alertmanager.yml:
# receivers:
# - name: default-receiver
loki:
enabled: true
grafana:
enabled: true
# TODO user existing secret instead
adminUser: admin
adminPassword: prom-operator
ingress:
enabled: true
ingressClassName: nginx
path: /
pathType: Prefix
hosts:
- grafana.ing
sidecar:
datasources:
enabled: true
filebeat:
enabled: true
filebeatConfig:
filebeat.yml: |
logging.level: debug
filebeat.inputs:
- type: container
paths:
- /var/log/containers/*.log
processors:
- add_kubernetes_metadata:
host: ${NODE_NAME}
matchers:
- logs_path:
logs_path: "/var/log/containers/"
output.logstash:
# TODO make vvv this depend on helm chart name
hosts: ["loki-stack-logstash:5044"]
logstash:
enabled: true
image: grafana/logstash-output-loki
imageTag: 1.0.1
service:
type: ClusterIP
ports:
- name: beats
port: 5044
protocol: TCP
targetPort: 5044
- name: http
port: 8080
protocol: TCP
targetPort: 8080
# readiness probe seems to be failing (connection refused to port 9600)
filters:
main: |-
filter {
if [kubernetes] {
mutate {
add_field => {
"container_name" => "%{[kubernetes][container][name]}"
"namespace" => "%{[kubernetes][namespace]}"
"pod" => "%{[kubernetes][pod][name]}"
}
replace => { "host" => "%{[kubernetes][node][name]}"}
}
}
mutate {
remove_field => ["tags"]
}
}
# TODO drop high cardinality data (https://grafana.com/docs/loki/latest/clients/logstash)
outputs:
main: |-
output {
loki {
# TODO this url may be wrong
url => "http://loki-stack:3100/loki/api/v1/push"
#username => "test"
#password => "test"
}
# stdout { codec => rubydebug }
}
promtail:
enabled: false
fluent-bit:
enabled: false