diff options
author | Joe Robinson <joe@lc8n.com> | 2019-02-17 22:11:46 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2019-02-17 22:11:46 +0000 |
commit | 765f3218a5eebe5e314405bba8a21b351028089c (patch) | |
tree | c04410135da640db57e9a68ddccae49dade5fbc3 | |
parent | 823e7d5c35c56a6bd6a90acd5d95508b53ab2cd8 (diff) |
Update prometheus endpoint
-rw-r--r-- | scarecrow.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scarecrow.rb b/scarecrow.rb index 34b8125..874ae86 100644 --- a/scarecrow.rb +++ b/scarecrow.rb @@ -109,10 +109,10 @@ get '/metrics' do humidity_prop = Humidity.last(device: "cricket0")[:value] temp_air = Temperature.last(device: "mercury")[:value] humidity_air = Humidity.last(device: "mercury")[:value] - "humidity.air #{humidity_air}\n -humidity.propagator #{humidity_prop}\n -temperature.air #{temp_air}\n -temperature.propagator #{temp_prop}" + "humidity_kitchen #{humidity_air} +humidity_propagator #{humidity_prop} +temperature_kitchen #{temp_air} +temperature_propagator #{temp_prop}" end init |