You've already forked prometheus-postgres-exporter
Compare commits
19 Commits
1c7aca4465
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
7c54e3f064
|
|||
|
b23e3bda39
|
|||
|
950c3377c1
|
|||
| 9431c03768 | |||
|
3cb5f0ff4b
|
|||
|
16fc04383d
|
|||
|
38e667d6dd
|
|||
|
5e24c3441e
|
|||
|
091cb11776
|
|||
|
b0ea947cec
|
|||
|
43d662633d
|
|||
| b79d123578 | |||
|
225b1fdcd6
|
|||
| ce2c4845cd | |||
|
4494b791ad
|
|||
| 1c7405d3ff | |||
| c005e8e85a | |||
| 192fee8ad1 | |||
|
a8352d49a2
|
@@ -18,7 +18,7 @@ jobs:
|
|||||||
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||||
- uses: oras-project/setup-oras@v2.0.0
|
- uses: oras-project/setup-oras@v2.0.0
|
||||||
with:
|
with:
|
||||||
version: 1.3.1 # renovate: datasource=github-tags depName=oras-project/oras extractVersion='^v?(?<version>.*)$'
|
version: 1.3.2 # renovate: datasource=github-tags depName=oras-project/oras extractVersion='^v?(?<version>.*)$'
|
||||||
- name: Extract meta information
|
- name: Extract meta information
|
||||||
run: |
|
run: |
|
||||||
echo "GITEA_SERVER_HOSTNAME=$(echo "${GITHUB_SERVER_URL}" | cut -d '/' -f 3)" >> $GITHUB_ENV
|
echo "GITEA_SERVER_HOSTNAME=$(echo "${GITHUB_SERVER_URL}" | cut -d '/' -f 3)" >> $GITHUB_ENV
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v6.0.2
|
- uses: actions/checkout@v6.0.2
|
||||||
- uses: azure/setup-helm@v5.0.0
|
- uses: azure/setup-helm@v5.0.0
|
||||||
with:
|
with:
|
||||||
version: "v4.0.1" # renovate: datasource=github-tags depName=helm/helm
|
version: "v4.1.4" # renovate: datasource=github-tags depName=helm/helm
|
||||||
- name: Lint helm files
|
- name: Lint helm files
|
||||||
run: |
|
run: |
|
||||||
helm lint --values values.yaml .
|
helm lint --values values.yaml .
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v6.0.2
|
- uses: actions/checkout@v6.0.2
|
||||||
- uses: azure/setup-helm@v5.0.0
|
- uses: azure/setup-helm@v5.0.0
|
||||||
with:
|
with:
|
||||||
version: "v4.0.1" # renovate: datasource=github-tags depName=helm/helm
|
version: "v4.1.4" # renovate: datasource=github-tags depName=helm/helm
|
||||||
- env:
|
- env:
|
||||||
HELM_UNITTEST_VERSION: v1.0.0 #renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
HELM_UNITTEST_VERSION: v1.0.0 #renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
||||||
name: Install helm-unittest
|
name: Install helm-unittest
|
||||||
|
|||||||
@@ -14,18 +14,18 @@ jobs:
|
|||||||
publish-chart:
|
publish-chart:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: sigstore/cosign-installer@v4.1.1
|
- uses: volker-raschek/cosign-installer@v4.1.2-rc4
|
||||||
with:
|
with:
|
||||||
cosign-release: "v2.6.3" # renovate: datasource=github-tags depName=sigstore/cosign
|
cosign-release: "v3.0.6" # renovate: datasource=github-tags depName=sigstore/cosign
|
||||||
|
|
||||||
- uses: azure/setup-helm@v5.0.0
|
- uses: azure/setup-helm@v5.0.0
|
||||||
with:
|
with:
|
||||||
version: "v4.0.1" # renovate: datasource=github-tags depName=helm/helm
|
version: "v4.1.4" # renovate: datasource=github-tags depName=helm/helm
|
||||||
|
|
||||||
- name: Install helm plugins
|
- name: Install helm plugins
|
||||||
env:
|
env:
|
||||||
HELM_SIGSTORE_VERSION: "0.3.0" # renovate: datasource=github-tags depName=sigstore/helm-sigstore extractVersion='^v(?<version>\d+\.\d+\.\d+)$'
|
HELM_SIGSTORE_VERSION: "0.3.0" # renovate: datasource=github-tags depName=sigstore/helm-sigstore extractVersion='^v(?<version>\d+\.\d+\.\d+)$'
|
||||||
HELM_SCHEMA_VALUES_VERSION: "2.3.1" # renovate: datasource=github-tags depName=losisin/helm-values-schema-json extractVersion='^v(?<version>\d+\.\d+\.\d+)$'
|
HELM_SCHEMA_VALUES_VERSION: "2.4.0" # renovate: datasource=github-tags depName=losisin/helm-values-schema-json extractVersion='^v(?<version>\d+\.\d+\.\d+)$'
|
||||||
HELM_UNITTEST_VERSION: "1.0.3" # renovate: datasource=github-tags depName=helm-unittest/helm-unittest extractVersion='^v(?<version>\d+\.\d+\.\d+)$'
|
HELM_UNITTEST_VERSION: "1.0.3" # renovate: datasource=github-tags depName=helm-unittest/helm-unittest extractVersion='^v(?<version>\d+\.\d+\.\d+)$'
|
||||||
run: |
|
run: |
|
||||||
helm plugin install --verify=false https://github.com/sigstore/helm-sigstore.git --version "${HELM_SIGSTORE_VERSION}" 1> /dev/null
|
helm plugin install --verify=false https://github.com/sigstore/helm-sigstore.git --version "${HELM_SIGSTORE_VERSION}" 1> /dev/null
|
||||||
@@ -121,15 +121,21 @@ jobs:
|
|||||||
--upload-file "${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz" \
|
--upload-file "${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz" \
|
||||||
https://${GITEA_SERVER_HOSTNAME}/api/packages/${REPOSITORY_OWNER}/helm/api/charts
|
https://${GITEA_SERVER_HOSTNAME}/api/packages/${REPOSITORY_OWNER}/helm/api/charts
|
||||||
|
|
||||||
if [ -f "${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz.prov" ]; then
|
# NOTE:
|
||||||
curl \
|
# Gitea does currently not support uploading Helm chart provenance files, so we skip this step for now. Once
|
||||||
--fail \
|
# Gitea supports this, we can simply uncomment the following lines to upload the provenance file as well.
|
||||||
--show-error \
|
#
|
||||||
--request POST \
|
# https://github.com/helm/helm/issues/31866
|
||||||
--user "${CHARTMUSEUM_USERNAME}:${CHARTMUSEUM_PASSWORD}" \
|
#
|
||||||
--upload-file "${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz.prov" \
|
# if [ -f "${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz.prov" ]; then
|
||||||
https://${GITEA_SERVER_HOSTNAME}/api/packages/${REPOSITORY_OWNER}/helm/api/prov
|
# curl \
|
||||||
fi
|
# --fail \
|
||||||
|
# --show-error \
|
||||||
|
# --request POST \
|
||||||
|
# --user "${CHARTMUSEUM_USERNAME}:${CHARTMUSEUM_PASSWORD}" \
|
||||||
|
# --upload-file "${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz.prov" \
|
||||||
|
# https://${GITEA_SERVER_HOSTNAME}/api/packages/${REPOSITORY_OWNER}/helm/api/prov
|
||||||
|
# fi
|
||||||
|
|
||||||
- name: Upload Chart to Chartmuseum (Helm)
|
- name: Upload Chart to Chartmuseum (Helm)
|
||||||
env:
|
env:
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -35,9 +35,9 @@ separate [chapter](#argocd).
|
|||||||
> time is not possible.
|
> time is not possible.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm repo add prometheus-postgres-exporters https://git.cryptic.systems/prometheus-exporters
|
helm repo add prometheus-exporters https://charts.cryptic.systems/prometheus-exporters
|
||||||
helm repo update
|
helm repo update
|
||||||
CHART_VERSION=0.5.8
|
CHART_VERSION=0.5.12
|
||||||
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' \
|
||||||
@@ -49,7 +49,7 @@ helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheu
|
|||||||
Alternatively, the deployment of the helm charts can also be done via an OCI registry:
|
Alternatively, the deployment of the helm charts can also be done via an OCI registry:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CHART_VERSION=0.5.8
|
CHART_VERSION=0.5.12
|
||||||
helm install "oci://git.cryptic.systems/volker.raschek/prometheus-postgres-exporter:${CHART_VERSION}" \
|
helm install "oci://git.cryptic.systems/volker.raschek/prometheus-postgres-exporter:${CHART_VERSION}" \
|
||||||
--set 'config.database.secret.databaseUsername=postgres' \
|
--set 'config.database.secret.databaseUsername=postgres' \
|
||||||
--set 'config.database.secret.databasePassword=postgres' \
|
--set 'config.database.secret.databasePassword=postgres' \
|
||||||
@@ -64,7 +64,7 @@ version of the chart must be in sync with the `values.yaml`. Newer *minor* versi
|
|||||||
versions can break something!
|
versions can break something!
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CHART_VERSION=0.5.8
|
CHART_VERSION=0.5.12
|
||||||
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
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -102,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.8
|
CHART_VERSION=0.5.12
|
||||||
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' \
|
||||||
@@ -124,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.8
|
CHART_VERSION=0.5.12
|
||||||
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' \
|
||||||
@@ -148,7 +148,7 @@ certificate for the metrics exporter - TLS certificate verification can be enabl
|
|||||||
replaced:
|
replaced:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
CHART_VERSION=0.5.8
|
CHART_VERSION=0.5.12
|
||||||
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' \
|
||||||
@@ -202,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.8
|
CHART_VERSION=0.5.12
|
||||||
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' \
|
||||||
|
|||||||
Reference in New Issue
Block a user