Hi,

On 2019-08-20 21:36, Gert Doering wrote:
Hi,

On Tue, Aug 20, 2019 at 02:25:41PM +0200, Daniel Salzman wrote:
I don't know knot_exporter, but I guess you have to configure the module per zone:

 template:
   - id: default
     module: mod-stats

However, such a setup consumes more memory in the case of many zones.

I do have

> template:
>   - id: default
>     storage: /usr/local/etc/dnsmgmt/data/CA/knot
>     disable-any: true
>     acl: [ acl_transfer, acl_notify ]
>     global-module: mod-stats

so what's the difference between "global-module" and "module" here?

(The examples for the stats module show "global-modul", which is why
I have it)

But it does the trick!  Now the exporter is willing to start, and give
me data :-)

Alas, it's a bit on the heavy side, with 7 metrics for ~9600 zone - and
no global metrics "for the whole server".  Mmmh.  Does knot have these
stats, and the exporter just doesn't grab them yet?  Or does knot truly
only do stats on a per-zone level?

A global module applies to all zones. It's exactly what you are looking for. But it seems knot_exporter expects per zone statistics only. It should be
easy to extend the exporter. Maybe tomorrow ;-)

Daniel


Gert Doering
        -- NetMaster
--
https://lists.nic.cz/mailman/listinfo/knot-dns-users

Reply via email to