mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
Fix spelling of celsius in IPMI example script (#967)
'Celsius' should be spelt with an 's': https://en.wikipedia.org/wiki/Celsius Signed-off-by: Matt Bostock <mbostock@cloudflare.com>
This commit is contained in:
parent
2678d68dcc
commit
f56e8fcdf4
|
@ -29,13 +29,13 @@ BEGIN {
|
|||
namespace = "node_ipmi_";
|
||||
|
||||
# Friendly description of the type of sensor for HELP.
|
||||
help["temperature_celcius"] = "Temperature";
|
||||
help["temperature_celsius"] = "Temperature";
|
||||
help["volts"] = "Voltage";
|
||||
help["power_watts"] = "Power";
|
||||
help["speed_rpm"] = "Fan";
|
||||
help["status"] = "Chassis status";
|
||||
|
||||
temperature_celcius["metric_count"] = 0;
|
||||
temperature_celsius["metric_count"] = 0;
|
||||
volts["metric_count"] = 0;
|
||||
power_watts["metric_count"] = 0;
|
||||
speed_rpm["metric_count"] = 0;
|
||||
|
@ -56,8 +56,8 @@ $2 ~ /na/ {
|
|||
|
||||
# $3 is type field.
|
||||
$3 ~ /degrees C/ {
|
||||
temperature_celcius[$1] = $2;
|
||||
temperature_celcius["metric_count"]++;
|
||||
temperature_celsius[$1] = $2;
|
||||
temperature_celsius["metric_count"]++;
|
||||
}
|
||||
|
||||
$3 ~ /Volts/ {
|
||||
|
@ -81,7 +81,7 @@ $3 ~ /discrete/ {
|
|||
}
|
||||
|
||||
END {
|
||||
export(temperature_celcius, "temperature_celcius");
|
||||
export(temperature_celsius, "temperature_celsius");
|
||||
export(volts, "volts");
|
||||
export(power_watts, "power_watts");
|
||||
export(speed_rpm, "speed_rpm");
|
||||
|
|
Loading…
Reference in a new issue