fix(postgresql): improve monitoring

This commit is contained in:
WrenIX 2025-04-11 13:31:48 +02:00
parent 86cfe7561d
commit 4f6874057f
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
4 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ name: "postgresql"
description: "A Helm chart for running PostgreSQL (Postgres) database"
icon: https://wiki.postgresql.org/images/a/a4/PostgreSQL_logo.3colors.svg
type: "application"
version: "0.3.1"
version: "0.3.3"
# renovate: image=docker.io/library/postgres
appVersion: "17.4-alpine"
maintainers:

View file

@ -7,7 +7,7 @@ description: "A Helm chart for running PostgreSQL (Postgres) database"
# postgresql
![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 17.4-alpine](https://img.shields.io/badge/AppVersion-17.4--alpine-informational?style=flat-square)
![Version: 0.3.3](https://img.shields.io/badge/Version-0.3.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 17.4-alpine](https://img.shields.io/badge/AppVersion-17.4--alpine-informational?style=flat-square)
A Helm chart for running PostgreSQL (Postgres) database

View file

@ -1213,7 +1213,7 @@
"value": "$__all"
},
"datasource": "$datasource",
"definition": "label_values(up{namespace=~\"$namespace\"},service)",
"definition": "label_values(pg_up{namespace=~\"$namespace\"},service)",
"description": "",
"includeAll": true,
"label": "Service",

View file

@ -1,6 +1,6 @@
{{- if and .Values.prometheus.rules.enabled }}
{{- $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
kind: PrometheusRule