mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
[prometheus-nut-exporter] metrics consistency (#1160)
* [network-ups-tools] add exporter sidecar * fix linting * [prometheus-nut-exporter] metrics consistency * fix linting
This commit is contained in:
parent
f16383e204
commit
5165f06ca7
@ -2,7 +2,7 @@ apiVersion: v2
|
||||
appVersion: 1.1.1
|
||||
description: Prometheus NUT Exporter a service monitor to send NUT server metrics to a Prometheus instance.
|
||||
name: prometheus-nut-exporter
|
||||
version: 4.0.0
|
||||
version: 4.1.0
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
keywords:
|
||||
- nut
|
||||
|
@ -1,6 +1,6 @@
|
||||
# prometheus-nut-exporter
|
||||
|
||||
![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) ![AppVersion: 1.1.1](https://img.shields.io/badge/AppVersion-1.1.1-informational?style=flat-square)
|
||||
![Version: 4.1.0](https://img.shields.io/badge/Version-4.1.0-informational?style=flat-square) ![AppVersion: 1.1.1](https://img.shields.io/badge/AppVersion-1.1.1-informational?style=flat-square)
|
||||
|
||||
Prometheus NUT Exporter a service monitor to send NUT server metrics to a Prometheus instance.
|
||||
|
||||
@ -76,6 +76,7 @@ N/A
|
||||
| Key | Type | Default | Description |
|
||||
|-----|------|---------|-------------|
|
||||
| env | object | See below | environment variables. See [application docs](https://github.com/HON95/prometheus-nut-exporter#environment-variables) for more details. |
|
||||
| env.RUST_LOG | string | `"info"` | log level [info|debug|trace] |
|
||||
| env.TZ | string | `"UTC"` | Set the container timezone |
|
||||
| image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
|
||||
| image.repository | string | `"hon95/prometheus-nut-exporter"` | image repository |
|
||||
|
@ -1 +1,13 @@
|
||||
{{/* Make sure all variables are set properly */}}
|
||||
{{- include "common.values.setup" . }}
|
||||
|
||||
{{/* Append the hardcoded settings */}}
|
||||
{{- define "prometheus-nut-exporter.harcodedValues" -}}
|
||||
env:
|
||||
HTTP_PATH: "/metrics"
|
||||
HTTP_PORT: "{{ .Values.service.main.ports.metrics.port }}"
|
||||
{{- end -}}
|
||||
{{- $_ := mergeOverwrite .Values (include "prometheus-nut-exporter.harcodedValues" . | fromYaml) -}}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{ include "common.all" . }}
|
||||
|
@ -14,10 +14,10 @@ spec:
|
||||
{{- include "common.labels.selectorLabels" . | nindent 6 }}
|
||||
endpoints:
|
||||
{{- range .Values.prometheus.serviceMonitor.targets }}
|
||||
- port: http
|
||||
- port: metrics
|
||||
interval: {{ .interval }}
|
||||
scrapeTimeout: {{ .scrapeTimeout }}
|
||||
path: /nut
|
||||
path: /metrics
|
||||
params:
|
||||
target:
|
||||
- "{{ .hostname }}:{{ .port }}"
|
||||
|
@ -18,6 +18,8 @@ image:
|
||||
env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- log level [info|debug|trace]
|
||||
RUST_LOG: info
|
||||
|
||||
# -- Configures service settings for the chart.
|
||||
# @default -- See values.yaml
|
||||
@ -25,6 +27,10 @@ service:
|
||||
main:
|
||||
ports:
|
||||
http:
|
||||
enabled: false
|
||||
metrics:
|
||||
enabled: true
|
||||
protocol: TCP
|
||||
port: 9995
|
||||
|
||||
prometheus:
|
||||
|
Loading…
Reference in New Issue
Block a user