Skip to content
Snippets Groups Projects
Verified Commit a1dd4d8f authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(nut-exporter): Add required `ups` parameter

parent dd2b1911
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,10 @@ metadata:
namespace: nut-exporter
data:
values.yaml: |
podMonitor:
params:
ups:
- ups
env:
- name: NUT_EXPORTER_USERNAME
valueFrom:
......
......@@ -13,5 +13,5 @@ sources:
- https://github.com/acolombier/nut_exporter/tree/feat/add-helm-chart
type: application
version: 0.2.0
version: 0.3.0
appVersion: 3.0.0
# nut-exporter
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
Installs NUT exporter in Kubernetes
......@@ -21,7 +21,8 @@ Installs NUT exporter in Kubernetes
| image.repository | string | `"ghcr.io/druggeri/nut_exporter"` | |
| image.tag | string | `""` | |
| nodeSelector | object | `{}` | |
| podMonitor | object | `{"enabled":true,"labels":{},"relabelings":[]}` | Enables podMonitor object for prometheus-operator based setups |
| podMonitor | object | `{"enabled":true,"labels":{},"params":{},"relabelings":[]}` | Enables podMonitor object for prometheus-operator based setups |
| podMonitor.params | object | `{}` | parameters that are used on the scrape target required for functional dashboard |
| podSecurityContext.runAsGroup | int | `3642` | |
| podSecurityContext.runAsNonRoot | bool | `true` | |
| podSecurityContext.runAsUser | int | `3642` | |
......
......@@ -10,18 +10,22 @@ metadata:
name: {{ include "nutexporter.fullname" . }}
spec:
podMetricsEndpoints:
- interval: 15s
{{- with $.Values.podMonitor.metricRelabelings }}
metricRelabelings:
{{ toYaml . | nindent 6}}
{{- end }}
{{- with $.Values.podMonitor.relabelings }}
relabelings:
{{ toYaml . | nindent 6}}
{{- end }}
path: /ups_metrics
port: http
scheme: http
- interval: 15s
{{- with $.Values.podMonitor.metricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 8}}
{{- end }}
{{- with $.Values.podMonitor.relabelings }}
relabelings:
{{- toYaml . | nindent 8}}
{{- end }}
path: /ups_metrics
port: http
scheme: http
{{- with .Values.podMonitor.params }}
params:
{{ toYaml . | nindent 8}}
{{- end }}
jobLabel: nut-exporter
namespaceSelector:
matchNames:
......
......@@ -13,10 +13,13 @@ dashboard:
podMonitor:
enabled: true
labels: {}
# key: value
relabelings: []
# - replacement: "My UPS"
# targetLabel: ups
# -- parameters that are used on the scrape target required for functional dashboard
params: {}
# ups:
# - ups
extraArgs: []
# - --log.level=debug
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment