master
go 45 lines 1.65 KB
Raw
1 package mq
2
3 import (
4 "github.com/netdata/netdata/go/plugins/plugin/ibm.d/modules/mq/contexts"
5 )
6
7 // setQueueOverviewMetrics updates the queue overview chart with monitoring status
8 func (c *Collector) setQueueOverviewMetrics(monitored, excluded, invisible, failed int64) {
9 contexts.QueueManager.QueuesOverview.Set(c.State, contexts.EmptyLabels{}, contexts.QueueManagerQueuesOverviewValues{
10 Monitored: monitored,
11 Excluded: excluded,
12 Invisible: invisible,
13 Failed: failed,
14 })
15 }
16
17 // setChannelOverviewMetrics updates the channel overview chart with monitoring status
18 func (c *Collector) setChannelOverviewMetrics(monitored, excluded, invisible, failed int64) {
19 contexts.QueueManager.ChannelsOverview.Set(c.State, contexts.EmptyLabels{}, contexts.QueueManagerChannelsOverviewValues{
20 Monitored: monitored,
21 Excluded: excluded,
22 Invisible: invisible,
23 Failed: failed,
24 })
25 }
26
27 // setTopicOverviewMetrics updates the topic overview chart with monitoring status
28 func (c *Collector) setTopicOverviewMetrics(monitored, excluded, invisible, failed int64) {
29 contexts.QueueManager.TopicsOverview.Set(c.State, contexts.EmptyLabels{}, contexts.QueueManagerTopicsOverviewValues{
30 Monitored: monitored,
31 Excluded: excluded,
32 Invisible: invisible,
33 Failed: failed,
34 })
35 }
36
37 // setListenerOverviewMetrics updates the listener overview chart with monitoring status
38 func (c *Collector) setListenerOverviewMetrics(monitored, excluded, invisible, failed int64) {
39 contexts.QueueManager.ListenersOverview.Set(c.State, contexts.EmptyLabels{}, contexts.QueueManagerListenersOverviewValues{
40 Monitored: monitored,
41 Excluded: excluded,
42 Invisible: invisible,
43 Failed: failed,
44 })
45 }