Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultClientTimeout = 4
View Source
const DefaultPassword = "guest"
DefaultPassword will set a default value that corrasponds to the default value used by Rabbitmq
View Source
const DefaultResponseHeaderTimeout = 3
Default http timeouts
View Source
const DefaultURL = "http://localhost:15672"
DefaultURL will set a default value that corrasponds to the default value used by Rabbitmq
View Source
const DefaultUsername = "guest"
DefaultUsername will set a default value that corrasponds to the default value used by Rabbitmq
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageStats ¶
type MessageStats struct {
Ack int64
AckDetails Details `json:"ack_details"`
Deliver int64
DeliverDetails Details `json:"deliver_details"`
DeliverGet int64
DeliverGetDetails Details `json:"deliver_get_details"`
Publish int64
PublishDetails Details `json:"publish_details"`
Redeliver int64
RedeliverDetails Details `json:"redeliver_details"`
}
MessageStats ...
type Node ¶
type Node struct {
Name string
DiskFree int64 `json:"disk_free"`
DiskFreeLimit int64 `json:"disk_free_limit"`
FdTotal int64 `json:"fd_total"`
FdUsed int64 `json:"fd_used"`
MemLimit int64 `json:"mem_limit"`
MemUsed int64 `json:"mem_used"`
ProcTotal int64 `json:"proc_total"`
ProcUsed int64 `json:"proc_used"`
RunQueue int64 `json:"run_queue"`
SocketsTotal int64 `json:"sockets_total"`
SocketsUsed int64 `json:"sockets_used"`
}
Node ...
type ObjectTotals ¶
type ObjectTotals struct {
Channels int64
Connections int64
Consumers int64
Exchanges int64
Queues int64
}
ObjectTotals ...
type OverviewResponse ¶
type OverviewResponse struct {
MessageStats *MessageStats `json:"message_stats"`
ObjectTotals *ObjectTotals `json:"object_totals"`
QueueTotals *QueueTotals `json:"queue_totals"`
}
OverviewResponse ...
type Queue ¶
type Queue struct {
QueueTotals // just to not repeat the same code
MessageStats `json:"message_stats"`
Memory int64
Consumers int64
ConsumerUtilisation float64 `json:"consumer_utilisation"`
Name string
Node string
Vhost string
Durable bool
AutoDelete bool `json:"auto_delete"`
IdleSince string `json:"idle_since"`
}
Queue ...
type QueueTotals ¶
type QueueTotals struct {
Messages int64
MessagesReady int64 `json:"messages_ready"`
MessagesUnacknowledged int64 `json:"messages_unacknowledged"`
MessageBytes int64 `json:"message_bytes"`
MessageBytesReady int64 `json:"message_bytes_ready"`
MessageBytesUnacknowledged int64 `json:"message_bytes_unacknowledged"`
MessageRAM int64 `json:"message_bytes_ram"`
MessagePersistent int64 `json:"message_bytes_persistent"`
}
QueueTotals ...
type RabbitMQ ¶
type RabbitMQ struct {
URL string
Name string
Username string
Password string
// Path to CA file
SSLCA string `toml:"ssl_ca"`
// Path to host cert file
SSLCert string `toml:"ssl_cert"`
// Path to cert key file
SSLKey string `toml:"ssl_key"`
// Use SSL but skip chain & host verification
InsecureSkipVerify bool
ResponseHeaderTimeout internal.Duration `toml:"header_timeout"`
ClientTimeout internal.Duration `toml:"client_timeout"`
// InsecureSkipVerify bool
Nodes []string
Queues []string
Client *http.Client
}
RabbitMQ defines the configuration necessary for gathering metrics, see the sample config for further details
Click to show internal directories.
Click to hide internal directories.