You've already forked prometheus-postgres-exporter
Compare commits
7 Commits
bb4a5d48b4
...
0.1.6
Author | SHA1 | Date | |
---|---|---|---|
bf9bd4853f
|
|||
80a8e8096d
|
|||
79b61b0035
|
|||
d33b17b973 | |||
a0d241c90c
|
|||
1d061fe95f
|
|||
688718008f
|
@ -4,7 +4,7 @@ description: Prometheus metric exporter for PostgreSQL
|
|||||||
type: application
|
type: application
|
||||||
kubeVersion: ">=1.20.0"
|
kubeVersion: ">=1.20.0"
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
appVersion: "0.15.0"
|
appVersion: "0.16.0"
|
||||||
|
|
||||||
# icon: https://annotations.example.com/icon.png
|
# icon: https://annotations.example.com/icon.png
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ and use it to deploy the exporter. It also contains further configuration exampl
|
|||||||
Furthermore, this helm chart unit tests to detect regressions and stabilize the deployment. Additionally, this helm
|
Furthermore, this helm chart unit tests to detect regressions and stabilize the deployment. Additionally, this helm
|
||||||
chart is tested for deployment scenarios with ArgoCD.
|
chart is tested for deployment scenarios with ArgoCD.
|
||||||
|
|
||||||
> ![NOTE]
|
> [!NOTE]
|
||||||
> This is not the official *community* helm chart of the Prometheus metric exporter for PostgreSQL databases. You can
|
> This is not the official *community* helm chart of the Prometheus metric exporter for PostgreSQL databases. You can
|
||||||
> find the official community chart [here](https://github.com/prometheus-community/helm-charts).
|
> find the official community chart [here](https://github.com/prometheus-community/helm-charts).
|
||||||
|
|
||||||
|
@ -24,10 +24,10 @@
|
|||||||
"matchUpdateTypes": [ "minor", "patch"]
|
"matchUpdateTypes": [ "minor", "patch"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"addLabels": [ "renovate/prometheus-postgres-exporter", "renovate/automerge" ],
|
"addLabels": [ "renovate/markdownlint", "renovate/automerge" ],
|
||||||
"automerge": true,
|
"automerge": true,
|
||||||
"matchPackageNames": [ "prometheus-postgres-exporter" ],
|
"matchPackageNames": [ "markdownlint-cli", "@bitnami/readme-generator-for-helm" ],
|
||||||
"matchManagers": [ "regex" ],
|
"matchManagers": [ "npm" ],
|
||||||
"matchUpdateTypes": [ "minor", "patch"]
|
"matchUpdateTypes": [ "minor", "patch"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -13,5 +13,5 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- define "prometheus-postgres-exporter.pod.selectorLabels" -}}
|
{{- define "prometheus-postgres-exporter.pod.selectorLabels" -}}
|
||||||
{{ include "prometheus-postgres-exporter.pod.labels" . }}
|
{{ include "prometheus-postgres-exporter.selectorLabels" . }}
|
||||||
{{- end }}
|
{{- end }}
|
@ -24,7 +24,7 @@ spec:
|
|||||||
- name: postgres-exporter
|
- name: postgres-exporter
|
||||||
args:
|
args:
|
||||||
- "--config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml"
|
- "--config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml"
|
||||||
- "--web.config.file=/etc/prometheus-postgres-exporter/config.d/web-config.yaml"
|
- "--web.config.file=/etc/prometheus-postgres-exporter/config.d/webConfig.yaml"
|
||||||
- "--web.listen-address=:9187"
|
- "--web.listen-address=:9187"
|
||||||
{{- range .Values.deployment.postgresExporter.args }}
|
{{- range .Values.deployment.postgresExporter.args }}
|
||||||
- {{ . | quote }}
|
- {{ . | quote }}
|
||||||
|
@ -26,7 +26,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
scrapeTimeout: {{ required "The scrape timeout of the serviceMonitor is not defined!" .Values.prometheus.metrics.serviceMonitor.scrapeTimeout }}
|
scrapeTimeout: {{ required "The scrape timeout of the serviceMonitor is not defined!" .Values.prometheus.metrics.serviceMonitor.scrapeTimeout }}
|
||||||
scheme: {{ required "The scheme of the serviceMonitor is not defined!" .Values.prometheus.metrics.serviceMonitor.scheme}}
|
scheme: {{ required "The scheme of the serviceMonitor is not defined!" .Values.prometheus.metrics.serviceMonitor.scheme}}
|
||||||
targetPort: {{ required "The port of the serviceMonitor is not defined!" .Values.prometheus.metrics.serviceMonitor.port }}
|
targetPort: {{ required "The port of the service is not defined!" .Values.services.http.port }}
|
||||||
{{- with .Values.prometheus.metrics.serviceMonitor.tlsConfig }}
|
{{- with .Values.prometheus.metrics.serviceMonitor.tlsConfig }}
|
||||||
tlsConfig:
|
tlsConfig:
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
|
@ -36,7 +36,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].args
|
path: spec.template.spec.containers[0].args
|
||||||
value:
|
value:
|
||||||
- --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml
|
- --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml
|
||||||
- --web.config.file=/etc/prometheus-postgres-exporter/config.d/web-config.yaml
|
- --web.config.file=/etc/prometheus-postgres-exporter/config.d/webConfig.yaml
|
||||||
- --web.listen-address=:9187
|
- --web.listen-address=:9187
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
@ -101,7 +101,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].args
|
path: spec.template.spec.containers[0].args
|
||||||
value:
|
value:
|
||||||
- --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml
|
- --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml
|
||||||
- --web.config.file=/etc/prometheus-postgres-exporter/config.d/web-config.yaml
|
- --web.config.file=/etc/prometheus-postgres-exporter/config.d/webConfig.yaml
|
||||||
- --web.listen-address=:9187
|
- --web.listen-address=:9187
|
||||||
- --foo=bar
|
- --foo=bar
|
||||||
- --bar=foo
|
- --bar=foo
|
||||||
|
@ -90,10 +90,7 @@ tests:
|
|||||||
path: spec.selector.matchLabels
|
path: spec.selector.matchLabels
|
||||||
value:
|
value:
|
||||||
app.kubernetes.io/instance: prometheus-postgres-exporter-unittest
|
app.kubernetes.io/instance: prometheus-postgres-exporter-unittest
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: prometheus-postgres-exporter
|
app.kubernetes.io/name: prometheus-postgres-exporter
|
||||||
app.kubernetes.io/version: 0.1.0
|
|
||||||
helm.sh/chart: prometheus-postgres-exporter-0.1.0
|
|
||||||
|
|
||||||
- it: Render podMonitor with custom annotations and labels.
|
- it: Render podMonitor with custom annotations and labels.
|
||||||
set:
|
set:
|
||||||
|
@ -134,7 +134,6 @@ tests:
|
|||||||
action: "drop"
|
action: "drop"
|
||||||
prometheus.metrics.serviceMonitor.scrapeTimeout: "5s"
|
prometheus.metrics.serviceMonitor.scrapeTimeout: "5s"
|
||||||
prometheus.metrics.serviceMonitor.scheme: "http"
|
prometheus.metrics.serviceMonitor.scheme: "http"
|
||||||
prometheus.metrics.serviceMonitor.port: 10443
|
|
||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 1
|
count: 1
|
||||||
@ -167,6 +166,3 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.endpoints[0].scheme
|
path: spec.endpoints[0].scheme
|
||||||
value: http
|
value: http
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].targetPort
|
|
||||||
value: 10443
|
|
@ -63,10 +63,7 @@ tests:
|
|||||||
path: spec.selector
|
path: spec.selector
|
||||||
value:
|
value:
|
||||||
app.kubernetes.io/instance: prometheus-postgres-exporter-unittest
|
app.kubernetes.io/instance: prometheus-postgres-exporter-unittest
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: prometheus-postgres-exporter
|
app.kubernetes.io/name: prometheus-postgres-exporter
|
||||||
app.kubernetes.io/version: 0.1.0
|
|
||||||
helm.sh/chart: prometheus-postgres-exporter-0.1.0
|
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.sessionAffinity
|
path: spec.sessionAffinity
|
||||||
value: None
|
value: None
|
||||||
|
@ -332,7 +332,6 @@ prometheus:
|
|||||||
## @param prometheus.metrics.serviceMonitor.honorLabels Honor labels.
|
## @param prometheus.metrics.serviceMonitor.honorLabels Honor labels.
|
||||||
## @param prometheus.metrics.serviceMonitor.interval Interval at which metrics should be scraped. If not specified Prometheus' global scrape interval is used.
|
## @param prometheus.metrics.serviceMonitor.interval Interval at which metrics should be scraped. If not specified Prometheus' global scrape interval is used.
|
||||||
## @param prometheus.metrics.serviceMonitor.path HTTP path for scraping prometheus metrics.
|
## @param prometheus.metrics.serviceMonitor.path HTTP path for scraping prometheus metrics.
|
||||||
## @param prometheus.metrics.serviceMonitor.port HTTP port for scraping prometheus metrics.
|
|
||||||
## @param prometheus.metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping. Prometheus Operator automatically adds relabelings for a few standard Kubernetes fields.
|
## @param prometheus.metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping. Prometheus Operator automatically adds relabelings for a few standard Kubernetes fields.
|
||||||
## @param prometheus.metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended. If not specified, global Prometheus scrape timeout is used.
|
## @param prometheus.metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended. If not specified, global Prometheus scrape timeout is used.
|
||||||
## @param prometheus.metrics.serviceMonitor.scheme HTTP scheme to use for scraping. For example `http` or `https`.
|
## @param prometheus.metrics.serviceMonitor.scheme HTTP scheme to use for scraping. For example `http` or `https`.
|
||||||
@ -347,7 +346,6 @@ prometheus:
|
|||||||
honorLabels: false
|
honorLabels: false
|
||||||
interval: "60s"
|
interval: "60s"
|
||||||
path: "/metrics"
|
path: "/metrics"
|
||||||
port: 9187
|
|
||||||
relabelings: []
|
relabelings: []
|
||||||
scrapeTimeout: "30s"
|
scrapeTimeout: "30s"
|
||||||
scheme: "http"
|
scheme: "http"
|
||||||
|
Reference in New Issue
Block a user