bind_exporter: Index | Files

package v2

import ""


Package Files


type Bind Uses

type Bind struct {
    Statistics Statistics `xml:"statistics"`

type Client Uses

type Client struct {

Client implements bind.Client and can be used to query a BIND v2 API.

func NewClient Uses

func NewClient(url string, c *http.Client) *Client

NewClient returns an initialized Client.

func (*Client) Stats Uses

func (c *Client) Stats(...bind.StatisticGroup) (bind.Statistics, error)

Stats implements bind.Stats. The BIND v2 API doesn't provide individual endpoints for different statistic groups, the passed parameters don't have any effect.

type Counter Uses

type Counter struct {
    Name    string `xml:"name"`
    Counter uint   `xml:"counter"`

type Isc Uses

type Isc struct {
    Bind    Bind     `xml:"bind"`
    XMLName xml.Name `xml:"isc"`

type Server Uses

type Server struct {
    BootTime    time.Time `xml:"boot-time"`
    ConfigTime  time.Time `xml:"config-time"`
    NSStats     []Counter `xml:"nsstat"`
    QueriesIn   []Counter `xml:"queries-in>rdtype"`
    Requests    []Counter `xml:"requests>opcode"`
    SocketStats []Counter `xml:"socketstat"`
    ZoneStats   []Counter `xml:"zonestat"`

type Statistics Uses

type Statistics struct {
    Memory    struct{}         `xml:"memory"`
    Server    Server           `xml:"server"`
    Socketmgr struct{}         `xml:"socketmgr"`
    Taskmgr   bind.TaskManager `xml:"taskmgr"`
    Views     []View           `xml:"views>view"`

type View Uses

type View struct {
    Name    string       `xml:"name"`
    Cache   []bind.Gauge `xml:"cache>rrset"`
    Rdtype  []Counter    `xml:"rdtype"`
    Resstat []Counter    `xml:"resstat"`
    Zones   []Counter    `xml:"zones>zone"`

type Zone Uses

type Zone struct {
    Name       string `xml:"name"`
    Rdataclass string `xml:"rdataclass"`
    Serial     string `xml:"serial"`

Package v2 imports 4 packages (graph) and is imported by 2 packages. Updated 2019-03-29. Refresh now. Tools for package owners.