diff --git a/README.md b/README.md index 6c04803..28793ba 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Currently it can expose: ## Configuration -It an expose all IPX800 values, or it can only return a subset of them by defining the environment varialbe `READ` as a comma separated list of sensor type and index value, with the attribute to read. An example would be: +It an expose all IPX800 values, or it can only return a subset of them by defining the environment variable `READ` as a comma separated list of sensor type and index value, with the attribute to read. An example would be: ```console docker run --rm \ diff --git a/metrics/main.py b/metrics/main.py index a987002..3b28b0a 100644 --- a/metrics/main.py +++ b/metrics/main.py @@ -34,7 +34,7 @@ def gce_ipx800_metrics(): for a in analogs: idx = int(a[0][1:]) attribute = a[1] - data += f'gce_ipx800_sensors{{host="{ipx_host}", analog="{a[0]}"}} {round(getattr(ipx.analogs[idx-1], attribute), 3)}\n' + data += f'gce_ipx800_analogs{{host="{ipx_host}", analog="{a[0]}"}} {round(getattr(ipx.analogs[idx-1], attribute), 3)}\n' if counters: data += "# TYPE gce_ipx800_counters counter\n" for c in counters: