You've already forked prometheus-postgres-exporter
Compare commits
9 Commits
d65c48b880
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ff09361eb | |||
|
1aa3b86ecc
|
|||
| cb73c168f7 | |||
| da43196b18 | |||
|
a8dab251b5
|
|||
|
4936091445
|
|||
|
c6fe40e32d
|
|||
|
2a396c1993
|
|||
|
af9a2e7f2d
|
@@ -30,7 +30,7 @@ jobs:
|
|||||||
oras push ${GITEA_SERVER_HOSTNAME}/${REPOSITORY_OWNER}/${REPOSITORY_NAME}:artifacthub.io \
|
oras push ${GITEA_SERVER_HOSTNAME}/${REPOSITORY_OWNER}/${REPOSITORY_NAME}:artifacthub.io \
|
||||||
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
|
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
|
||||||
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
|
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
|
||||||
- name: Push public cosign key to ${GITEA_SERVER_HOSTNAME}
|
- name: Push public cosign key
|
||||||
env:
|
env:
|
||||||
COSIGN_PUBLIC_KEY: ${{ vars.COSIGN_PUBLIC_KEY }}
|
COSIGN_PUBLIC_KEY: ${{ vars.COSIGN_PUBLIC_KEY }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
generate-parameters:
|
generate-parameters:
|
||||||
container:
|
container:
|
||||||
image: docker.io/library/node:25.6.0-alpine
|
image: docker.io/library/node:25.6.1-alpine
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install tooling
|
- name: Install tooling
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
markdown-link-checker:
|
markdown-link-checker:
|
||||||
container:
|
container:
|
||||||
image: docker.io/library/node:25.6.0-alpine
|
image: docker.io/library/node:25.6.1-alpine
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install tooling
|
- name: Install tooling
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
markdown-lint:
|
markdown-lint:
|
||||||
container:
|
container:
|
||||||
image: docker.io/library/node:25.6.0-alpine
|
image: docker.io/library/node:25.6.1-alpine
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install tooling
|
- name: Install tooling
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ annotations:
|
|||||||
artifacthub.io/operator: "false"
|
artifacthub.io/operator: "false"
|
||||||
artifacthub.io/prerelease: "false"
|
artifacthub.io/prerelease: "false"
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: "0.18.1"
|
appVersion: "0.19.0"
|
||||||
description: Prometheus metric exporter for PostgreSQL
|
description: Prometheus metric exporter for PostgreSQL
|
||||||
home: https://git.cryptic.systems/volker.raschek/prometheus-postgres-exporter
|
home: https://git.cryptic.systems/volker.raschek/prometheus-postgres-exporter
|
||||||
# icon: https://annotations.example.com/icon.png
|
# icon: https://annotations.example.com/icon.png
|
||||||
|
|||||||
27
README.md
27
README.md
@@ -23,7 +23,8 @@ separate [chapter](#argocd).
|
|||||||
|
|
||||||
## Helm: configuration and installation
|
## Helm: configuration and installation
|
||||||
|
|
||||||
1. A helm chart repository must be configured, to pull the helm charts from.
|
1. A helm chart repository must be configured, to pull the helm charts from. The helm charts can either be pulled from
|
||||||
|
the classic helm chart repository or OCI registry.
|
||||||
2. All available [parameters](#parameters) are documented in detail below. The parameters can be defined via the helm
|
2. All available [parameters](#parameters) are documented in detail below. The parameters can be defined via the helm
|
||||||
`--set` flag or directly as part of a `values.yaml` file. The following example defines the `prometheus-exporter`
|
`--set` flag or directly as part of a `values.yaml` file. The following example defines the `prometheus-exporter`
|
||||||
repository and use the `--set` flag for a basic deployment.
|
repository and use the `--set` flag for a basic deployment.
|
||||||
@@ -36,7 +37,7 @@ separate [chapter](#argocd).
|
|||||||
```bash
|
```bash
|
||||||
helm repo add prometheus-postgres-exporters https://git.cryptic.systems/prometheus-exporters
|
helm repo add prometheus-postgres-exporters https://git.cryptic.systems/prometheus-exporters
|
||||||
helm repo update
|
helm repo update
|
||||||
CHART_VERSION=0.5.5
|
CHART_VERSION=0.5.6
|
||||||
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
||||||
--set 'config.database.secret.databaseUsername=postgres' \
|
--set 'config.database.secret.databaseUsername=postgres' \
|
||||||
--set 'config.database.secret.databasePassword=postgres' \
|
--set 'config.database.secret.databasePassword=postgres' \
|
||||||
@@ -45,13 +46,25 @@ helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheu
|
|||||||
--set 'prometheus.metrics.serviceMonitor.enabled=true'
|
--set 'prometheus.metrics.serviceMonitor.enabled=true'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Alternatively, the deployment of the helm charts can also be done via an OCI registry:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
CHART_VERSION=0.5.6
|
||||||
|
helm install "oci://git.cryptic.systems/volker.raschek/prometheus-postgres-exporter:${CHART_VERSION}" \
|
||||||
|
--set 'config.database.secret.databaseUsername=postgres' \
|
||||||
|
--set 'config.database.secret.databasePassword=postgres' \
|
||||||
|
--set 'config.database.secret.databaseConnectionUrl="postgres.example.local:5432/postgres?ssl=disable"' \
|
||||||
|
--set 'prometheus.metrics.enabled=true' \
|
||||||
|
--set 'prometheus.metrics.serviceMonitor.enabled=true'
|
||||||
|
```
|
||||||
|
|
||||||
Instead of passing all parameters via the *set* flag, it is also possible to define them as part of the `values.yaml`.
|
Instead of passing all parameters via the *set* flag, it is also possible to define them as part of the `values.yaml`.
|
||||||
The following command downloads the `values.yaml` for a specific version of this chart. Please keep in mind, that the
|
The following command downloads the `values.yaml` for a specific version of this chart. Please keep in mind, that the
|
||||||
version of the chart must be in sync with the `values.yaml`. Newer *minor* versions can have new features. New *major*
|
version of the chart must be in sync with the `values.yaml`. Newer *minor* versions can have new features. New *major*
|
||||||
versions can break something!
|
versions can break something!
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CHART_VERSION=0.5.5
|
CHART_VERSION=0.5.6
|
||||||
helm show values --version "${CHART_VERSION}" prometheus-exporters/prometheus-postgres-exporter > values.yaml
|
helm show values --version "${CHART_VERSION}" prometheus-exporters/prometheus-postgres-exporter > values.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -89,7 +102,7 @@ Further information about this topic can be found in one of Kanishk's blog
|
|||||||
> Please take care the a CPU limit < `1000m` can also lead to CPU throttling. Please read the linked documentation carefully.
|
> Please take care the a CPU limit < `1000m` can also lead to CPU throttling. Please read the linked documentation carefully.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CHART_VERSION=0.5.5
|
CHART_VERSION=0.5.6
|
||||||
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
||||||
--set 'config.database.secret.databaseUsername=postgres' \
|
--set 'config.database.secret.databaseUsername=postgres' \
|
||||||
--set 'config.database.secret.databasePassword=postgres' \
|
--set 'config.database.secret.databasePassword=postgres' \
|
||||||
@@ -111,7 +124,7 @@ certification will be skipped by Prometheus.
|
|||||||
> `tls.key` and `tls.crt` of the secret can be mounted into the container filesystem for TLS authentication / encryption.
|
> `tls.key` and `tls.crt` of the secret can be mounted into the container filesystem for TLS authentication / encryption.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CHART_VERSION=0.5.5
|
CHART_VERSION=0.5.6
|
||||||
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
||||||
--set 'config.database.secret.databaseUsername=postgres' \
|
--set 'config.database.secret.databaseUsername=postgres' \
|
||||||
--set 'config.database.secret.databasePassword=postgres' \
|
--set 'config.database.secret.databasePassword=postgres' \
|
||||||
@@ -135,7 +148,7 @@ certificate for the metrics exporter - TLS certificate verification can be enabl
|
|||||||
replaced:
|
replaced:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
CHART_VERSION=0.5.5
|
CHART_VERSION=0.5.6
|
||||||
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
||||||
--set 'config.database.secret.databaseUsername=postgres' \
|
--set 'config.database.secret.databaseUsername=postgres' \
|
||||||
--set 'config.database.secret.databasePassword=postgres' \
|
--set 'config.database.secret.databasePassword=postgres' \
|
||||||
@@ -189,7 +202,7 @@ the Grafana container file system so that it is subsequently available to the us
|
|||||||
makes this possible.
|
makes this possible.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CHART_VERSION=0.5.5
|
CHART_VERSION=0.5.6
|
||||||
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
|
||||||
--set 'config.database.secret.databaseUsername=postgres' \
|
--set 'config.database.secret.databaseUsername=postgres' \
|
||||||
--set 'config.database.secret.databasePassword=postgres' \
|
--set 'config.database.secret.databasePassword=postgres' \
|
||||||
|
|||||||
@@ -44,13 +44,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
|
||||||
"groupName": "Update docker.io/volkerraschek/helm",
|
|
||||||
"matchDepNames": [
|
|
||||||
"docker.io/volkerraschek/helm",
|
|
||||||
"volkerraschek/helm"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"automerge": true,
|
"automerge": true,
|
||||||
"groupName": "Update helm plugin 'unittest'",
|
"groupName": "Update helm plugin 'unittest'",
|
||||||
|
|||||||
Reference in New Issue
Block a user