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

     1  // SPDX-License-Identifier: GPL-3.0-or-later
     2  
     3  package powerdns_recursor
     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_recursor.questions_in",
    14  		Dims: module.Dims{
    15  			{ID: "questions", Name: "total", Algo: module.Incremental},
    16  			{ID: "tcp-questions", Name: "tcp", Algo: module.Incremental},
    17  			{ID: "ipv6-questions", Name: "ipv6", Algo: module.Incremental},
    18  		},
    19  	},
    20  	{
    21  		ID:    "questions_out",
    22  		Title: "Outgoing questions",
    23  		Units: "questions/s",
    24  		Fam:   "questions",
    25  		Ctx:   "powerdns_recursor.questions_out",
    26  		Dims: module.Dims{
    27  			{ID: "all-outqueries", Name: "udp", Algo: module.Incremental},
    28  			{ID: "tcp-outqueries", Name: "tcp", Algo: module.Incremental},
    29  			{ID: "ipv6-outqueries", Name: "ipv6", Algo: module.Incremental},
    30  			{ID: "throttled-outqueries", Name: "throttled", Algo: module.Incremental},
    31  		},
    32  	},
    33  	{
    34  		ID:    "answer_time",
    35  		Title: "Queries answered within a time range",
    36  		Units: "queries/s",
    37  		Fam:   "performance",
    38  		Ctx:   "powerdns_recursor.answer_time",
    39  		Dims: module.Dims{
    40  			{ID: "answers0-1", Name: "0-1ms", Algo: module.Incremental},
    41  			{ID: "answers1-10", Name: "1-10ms", Algo: module.Incremental},
    42  			{ID: "answers10-100", Name: "10-100ms", Algo: module.Incremental},
    43  			{ID: "answers100-1000", Name: "100-1000ms", Algo: module.Incremental},
    44  			{ID: "answers-slow", Name: "slow", Algo: module.Incremental},
    45  		},
    46  	},
    47  	{
    48  		ID:    "timeouts",
    49  		Title: "Timeouts on outgoing UDP queries",
    50  		Units: "timeouts/s",
    51  		Fam:   "performance",
    52  		Ctx:   "powerdns_recursor.timeouts",
    53  		Dims: module.Dims{
    54  			{ID: "outgoing-timeouts", Name: "total", Algo: module.Incremental},
    55  			{ID: "outgoing4-timeouts", Name: "ipv4", Algo: module.Incremental},
    56  			{ID: "outgoing6-timeouts", Name: "ipv6", Algo: module.Incremental},
    57  		},
    58  	},
    59  	{
    60  		ID:    "drops",
    61  		Title: "Drops",
    62  		Units: "drops/s",
    63  		Fam:   "performance",
    64  		Ctx:   "powerdns_recursor.drops",
    65  		Dims: module.Dims{
    66  			{ID: "over-capacity-drops", Algo: module.Incremental},
    67  			{ID: "query-pipe-full-drops", Algo: module.Incremental},
    68  			{ID: "too-old-drops", Algo: module.Incremental},
    69  			{ID: "truncated-drops", Algo: module.Incremental},
    70  			{ID: "empty-queries", Algo: module.Incremental},
    71  		},
    72  	},
    73  	{
    74  		ID:    "cache_usage",
    75  		Title: "Cache Usage",
    76  		Units: "events/s",
    77  		Fam:   "cache",
    78  		Ctx:   "powerdns_recursor.cache_usage",
    79  		Dims: module.Dims{
    80  			{ID: "cache-hits", Algo: module.Incremental},
    81  			{ID: "cache-misses", Algo: module.Incremental},
    82  			{ID: "packetcache-hits", Name: "packet-cache-hits", Algo: module.Incremental},
    83  			{ID: "packetcache-misses", Name: "packet-cache-misses", Algo: module.Incremental},
    84  		},
    85  	},
    86  	{
    87  		ID:    "cache_size",
    88  		Title: "Cache Size",
    89  		Units: "entries",
    90  		Fam:   "cache",
    91  		Ctx:   "powerdns_recursor.cache_size",
    92  		Dims: module.Dims{
    93  			{ID: "cache-entries", Name: "cache"},
    94  			{ID: "packetcache-entries", Name: "packet-cache"},
    95  			{ID: "negcache-entries", Name: "negative-cache"},
    96  		},
    97  	},
    98  }