Merge pull request #79 from systemli/fix-exporter-crashing
🐛 Fix exporter crashing during json parsing
This commit is contained in:
commit
dcc19c2796
2 changed files with 6 additions and 6 deletions
8
main.go
8
main.go
|
@ -48,10 +48,10 @@ type videoBridgeStats struct {
|
||||||
OctoVersion int `json:"octo_version"`
|
OctoVersion int `json:"octo_version"`
|
||||||
OctoConferences int `json:"octo_conferences"`
|
OctoConferences int `json:"octo_conferences"`
|
||||||
OctoEndpoints int `json:"octo_endpoints"`
|
OctoEndpoints int `json:"octo_endpoints"`
|
||||||
OctoReceiveBitrate int `json:"octo_receive_bitrate"`
|
OctoReceiveBitrate float64 `json:"octo_receive_bitrate"`
|
||||||
OctoReceivePacketRate int `json:"octo_receive_packet_rate"`
|
OctoReceivePacketRate float64 `json:"octo_receive_packet_rate"`
|
||||||
OctoSendBitrate int `json:"octo_send_bitrate"`
|
OctoSendBitrate float64 `json:"octo_send_bitrate"`
|
||||||
OctoSendPacketRate int `json:"octo_send_packet_rate"`
|
OctoSendPacketRate float64 `json:"octo_send_packet_rate"`
|
||||||
TotalBytesReceivedOcto int `json:"total_bytes_received_octo"`
|
TotalBytesReceivedOcto int `json:"total_bytes_received_octo"`
|
||||||
TotalBytesSentOcto int `json:"total_bytes_sent_octo"`
|
TotalBytesSentOcto int `json:"total_bytes_sent_octo"`
|
||||||
TotalPacketsDroppedOcto int `json:"total_packets_dropped_octo"`
|
TotalPacketsDroppedOcto int `json:"total_packets_dropped_octo"`
|
||||||
|
|
|
@ -190,9 +190,9 @@ jitsi_conference_sizes{conference_size="21"} 0
|
||||||
"loss_rate_upload": 0.5,
|
"loss_rate_upload": 0.5,
|
||||||
"octo_conferences": 0,
|
"octo_conferences": 0,
|
||||||
"octo_endpoints": 0,
|
"octo_endpoints": 0,
|
||||||
"octo_receive_bitrate": 0,
|
"octo_receive_bitrate": 0.0,
|
||||||
"octo_receive_packet_rate": 0,
|
"octo_receive_packet_rate": 0,
|
||||||
"octo_send_bitrate": 0,
|
"octo_send_bitrate": 0.0,
|
||||||
"octo_send_packet_rate": 0,
|
"octo_send_packet_rate": 0,
|
||||||
"octo_version": 1,
|
"octo_version": 1,
|
||||||
"packet_rate_download": 0,
|
"packet_rate_download": 0,
|
||||||
|
|
Loading…
Reference in a new issue