fix(postgresql): improve monitoring
This commit is contained in:
parent
86cfe7561d
commit
4f6874057f
4 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ name: "postgresql"
|
||||||
description: "A Helm chart for running PostgreSQL (Postgres) database"
|
description: "A Helm chart for running PostgreSQL (Postgres) database"
|
||||||
icon: https://wiki.postgresql.org/images/a/a4/PostgreSQL_logo.3colors.svg
|
icon: https://wiki.postgresql.org/images/a/a4/PostgreSQL_logo.3colors.svg
|
||||||
type: "application"
|
type: "application"
|
||||||
version: "0.3.1"
|
version: "0.3.3"
|
||||||
# renovate: image=docker.io/library/postgres
|
# renovate: image=docker.io/library/postgres
|
||||||
appVersion: "17.4-alpine"
|
appVersion: "17.4-alpine"
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
|
@ -7,7 +7,7 @@ description: "A Helm chart for running PostgreSQL (Postgres) database"
|
||||||
|
|
||||||
# postgresql
|
# postgresql
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
A Helm chart for running PostgreSQL (Postgres) database
|
A Helm chart for running PostgreSQL (Postgres) database
|
||||||
|
|
||||||
|
|
|
@ -1213,7 +1213,7 @@
|
||||||
"value": "$__all"
|
"value": "$__all"
|
||||||
},
|
},
|
||||||
"datasource": "$datasource",
|
"datasource": "$datasource",
|
||||||
"definition": "label_values(up{namespace=~\"$namespace\"},service)",
|
"definition": "label_values(pg_up{namespace=~\"$namespace\"},service)",
|
||||||
"description": "",
|
"description": "",
|
||||||
"includeAll": true,
|
"includeAll": true,
|
||||||
"label": "Service",
|
"label": "Service",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{- if and .Values.prometheus.rules.enabled }}
|
{{- if and .Values.prometheus.rules.enabled }}
|
||||||
{{- $fullname := include "postgresql.fullname" . }}
|
{{- $fullname := include "postgresql.fullname" . }}
|
||||||
{{- $filter := printf `namespace="%s",service=~"%s.*"` .Release.Namespace $fullname }}
|
{{- $filter := printf `namespace="%s",job="%s"` .Release.Namespace $fullname }}
|
||||||
---
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: PrometheusRule
|
kind: PrometheusRule
|
||||||
|
|
Loading…
Add table
Reference in a new issue