Documentation
¶
Overview ¶
Package collector is used to collect metrics by implementing prometheus.Collector interface. See function level comments for more details.
Index ¶
Constants ¶
View Source
const ( // SocketPath where istgt is listening SocketPath = "/var/run/istgt_ctl_sock" // HeaderPrefix is the prefix comes in the header from cstor. HeaderPrefix = "iSCSI Target Controller version" // EOF separates the strings from response which comes from the // cstor as the collection of metrics. EOF = "\r\n" Footer = "OK IOSTATS" // Command is a command that is used to write over wire and get // the iostats from the cstor. Command = "IOSTATS" // BufSize is the size of response from cstor read at one time. BufSize = 1024 )
View Source
const ( // Offline is the status of volume when no io's have been served // or volume may be in RO state (only for jiva) Offline volumeStatus // Degraded is the status of volume when volume is // performing in degraded mode but all features may available Degraded // Healthy is the status of volume when volume is serving io's // and all features are available or volume may be in RW state // (for jiva) Healthy // Unknown is the status of volume when no info is available Unknown )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collector ¶
type Collector interface { Describe(chan<- *prometheus.Desc) Collect(chan<- prometheus.Metric) }
Collector is an interface that is used for initializing various collectors for collecting volume and pool metrics
type Getter ¶
type Getter interface {
// contains filtered or unexported methods
}
Getter interface defines the method that to be implemented by the cstor and jiva. getter() is used to collect the stats from the Jiva and Cstor.
Click to show internal directories.
Click to hide internal directories.