Skip to content

Commit

Permalink
Fix fluent-bit metrics (#1915)
Browse files Browse the repository at this point in the history
* Add http server to allow prometheus metrics

* add correct prometheus path

* version bump
  • Loading branch information
dirtycajunrice authored Apr 8, 2020
1 parent 8e5fa03 commit d9423f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion production/helm/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: "v1"
name: fluent-bit
version: 0.1.0
version: 0.1.1
appVersion: v1.4.1
kubeVersion: "^1.10.0-0"
description: "Uses fluent-bit Loki go plugin for gathering logs and sending them to Loki"
Expand Down
3 changes: 3 additions & 0 deletions production/helm/fluent-bit/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ metadata:
data:
fluent-bit.conf: |-
[SERVICE]
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_PORT {{ .Values.config.port }}
Flush 1
Daemon Off
Log_Level {{ .Values.config.loglevel }}
Expand Down
1 change: 1 addition & 0 deletions production/helm/fluent-bit/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
- {{ .Release.Namespace | quote }}
endpoints:
- port: http-metrics
path: /api/v1/metrics/prometheus
{{- if .Values.serviceMonitor.interval }}
interval: {{ .Values.serviceMonitor.interval }}
{{- end }}
Expand Down

0 comments on commit d9423f3

Please sign in to comment.