No introduction found. Create it?
Install with:
helm repo add prometheus-node-exporter oci://ghcr.io/prometheus-community/charts/
helm install node-exporter prometheus-node-exporter/prometheus-node-exporter -f values.yamlSee examples from other people.
| Name | Repo | Stars | Version | Timestamp |
|---|---|---|---|---|
| node-exporter | ahinko/home-ops | 259 | 4.49.1 | a month ago |
| node-exporter | haraldkoch/kochhaus-home | 156 | 4.49.1 | 2 months ago |
| node-exporter | JJGadgets/Biohazard | 78 | 4.47.3 | 3 months ago |
See the most popular values for this chart:
| Key | Types |
|---|---|
| boolean | |
prometheus.monitor.jobLabel (14) app.kubernetes.io/instance | string |
prometheus.monitor.relabelings[].sourceLabels[] (13) - __meta_kubernetes_pod_node_name | string |
prometheus.monitor.relabelings[].targetLabel (13) kubernetes_node | string |
prometheus.monitor.relabelings[].action (11) replace | string |
| string | |
| string | |
| string | |
prometheus.monitor.metricRelabelings[].regex (3) /var/lib/kubelet/pods.+ | string |
| string | |
prometheus.monitor.metricRelabelings[].targetLabel (1) kubernetes_node | string |
| boolean | |
| string | |
| string | |
fullnameOverride (14) node-exporter | string |
| string | |
| string | |
| string | |
| string | |
hostNetwork (9) false | boolean |
extraArgs[] (7) - --collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+)($|/) | string |
image.registry (7) quay.io | string |
image.repository (7) prometheus/node-exporter | string |
rbac.pspEnabled (5) false | boolean |
podLabels.jobLabel (4) node-exporter | string |
| string | |
releaseLabel (4) true | boolean |
service.portName (2) http-metrics | string |
extraManifests[] (1) - apiVersion: v1
kind: ConfigMap
metadata:
name: power-metrics-script
data:
power_metrics.sh: |
#!/usr/local/bin/bash
# Путь к файлу с состояниями пакетов
CSTATE_FILE="/sys/kernel/debug/pmc_core/package_cstate_show"
PCIE_ASPM_FILE="/sys/module/pcie_aspm/parameters/policy"
OUTPUT_FILE="/run/prometheus_sidecar/cstate_metrics.prom"
# Подмонтировано ли
if mountpoint -q /sys/kernel/debug
then
:
else
mount -t debugfs none /sys/kernel/debug
fi
# Проверяем, существует ли файл
if [[ ! -f "$CSTATE_FILE" ]]; then
echo "File $CSTATE_FILE does not exist."
echo "# TYPE package_cstate_scrape_last_error gauge" > "$OUTPUT_FILE"
echo "package_cstate_scrape_last_error 1" >> "$OUTPUT_FILE"
exit 1
fi
# Записываем метрики в файл
echo "# TYPE package_cstate counter" > "$OUTPUT_FILE"
{
while IFS= read -r line; do
if [[ $line =~ Package\ (C[0-9]+)\ :\ ([0-9]+) ]]; then
state="${BASH_REMATCH[1]}"
value="${BASH_REMATCH[2]}"
echo "package_cstate{cstate=\"${state}\"} $value"
fi
done < "$CSTATE_FILE"
} >> "$OUTPUT_FILE"
echo "# TYPE package_cstate_scrape_last_error gauge" >> "$OUTPUT_FILE"
echo "package_cstate_scrape_last_error 0" >> "$OUTPUT_FILE"
| string |
extraVolumeMounts[].mountPath (1) /run/prometheus_sidecar | string |
extraVolumeMounts[].name (1) power-metrics-volume | string |
| boolean | |
extraVolumes[].configMap.name (1) power-metrics-script | string |
extraVolumes[].name (1) power-metrics-script | string |
nameOverride (1) node-exporter | string |
sidecars[].args[] (1) - -c | string |
sidecars[].command[] (1) - /usr/local/bin/bash | string |
sidecars[].image (1) bash:5.2.37-alpine3.21 | string |
sidecars[].name (1) power-metrics | string |
| string | |
| boolean | |
| number | |
sidecars[].volumeMounts[].mountPath (1) /usr/scripts/ | string |
sidecars[].volumeMounts[].name (1) power-metrics-script | string |