Skip to content

Commit

Permalink
Merge pull request #79 from zoltan-fedor/feature-prometheus-scraping
Browse files Browse the repository at this point in the history
Fixing gh77 - Missing support for Prometheus scraping
  • Loading branch information
antas-marcin authored Jul 27, 2022
2 parents 59dea4c + 9df9526 commit 59a50de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions weaviate/templates/weaviateStatefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ spec:
value: {{ .Values.service.name }}-headless.{{ .Release.Namespace }}.svc.cluster.local
ports:
- containerPort: 8080
{{- if .Values.env.PROMETHEUS_MONITORING_ENABLED }}
- name: metrics
containerPort: 2112
protocol: TCP
{{- end }}
volumeMounts:
- name: weaviate-config
mountPath: /weaviate-config
Expand Down
3 changes: 3 additions & 0 deletions weaviate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ env:
# The aggressiveness of the Go Garbage Collector. 100 is the default value.
GOGC: 100

# Expose metrics on port 2112 for Prometheus to scrape
PROMETHEUS_MONITORING_ENABLED: false

envSecrets:

# modules are extensions to Weaviate, they can be used to support various
Expand Down

0 comments on commit 59a50de

Please sign in to comment.