Commit c33b5efd authored by ulif's avatar ulif 🐻

Fix data type of munin graphs.

Use GAUGE instead of DERIVE. See
http://guide.munin-monitoring.org/en/latest/architecture/syntax.html#datatypes
for details.
parent bff21160
......@@ -68,13 +68,13 @@ for m in meetings:
p = m.getElementsByTagName("bbb-origin-server-name")[0]
numMeetings += 1
p = m.getElementsByTagName("participantCount")[0]
numAttendees += int(p.firstChild.wholeText)
numAttendees += int(p.firstChild.wholeText)
p = m.getElementsByTagName("listenerCount")[0]
numListeners += int(p.firstChild.wholeText)
numListeners += int(p.firstChild.wholeText)
p = m.getElementsByTagName("voiceParticipantCount")[0]
numWithVoice += int(p.firstChild.wholeText)
numWithVoice += int(p.firstChild.wholeText)
p = m.getElementsByTagName("videoCount")[0]
numWithVideo += int(p.firstChild.wholeText)
numWithVideo += int(p.firstChild.wholeText)
if "autoconf" in sys.argv:
......@@ -86,22 +86,22 @@ elif "config" in sys.argv:
print("graph_args --base 1000 -l 0")
print("graph_category system")
print("attendees.label attendees")
print("attendees.type DERIVE")
print("attendees.type GAUGE")
print("attendees.info Number of attendees")
print("attendees.draw AREA")
print("meetings.label meetings")
print("meetings.type DERIVE")
print("meetings.type GAUGE")
print("meetings.info Number of active conferences")
print("video.label video")
print("video.type DERIVE")
print("video.type GAUGE")
print("video.info Number of video streams")
print("video.draw STACK")
print("voice.label voice")
print("voice.type DERIVE")
print("voice.type GAUGE")
print("voice.info Number of voice streams")
print("voice.draw STACK")
print("listeners.label listeners")
print("listeners.type DERIVE")
print("listeners.type GAUGE")
print("listeners.info Number of listening attendees")
print("listeners.draw STACK")
sys.exit(0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment