coredns

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2019 License: GPL-3.0 Imports: 8 Imported by: 1

README

CoreDNS

This module will monitor one or more CoreDNS instances.

It produces the following charts:

Summary:

  1. Number Of DNS Requests in requests/s
  2. Number Of DNS Responses in responses/s
  3. Number Of Processed And Dropped DNS Requests in requests/s
  4. Number Of Dropped DNS Requests Because Of No Matching Zone in requests/s
  5. Number Of Panics in panics/s
  6. Number Of DNS Requests Per Transport Protocol in requests/s
  7. Number Of DNS Requests Per IP Family in requests/s
  8. Number Of DNS Requests Per Type in requests/s
  9. Number Of DNS Responses Per Rcode in responses/s

Per Server (if configured):

  1. Number Of DNS Requests in requests/s
  2. Number Of DNS Responses in responses/s
  3. Number Of Processed And Dropped DNS Requests in requests/s
  4. Number Of DNS Requests Per Transport Protocol in requests/s
  5. Number Of DNS Requests Per IP Family in requests/s
  6. Number Of DNS Requests Per Type in requests/s
  7. Number Of DNS Responses Per Rcode in responses/s

Per Zone (if configured):

  1. Number Of DNS Requests in requests/s
  2. Number Of DNS Responses in responses/s
  3. Number Of DNS Requests Per Transport Protocol in requests/s
  4. Number Of DNS Requests Per IP Family in requests/s
  5. Number Of DNS Requests Per Type in requests/s
  6. Number Of DNS Responses Per Rcode in responses/s

Configuration

The module eeeds only the url to a CoreDNS metrics-address.

Here is an example:

jobs:
  - name: local
    url : http://127.0.0.1:9153/metrics
      
  - name: remote
    url : http://100.64.0.1:9153/metrics

For all available options, please see the module's configuration file.

Without configuration, the module attempts to connect to http://127.0.0.1:9153/metrics.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart = module.Chart

Chart is an alias for module.Chart

type Charts

type Charts = module.Charts

Charts is an alias for module.Charts

type Config

type Config struct {
	web.HTTP       `yaml:",inline"`
	PerServerStats matcher.SimpleExpr `yaml:"per_server_stats"`
	PerZoneStats   matcher.SimpleExpr `yaml:"per_zone_stats"`
}

Config is the CoreDNS module configuration.

type CoreDNS

type CoreDNS struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

CoreDNS CoreDNS module.

func New

func New() *CoreDNS

New creates CoreDNS with default values.

func (CoreDNS) Charts

func (cd CoreDNS) Charts() *Charts

Charts creates Charts.

func (CoreDNS) Check

func (cd CoreDNS) Check() bool

Check makes check.

func (CoreDNS) Cleanup

func (CoreDNS) Cleanup()

Cleanup makes cleanup.

func (*CoreDNS) Collect

func (cd *CoreDNS) Collect() map[string]int64

Collect collects metrics.

func (*CoreDNS) Init

func (cd *CoreDNS) Init() bool

Init makes initialization.

type Dim

type Dim = module.Dim

Dim is an alias for module.Dim

type Dims

type Dims = module.Dims

Dims is an alias for module.Dims

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL