2021-08-26 16:42:32 +00:00
|
|
|
resources:
|
|
|
|
- prometheus.yaml
|
|
|
|
- prometheus-rbac.yaml
|
|
|
|
- prometheus-ingress.yaml
|
2022-05-26 05:02:48 +00:00
|
|
|
|
2023-02-28 05:06:48 +00:00
|
|
|
namePrefix: prometheus-
|
|
|
|
|
2023-02-05 03:11:39 +00:00
|
|
|
commonLabels:
|
|
|
|
app.kubernetes.io/name: prometheus
|
|
|
|
app.kubernetes.io/part-of: monitoring
|
|
|
|
|
2022-05-26 05:02:48 +00:00
|
|
|
secretGenerator:
|
|
|
|
- name: grafana-cloud-credentials
|
|
|
|
type: Opaque
|
|
|
|
behavior: create
|
|
|
|
literals:
|
|
|
|
- username=changeme
|
|
|
|
- password=changeme
|
2024-09-19 04:14:40 +00:00
|
|
|
# - name: additional-scrape-configs
|
|
|
|
# behavior: create
|
|
|
|
# literals:
|
|
|
|
# - prometheus-additional.yaml=
|
2022-05-26 05:02:48 +00:00
|
|
|
|
2023-02-28 05:06:48 +00:00
|
|
|
configMapGenerator:
|
|
|
|
- name: kustomize-generated-config
|
|
|
|
literals:
|
2024-08-08 02:02:10 +00:00
|
|
|
- PROMETHEUS_EXTERNAL_HOST=prometheus.badjware.dev
|
2023-02-28 05:06:48 +00:00
|
|
|
|
|
|
|
replacements:
|
|
|
|
- source:
|
|
|
|
kind: ConfigMap
|
|
|
|
name: kustomize-generated-config
|
|
|
|
fieldPath: data.PROMETHEUS_EXTERNAL_HOST
|
|
|
|
targets:
|
|
|
|
- select:
|
|
|
|
kind: Ingress
|
|
|
|
name: prometheus
|
|
|
|
fieldPaths:
|
|
|
|
- spec.rules.0.host
|
|
|
|
|
2022-05-26 05:02:48 +00:00
|
|
|
configurations:
|
|
|
|
- kustomizeconfig/namereference.yaml
|