mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-09 05:06:07 +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
|
appVersion: 1.1.1
|
||||||
description: Prometheus NUT Exporter a service monitor to send NUT server metrics to a Prometheus instance.
|
description: Prometheus NUT Exporter a service monitor to send NUT server metrics to a Prometheus instance.
|
||||||
name: prometheus-nut-exporter
|
name: prometheus-nut-exporter
|
||||||
version: 4.0.0
|
version: 4.1.0
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- nut
|
- nut
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# prometheus-nut-exporter
|
# 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.
|
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 |
|
| 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 | 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 |
|
| env.TZ | string | `"UTC"` | Set the container timezone |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
|
| image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
|
||||||
| image.repository | string | `"hon95/prometheus-nut-exporter"` | image repository |
|
| 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" . }}
|
{{ include "common.all" . }}
|
||||||
|
@ -14,10 +14,10 @@ spec:
|
|||||||
{{- include "common.labels.selectorLabels" . | nindent 6 }}
|
{{- include "common.labels.selectorLabels" . | nindent 6 }}
|
||||||
endpoints:
|
endpoints:
|
||||||
{{- range .Values.prometheus.serviceMonitor.targets }}
|
{{- range .Values.prometheus.serviceMonitor.targets }}
|
||||||
- port: http
|
- port: metrics
|
||||||
interval: {{ .interval }}
|
interval: {{ .interval }}
|
||||||
scrapeTimeout: {{ .scrapeTimeout }}
|
scrapeTimeout: {{ .scrapeTimeout }}
|
||||||
path: /nut
|
path: /metrics
|
||||||
params:
|
params:
|
||||||
target:
|
target:
|
||||||
- "{{ .hostname }}:{{ .port }}"
|
- "{{ .hostname }}:{{ .port }}"
|
||||||
|
@ -18,6 +18,8 @@ image:
|
|||||||
env:
|
env:
|
||||||
# -- Set the container timezone
|
# -- Set the container timezone
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
|
# -- log level [info|debug|trace]
|
||||||
|
RUST_LOG: info
|
||||||
|
|
||||||
# -- Configures service settings for the chart.
|
# -- Configures service settings for the chart.
|
||||||
# @default -- See values.yaml
|
# @default -- See values.yaml
|
||||||
@ -25,6 +27,10 @@ service:
|
|||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
http:
|
http:
|
||||||
|
enabled: false
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
protocol: TCP
|
||||||
port: 9995
|
port: 9995
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
|
Loading…
Reference in New Issue
Block a user