github.com/netdata/go.d.plugin@v0.58.1/modules/powerdns/charts.go (about)

     1  // SPDX-License-Identifier: GPL-3.0-or-later
     2  
     3  package powerdns
     4  
     5  import "github.com/netdata/go.d.plugin/agent/module"
     6  
     7  var charts = module.Charts{
     8  	{
     9  		ID:    "questions_in",
    10  		Title: "Incoming questions",
    11  		Units: "questions/s",
    12  		Fam:   "questions",
    13  		Ctx:   "powerdns.questions_in",
    14  		Dims: module.Dims{
    15  			{ID: "udp-queries", Name: "udp", Algo: module.Incremental},
    16  			{ID: "tcp-queries", Name: "tcp", Algo: module.Incremental},
    17  		},
    18  	},
    19  	{
    20  		ID:    "questions_out",
    21  		Title: "Outgoing questions",
    22  		Units: "questions/s",
    23  		Fam:   "questions",
    24  		Ctx:   "powerdns.questions_out",
    25  		Dims: module.Dims{
    26  			{ID: "udp-answers", Name: "udp", Algo: module.Incremental},
    27  			{ID: "tcp-answers", Name: "tcp", Algo: module.Incremental},
    28  		},
    29  	},
    30  	{
    31  		ID:    "cache_usage",
    32  		Title: "Cache Usage",
    33  		Units: "events/s",
    34  		Fam:   "cache",
    35  		Ctx:   "powerdns.cache_usage",
    36  		Dims: module.Dims{
    37  			{ID: "query-cache-hit", Algo: module.Incremental},
    38  			{ID: "query-cache-miss", Algo: module.Incremental},
    39  			{ID: "packetcache-hit", Name: "packet-cache-hit", Algo: module.Incremental},
    40  			{ID: "packetcache-miss", Name: "packet-cache-miss", Algo: module.Incremental},
    41  		},
    42  	},
    43  	{
    44  		ID:    "cache_size",
    45  		Title: "Cache Size",
    46  		Units: "entries",
    47  		Fam:   "cache",
    48  		Ctx:   "powerdns.cache_size",
    49  		Dims: module.Dims{
    50  			{ID: "query-cache-size", Name: "query-cache"},
    51  			{ID: "packetcache-size", Name: "packet-cache"},
    52  			{ID: "key-cache-size", Name: "key-cache"},
    53  			{ID: "meta-cache-size", Name: "meta-cache"},
    54  		},
    55  	},
    56  	{
    57  		ID:    "latency",
    58  		Title: "Answer latency",
    59  		Units: "microseconds",
    60  		Fam:   "latency",
    61  		Ctx:   "powerdns.latency",
    62  		Dims: module.Dims{
    63  			{ID: "latency"},
    64  		},
    65  	},
    66  }