Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaurele committed Jan 19, 2024
1 parent 2bec2b7 commit 1a83bc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion metrics/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1a83bc3

Please sign in to comment.