feat(prometheus): install Prometheus

This commit is contained in:
Masaki Yatsu
2025-11-08 21:54:48 +09:00
parent cf903965ad
commit bd23974980
6 changed files with 437 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: grafana-admin-credentials
namespace: {{ .Env.PROMETHEUS_NAMESPACE }}
spec:
refreshInterval: 1h
secretStoreRef:
name: vault-secret-store
kind: ClusterSecretStore
target:
name: grafana-admin-credentials
creationPolicy: Owner
template:
data:
admin-user: "admin"
admin-password: "{{ `{{ .password }}` }}"
data:
- secretKey: password
remoteRef:
key: grafana/admin
property: password