Documentation ¶
Index ¶
- Constants
- type ActiveMQ
- func (a *ActiveMQ) Description() string
- func (a *ActiveMQ) Gather(acc telegraf.Accumulator) error
- func (a *ActiveMQ) GatherQueuesMetrics(acc telegraf.Accumulator, queues Queues)
- func (a *ActiveMQ) GatherSubscribersMetrics(acc telegraf.Accumulator, subscribers Subscribers)
- func (a *ActiveMQ) GatherTopicsMetrics(acc telegraf.Accumulator, topics Topics)
- func (a *ActiveMQ) GetMetrics(keyword string) ([]byte, error)
- func (a *ActiveMQ) SampleConfig() string
- type Queue
- type Queues
- type Stats
- type Subscriber
- type Subscribers
- type Topic
- type Topics
Constants ¶
View Source
const ( QUEUES_STATS = "queues" TOPICS_STATS = "topics" SUBSCRIBERS_STATS = "subscribers" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveMQ ¶
type ActiveMQ struct { Server string `json:"server"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` Webadmin string `json:"webadmin"` ResponseTimeout internal.Duration tls.ClientConfig // contains filtered or unexported fields }
func (*ActiveMQ) Description ¶
func (*ActiveMQ) GatherQueuesMetrics ¶
func (a *ActiveMQ) GatherQueuesMetrics(acc telegraf.Accumulator, queues Queues)
func (*ActiveMQ) GatherSubscribersMetrics ¶
func (a *ActiveMQ) GatherSubscribersMetrics(acc telegraf.Accumulator, subscribers Subscribers)
func (*ActiveMQ) GatherTopicsMetrics ¶
func (a *ActiveMQ) GatherTopicsMetrics(acc telegraf.Accumulator, topics Topics)
func (*ActiveMQ) SampleConfig ¶
type Stats ¶
type Stats struct { XMLName xml.Name `xml:"stats"` Size int `xml:"size,attr"` ConsumerCount int `xml:"consumerCount,attr"` EnqueueCount int `xml:"enqueueCount,attr"` DequeueCount int `xml:"dequeueCount,attr"` PendingQueueSize int `xml:"pendingQueueSize,attr"` DispatchedQueueSize int `xml:"dispatchedQueueSize,attr"` DispatchedCounter int `xml:"dispatchedCounter,attr"` EnqueueCounter int `xml:"enqueueCounter,attr"` DequeueCounter int `xml:"dequeueCounter,attr"` }
type Subscriber ¶
type Subscriber struct { XMLName xml.Name `xml:"subscriber"` ClientId string `xml:"clientId,attr"` SubscriptionName string `xml:"subscriptionName,attr"` ConnectionId string `xml:"connectionId,attr"` DestinationName string `xml:"destinationName,attr"` Selector string `xml:"selector,attr"` Active string `xml:"active,attr"` Stats Stats `xml:"stats"` }
type Subscribers ¶
type Subscribers struct { XMLName xml.Name `xml:"subscribers"` SubscriberItems []Subscriber `xml:"subscriber"` }
Click to show internal directories.
Click to hide internal directories.