ctucx.git: fritzbox-exporter

[nimlang] prometheus exporter for lte fritzboxes

commit da526b22a58c043a25c6f97bef6c46ce1fac23bd
parent bbb5bfe6e09af8405bc7346520a1ac4d9cbc7757
Author: ctucx <ctucx@git.ctu.cx>
Date: Fri, 15 May 2020 11:48:25 +0200

„src/fb_exporter.nim“ ändern
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/fb_exporter.nim b/src/fb_exporter.nim
@@ -120,6 +120,7 @@ proc prometheusResponse* (request: Request, state: JsonNode) {.async.} =
             if cell != "":
               if data[cell].hasKey("technology"):
                 let cell_technology = data[cell]["technology"].getStr
+                res &= "fritzbox_cell_techology{cell=\"" & $num & "\"} " & $(cell_techology) & " " & $(lastUpdated * 1000) & "\n"
 
               if data[cell].hasKey("quality"):
                 let cell_quality = data[cell]["quality"].getInt