You've already forked prometheus-postgres-exporter
							
							Compare commits
	
		
			27 Commits
		
	
	
		
			0.4.0
			...
			a6ec076ce6
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a6ec076ce6 | |||
| 12970b3820 | |||
| dbd6b83218 | |||
| e466c50e35 | |||
| 19d683d712 | |||
| 69f068c406 | |||
| 1edd96e3e1 | |||
| 80819f16ef | |||
| 3dcb8173e3 | |||
| 5c20ed5f31 | |||
| 39534a06dc | |||
| 34b5e27456 | |||
| 74b6ddf46d | |||
| 7323ba09bf | |||
| 3f4c459d43 | |||
| 304139cb6d | |||
| 08ca70c65c | |||
| 6f954dfdf6 | |||
| b88ae944e6 | |||
| 29b908f8da | |||
| 76134921b8 | |||
| 7ebfd12593 | |||
| 74ef3835f4 | |||
| 80c8ff0d3b | |||
| de379ec1ef | |||
| 9275bca045 | |||
| a33f92e63d | 
| @@ -15,7 +15,7 @@ on: | ||||
| jobs: | ||||
|   generate-parameters: | ||||
|     container: | ||||
|       image: docker.io/library/node:23.8.0-alpine | ||||
|       image: docker.io/library/node:23.11.0-alpine | ||||
|     runs-on: | ||||
|     - ubuntu-latest | ||||
|     steps: | ||||
|   | ||||
| @@ -13,7 +13,7 @@ on: | ||||
| jobs: | ||||
|   helm-lint: | ||||
|     container: | ||||
|       image: docker.io/volkerraschek/helm:3.16.4 | ||||
|       image: docker.io/volkerraschek/helm:3.17.3 | ||||
|     runs-on: | ||||
|     - ubuntu-latest | ||||
|     steps: | ||||
| @@ -28,7 +28,7 @@ jobs: | ||||
|  | ||||
|   helm-unittest: | ||||
|     container: | ||||
|       image: docker.io/volkerraschek/helm:3.16.4 | ||||
|       image: docker.io/volkerraschek/helm:3.17.3 | ||||
|     runs-on: | ||||
|     - ubuntu-latest | ||||
|     steps: | ||||
|   | ||||
| @@ -15,7 +15,7 @@ on: | ||||
| jobs: | ||||
|   markdown-link-checker: | ||||
|     container: | ||||
|       image: docker.io/library/node:23.8.0-alpine | ||||
|       image: docker.io/library/node:23.11.0-alpine | ||||
|     runs-on: | ||||
|     - ubuntu-latest | ||||
|     steps: | ||||
| @@ -31,7 +31,7 @@ jobs: | ||||
|  | ||||
|   markdown-lint: | ||||
|     container: | ||||
|       image: docker.io/library/node:23.8.0-alpine | ||||
|       image: docker.io/library/node:23.11.0-alpine | ||||
|     runs-on: | ||||
|     - ubuntu-latest | ||||
|     steps: | ||||
|   | ||||
| @@ -8,7 +8,7 @@ on: | ||||
| jobs: | ||||
|   publish-chart: | ||||
|     container: | ||||
|       image: docker.io/volkerraschek/helm:3.16.4 | ||||
|       image: docker.io/volkerraschek/helm:3.17.3 | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Install tooling | ||||
|   | ||||
| @@ -4,7 +4,7 @@ description: Prometheus metric exporter for PostgreSQL | ||||
| type: application | ||||
| kubeVersion: ">=1.20.0" | ||||
| version: "0.1.0" | ||||
| appVersion: "0.16.0" | ||||
| appVersion: "0.17.1" | ||||
|  | ||||
| # icon: https://annotations.example.com/icon.png | ||||
|  | ||||
|   | ||||
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							| @@ -4,13 +4,13 @@ CONTAINER_RUNTIME?=$(shell which podman) | ||||
| # HELM_IMAGE | ||||
| HELM_IMAGE_REGISTRY_HOST?=docker.io | ||||
| HELM_IMAGE_REPOSITORY?=volkerraschek/helm | ||||
| HELM_IMAGE_VERSION?=3.16.1 # renovate: datasource=docker registryUrl=https://docker.io depName=volkerraschek/helm | ||||
| HELM_IMAGE_VERSION?=3.17.3 # renovate: datasource=docker registryUrl=https://docker.io depName=volkerraschek/helm | ||||
| HELM_IMAGE_FULLY_QUALIFIED=${HELM_IMAGE_REGISTRY_HOST}/${HELM_IMAGE_REPOSITORY}:${HELM_IMAGE_VERSION} | ||||
|  | ||||
| # NODE_IMAGE | ||||
| NODE_IMAGE_REGISTRY_HOST?=docker.io | ||||
| NODE_IMAGE_REPOSITORY?=library/node | ||||
| NODE_IMAGE_VERSION?=22.9.0-alpine # renovate: datasource=docker registryUrl=https://docker.io depName=library/node | ||||
| NODE_IMAGE_VERSION?=22.15.0-alpine # renovate: datasource=docker registryUrl=https://docker.io depName=library/node | ||||
| NODE_IMAGE_FULLY_QUALIFIED=${NODE_IMAGE_REGISTRY_HOST}/${NODE_IMAGE_REPOSITORY}:${NODE_IMAGE_VERSION} | ||||
|  | ||||
| # MISSING DOT | ||||
|   | ||||
| @@ -46,7 +46,7 @@ version of the chart must be in sync with the `values.yaml`. Newer *minor* versi | ||||
| versions can break something! | ||||
|  | ||||
| ```bash | ||||
| CHART_VERSION=0.3.2 | ||||
| CHART_VERSION=0.4.2 | ||||
| helm show values prometheus-exporters/prometheus-postgres-exporter --version "${CHART_VERSION}" > values.yaml | ||||
| ``` | ||||
|  | ||||
| @@ -71,7 +71,7 @@ cannot use the available CPU time to perform computing operations. | ||||
|  | ||||
| The application must be informed that despite several CPUs only a part (limit) of the available computing time is | ||||
| available. As this is a Golang application, this can be implemented using `GOMAXPROCS`. The following example is one way | ||||
| of defining `GOMAXPROCS` automatically based on the defined CPU limit like `100m`. Please keep in mind, that the CFS | ||||
| of defining `GOMAXPROCS` automatically based on the defined CPU limit like `1000m`. Please keep in mind, that the CFS | ||||
| rate of `100ms` - default on each kubernetes node, is also very important to avoid CPU throttling. | ||||
|  | ||||
| Further information about this topic can be found [here](https://kanishk.io/posts/cpu-throttling-in-containerized-go-apps/). | ||||
| @@ -79,6 +79,8 @@ Further information about this topic can be found [here](https://kanishk.io/post | ||||
| > [!NOTE] | ||||
| > The environment variable `GOMAXPROCS` is set automatically, when a CPU limit is defined. An explicit configuration is | ||||
| > not anymore required. | ||||
| > | ||||
| > Please take care the a CPU limit < `1000m` can also lead to CPU throttling. Please read the linked documentation carefully. | ||||
|  | ||||
| ```bash | ||||
| helm install prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \ | ||||
| @@ -89,7 +91,7 @@ helm install prometheus-postgres-exporter prometheus-exporters/prometheus-postgr | ||||
|   --set 'prometheus.metrics.serviceMonitor.enabled=true' \ | ||||
|   --set 'deployment.postgresExporter.env.name=GOMAXPROCS' \ | ||||
|   --set 'deployment.postgresExporter.env.valueFrom.resourceFieldRef.resource=limits.cpu' \ | ||||
|   --set 'deployment.postgresExporter.resources.limits.cpu=100m' | ||||
|   --set 'deployment.postgresExporter.resources.limits.cpu=1000m' | ||||
| ``` | ||||
|  | ||||
| #### TLS authentication and encryption | ||||
|   | ||||
							
								
								
									
										50
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										50
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -451,9 +451,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/decode-named-character-reference": { | ||||
|       "version": "1.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", | ||||
|       "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", | ||||
|       "version": "1.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.1.0.tgz", | ||||
|       "integrity": "sha512-Wy+JTSbFThEOXQIR2L6mxJvEs+veIzpmqD7ynWxMXGpnk3smkHQOp6forLdHsKpAMW9iJpaBBIxz285t1n1C3w==", | ||||
|       "dev": true, | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
| @@ -694,13 +694,13 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/foreground-child": { | ||||
|       "version": "3.3.0", | ||||
|       "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", | ||||
|       "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", | ||||
|       "version": "3.3.1", | ||||
|       "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", | ||||
|       "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", | ||||
|       "dev": true, | ||||
|       "license": "ISC", | ||||
|       "dependencies": { | ||||
|         "cross-spawn": "^7.0.0", | ||||
|         "cross-spawn": "^7.0.6", | ||||
|         "signal-exit": "^4.0.1" | ||||
|       }, | ||||
|       "engines": { | ||||
| @@ -1112,15 +1112,15 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/markdown-link-check": { | ||||
|       "version": "3.13.6", | ||||
|       "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.13.6.tgz", | ||||
|       "integrity": "sha512-JiqexKOR+oaBovJ16x/VEN886CzPI48bSGUcKJvnkHVS8xSb9fRJtsdcLwG8+5QQ/V0UZKFmW8JEZFcZbd0BBA==", | ||||
|       "version": "3.13.7", | ||||
|       "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.13.7.tgz", | ||||
|       "integrity": "sha512-Btn3HU8s2Uyh1ZfzmyZEkp64zp2+RAjwfQt1u4swq2Xa6w37OW0T2inQZrkSNVxDSa2jSN2YYhw/JkAp5jF1PQ==", | ||||
|       "dev": true, | ||||
|       "license": "ISC", | ||||
|       "dependencies": { | ||||
|         "async": "^3.2.6", | ||||
|         "chalk": "^5.3.0", | ||||
|         "commander": "^12.1.0", | ||||
|         "commander": "^13.1.0", | ||||
|         "link-check": "^5.4.0", | ||||
|         "markdown-link-extractor": "^4.0.2", | ||||
|         "needle": "^3.3.1", | ||||
| @@ -1132,16 +1132,6 @@ | ||||
|         "markdown-link-check": "markdown-link-check" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/markdown-link-check/node_modules/commander": { | ||||
|       "version": "12.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", | ||||
|       "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", | ||||
|       "dev": true, | ||||
|       "license": "MIT", | ||||
|       "engines": { | ||||
|         "node": ">=18" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/markdown-link-extractor": { | ||||
|       "version": "4.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-4.0.2.tgz", | ||||
| @@ -1763,9 +1753,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/micromark-util-subtokenize": { | ||||
|       "version": "2.0.4", | ||||
|       "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.0.4.tgz", | ||||
|       "integrity": "sha512-N6hXjrin2GTJDe3MVjf5FuXpm12PGm80BrUAeub9XFXca8JZbP+oIwY4LJSVwFUCL1IPm/WwSVUN7goFHmSGGQ==", | ||||
|       "version": "2.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz", | ||||
|       "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==", | ||||
|       "dev": true, | ||||
|       "funding": [ | ||||
|         { | ||||
| @@ -1924,9 +1914,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/pac-proxy-agent": { | ||||
|       "version": "7.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.1.0.tgz", | ||||
|       "integrity": "sha512-Z5FnLVVZSnX7WjBg0mhDtydeRZ1xMcATZThjySQUHqr+0ksP8kqaw23fNKkaaN/Z8gwLUs/W7xdl0I75eP2Xyw==", | ||||
|       "version": "7.2.0", | ||||
|       "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", | ||||
|       "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==", | ||||
|       "dev": true, | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
| @@ -2395,9 +2385,9 @@ | ||||
|       "license": "MIT" | ||||
|     }, | ||||
|     "node_modules/undici": { | ||||
|       "version": "6.21.1", | ||||
|       "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.1.tgz", | ||||
|       "integrity": "sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==", | ||||
|       "version": "6.21.2", | ||||
|       "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.2.tgz", | ||||
|       "integrity": "sha512-uROZWze0R0itiAKVPsYhFov9LxrPMHLMEQFszeI2gCN6bnIIZ8twzBCJcN2LJrBBLfrP0t1FW0g+JmKVl8Vk1g==", | ||||
|       "dev": true, | ||||
|       "license": "MIT", | ||||
|       "engines": { | ||||
|   | ||||
| @@ -1,7 +1,11 @@ | ||||
| { | ||||
|   "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||||
|   "assignees": [ | ||||
|     "volker.raschek" | ||||
|   "extends": [ | ||||
|     "local>volker.raschek/renovate-config:default#master", | ||||
|     "local>volker.raschek/renovate-config:container#master", | ||||
|     "local>volker.raschek/renovate-config:actions#master", | ||||
|     "local>volker.raschek/renovate-config:npm#master", | ||||
|     "local>volker.raschek/renovate-config:regexp#master" | ||||
|   ], | ||||
|   "customManagers": [ | ||||
|     { | ||||
| @@ -27,35 +31,7 @@ | ||||
|       "versioningTemplate": "semver" | ||||
|     } | ||||
|   ], | ||||
|   "labels": [ | ||||
|     "renovate" | ||||
|   ], | ||||
|   "lockFileMaintenance": { | ||||
|     "enabled": true | ||||
|   }, | ||||
|   "npm": { | ||||
|     "enabled": true | ||||
|   }, | ||||
|   "packageRules": [ | ||||
|     { | ||||
|       "addLabels": [ | ||||
|         "renovate/automerge", | ||||
|         "renovate/npm" | ||||
|       ], | ||||
|       "automerge": true, | ||||
|       "matchPackageNames": [ | ||||
|         "@bitnami/readme-generator-for-helm", | ||||
|         "markdownlint-cli", | ||||
|         "markdown-link-check" | ||||
|       ], | ||||
|       "matchManagers": [ | ||||
|         "npm" | ||||
|       ], | ||||
|       "matchUpdateTypes": [ | ||||
|         "minor", | ||||
|         "patch" | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "addLabels": [ | ||||
|         "renovate/automerge", | ||||
| @@ -88,7 +64,5 @@ | ||||
|         "patch" | ||||
|       ] | ||||
|     } | ||||
|   ], | ||||
|   "rebaseLabel": "renovate/rebase", | ||||
|   "rebaseWhen": "behind-base-branch" | ||||
|   ] | ||||
| } | ||||
|   | ||||
| @@ -5,7 +5,7 @@ kind: ConfigMap | ||||
| metadata: | ||||
|   {{- with (include "prometheus-postgres-exporter.configMap.grafanaDashboards.postgresExporter.annotations" . | fromYaml) }} | ||||
|   annotations: | ||||
|     {{- tpl (. | toYaml) $ | nindent 4 }} | ||||
|     {{- tpl (toYaml .) $ | nindent 4 }} | ||||
|   {{- end }} | ||||
|   {{- with (include "prometheus-postgres-exporter.configMap.grafanaDashboards.postgresExporter.labels" . | fromYaml) }} | ||||
|   labels: | ||||
|   | ||||
| @@ -3,7 +3,7 @@ kind: Deployment | ||||
| metadata: | ||||
|   {{- with (include "prometheus-postgres-exporter.deployment.annotations" . | fromYaml) }} | ||||
|   annotations: | ||||
|     {{- tpl (. | toYaml) $ | nindent 4 }} | ||||
|     {{- tpl (toYaml .) $ | nindent 4 }} | ||||
|   {{- end }} | ||||
|   {{- with (include "prometheus-postgres-exporter.deployment.labels" . | fromYaml) }} | ||||
|   labels: | ||||
|   | ||||
| @@ -5,7 +5,7 @@ kind: Ingress | ||||
| metadata: | ||||
|   {{- with (include "prometheus-postgres-exporter.ingress.annotations" . | fromYaml) }} | ||||
|   annotations: | ||||
|     {{- tpl (. | toYaml) $ | nindent 4 }} | ||||
|     {{- tpl (toYaml .) $ | nindent 4 }} | ||||
|   {{- end }} | ||||
|   {{- with (include "prometheus-postgres-exporter.ingress.labels" . | fromYaml) }} | ||||
|   labels: | ||||
|   | ||||
| @@ -98,7 +98,7 @@ tests: | ||||
|   - equal: | ||||
|       path: spec.strategy | ||||
|       value: | ||||
|         type: "Rollingupdate" | ||||
|         type: "RollingUpdate" | ||||
|         rollingUpdate: | ||||
|           maxSurge: 1 | ||||
|           maxUnavailable: 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user