Replies: 5 comments 1 reply
-
I see this:
I don't see a corresponding tcp-queries though. And what timeframe is this? This https://docs.powerdns.com/recursor/metrics.html seems to suggest that stats are output every half hour or so based on statistics-interval which is 1800 seconds (30 minutes) We're logging to syslog though (/var/log/messages). I'm grepping that for any stats and not seeing anything: $cat /var/log/messages | grep queries |
Beta Was this translation helpful? Give feedback.
-
is your question about authoritative or recursor? |
Beta Was this translation helpful? Give feedback.
-
Sorry I should have mentioned - authoritative. |
Beta Was this translation helpful? Give feedback.
-
It helps to no confuse authoritaive server and recursor. See the general API docs at https://docs.powerdns.com/authoritative/http-api/index.html, https://docs.powerdns.com/authoritative/http-api/statistics.html can be used to query specific metrics. Many of our users use Prometheus to get metrics and compute aggregate numbers and graphs, see https://docs.powerdns.com/authoritative/http-api/index.html#metrics-endpoint |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
We're working with a vendor that needs to know our PowerDNS RPS. I can see at http://127.0.0.1:8081/api/v1/servers/localhost/statistics we can get stats for requests but I don't see a cumulative number anywhere. Is there any way to easily tally up the information. Or is there a metric I'm missing?
I've tried doing jq -r '.[] | select(.name == "queries") | .value | map(.value | tonumber) | add' but that gives me parse error: Invalid numeric literal at line 1, column 10
The output from the API endpoint returns almost 2,500 lines of output. Adding it up by hand just isn't reasonable. Everything is also broken up into multiple categories like serverfail-queries and unauth-queries. I'm looking for TOTAL queries (of any type) for a given moment.
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions