Documentation
¶
Index ¶
Constants ¶
View Source
const (
// QryRTT is the common prefix of query round-trip histogram counters.
QryRTT = "QryRTT"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Stats(...StatisticGroup) (Statistics, error)
}
Client queries the BIND API, parses the response and returns stats in a generic format.
type Counter ¶
Counter represents a single counter value.
type Gauge ¶
Gauge represents a single gauge value.
type Server ¶
type Server struct {
BootTime time.Time
ConfigTime time.Time
IncomingQueries []Counter
IncomingRequests []Counter
NameServerStats []Counter
ZoneStatistics []Counter
}
Server represents BIND server statistics.
type StatisticGroup ¶
type StatisticGroup string
StatisticGroup describes a sub-group of BIND statistics.
const ( ServerStats StatisticGroup = "server" ViewStats StatisticGroup = "view" TaskStats StatisticGroup = "tasks" )
Available statistic groups.
type Statistics ¶
type Statistics struct {
Server Server
Views []View
TaskManager TaskManager
}
Statistics is a generic representation of BIND statistics.
type Task ¶
type Task struct {
ID string `xml:"id"`
Name string `xml:"name"`
Quantum uint `xml:"quantum"`
References uint `xml:"references"`
State string `xml:"state"`
}
Task represents a single running task.
type TaskManager ¶
type TaskManager struct {
Tasks []Task `xml:"tasks>task"`
ThreadModel ThreadModel `xml:"thread-model"`
}
TaskManager contains information about all running tasks.
type ThreadModel ¶
type ThreadModel struct {
Type string `xml:"type"`
WorkerThreads uint `xml:"worker-threads"`
DefaultQuantum uint `xml:"default-quantum"`
TasksRunning uint `xml:"tasks-running"`
}
ThreadModel contains task and worker information.
type View ¶
View represents statistics for a single BIND view.
Source Files
¶
- bind.go
Click to show internal directories.
Click to hide internal directories.