bind_exporter nsstat

17 views
Skip to first unread message

terrible person

unread,
Sep 9, 2022, 11:52:22 PM9/9/22
to Prometheus Users
Hi. Started to use bind_exporter in my environment, and I see it is lacking some metrics, that should be availiable (judging on source code). I'm taking about xml/v3/server endpoint and nsstat counters.
2022-09-10_13-44-02.png
thou I can't see them in exporter output. Am I missing out on something? I'm not a Go expert and it's hard for me to analyze source code, but I see some indications that they must be there  

for _, s := range c.stats.Server.NameServerStats {
        if desc, ok := serverLabelStats[s.Name]; ok {
            r := strings.TrimPrefix(s.Name, "Qry")
            ch <- prometheus.MustNewConstMetric(
                desc, prometheus.CounterValue, float64(s.Counter), r,
            )
        }

Personally, I need QryUDP, QryTCP and ReqTCP metrics. I guess there is trimming of "Qry" and I can see Recursion and Dropped metrics, but where are the others?

terrible person

unread,
Sep 10, 2022, 3:04:39 AM9/10/22
to Prometheus Users
ok nvm, I figured it out
Reply all
Reply to author
Forward
0 new messages