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 Server ¶
type Server struct { BootTime time.Time ConfigTime time.Time IncomingQueries []Counter IncomingRequests []Counter NameServerStats []Counter ZoneStatistics []Counter ServerRcodes []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 ZoneViews []ZoneView TaskManager TaskManager }
Statistics is a generic representation of BIND statistics.
type Task ¶
type Task struct { ID string `xml:"id"` Name string `xml:"name"` Quantum int64 `xml:"quantum"` References uint64 `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 uint64 `xml:"worker-threads"` DefaultQuantum uint64 `xml:"default-quantum"` TasksRunning uint64 `xml:"tasks-running"` }
ThreadModel contains task and worker information.
type ZoneCounter ¶ added in v0.4.0
Counter represents a single zone counter value.
type ZoneView ¶ added in v0.4.0
type ZoneView struct { Name string ZoneData []ZoneCounter }
View represents statistics for a single BIND zone view.
Click to show internal directories.
Click to hide internal directories.