Skip to content

Commit

Permalink
Merge pull request #185 from akash4sh/main
Browse files Browse the repository at this point in the history
Added vault-service-monitor
  • Loading branch information
jebjohns authored Jan 30, 2024
2 parents f879412 + 42cf96f commit 0454a5a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/monitoring/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.16.0
description: A Helm chart for Monitoring
name: monitoring
type: application
version: 0.1.12
version: 0.1.13
dependencies:
- name: prometheus-msteams
condition: prometheus-msteams.enabled
Expand Down
28 changes: 28 additions & 0 deletions charts/monitoring/templates/vault-servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app.kubernetes.io/instance: vault
app.kubernetes.io/name: vault
release: prometheus
name: {{ include "monitoring.fullname" . }}-vault
spec:
endpoints:
- interval: 30s
params:
format:
- prometheus
path: /v1/sys/metrics
port: http
scheme: http
scrapeTimeout: 10s
tlsConfig:
insecureSkipVerify: true
namespaceSelector:
matchNames:
- capten
selector:
matchLabels:
app.kubernetes.io/instance: vault
app.kubernetes.io/name: vault
vault-internal: "true"

0 comments on commit 0454a5a

Please sign in to comment.