From 765f3218a5eebe5e314405bba8a21b351028089c Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Sun, 17 Feb 2019 22:11:46 +0000 Subject: Update prometheus endpoint --- scarecrow.rb | 8 ++++---- 1 file 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 -- cgit v1.2.3