kresd + prometheus: monitor kresd
This commit is contained in:
parent
6522a6f076
commit
d455bbe00e
5 changed files with 30 additions and 1 deletions
|
@ -17,6 +17,13 @@
|
|||
- address: "::"
|
||||
port: 853
|
||||
kind: tls
|
||||
- address: 0.0.0.0
|
||||
port: 8453
|
||||
kind: webmgmt
|
||||
- address: "::"
|
||||
port: 8453
|
||||
kind: webmgmt
|
||||
tls: false
|
||||
kresd__cache_size: 512
|
||||
roles:
|
||||
- kresd
|
||||
|
|
|
@ -50,6 +50,12 @@
|
|||
- prometheus-2.monit.infra.auro.re
|
||||
address:
|
||||
port: 9090
|
||||
kresd:
|
||||
targets:
|
||||
- dns-1.int.infra.auro.re
|
||||
- dns-2.int.infra.auro.re
|
||||
address:
|
||||
port: 8453
|
||||
bird:
|
||||
targets:
|
||||
- edge-1.back.infra.auro.re
|
||||
|
|
|
@ -2,3 +2,5 @@
|
|||
kresd__listen: []
|
||||
kresd__freebind: true
|
||||
kresd__cache_size: 128
|
||||
kresd__prometheus_namespace: "kresd_"
|
||||
...
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
---
|
||||
- name: Install knot-resolver
|
||||
apt:
|
||||
name: knot-resolver
|
||||
name:
|
||||
- knot-resolver
|
||||
- knot-resolver-module-http
|
||||
|
||||
- name: Configure kresd
|
||||
template:
|
||||
|
|
|
@ -16,6 +16,18 @@ modules = {
|
|||
'hints > iterate',
|
||||
'stats',
|
||||
'predict',
|
||||
'http',
|
||||
}
|
||||
|
||||
{% set webmgmt = kresd__listen
|
||||
| selectattr("kind", "==", "webmgmt")
|
||||
| default({}) %}
|
||||
http.config({
|
||||
tls = {{ (webmgmt | first).tls
|
||||
| default(False)
|
||||
| ternary('true', 'false') }},
|
||||
}, 'webmgmt')
|
||||
|
||||
http.prometheus.namespace = '{{ kresd__prometheus_namespace }}'
|
||||
|
||||
cache.size = {{ kresd__cache_size | int }} * MB
|
||||
|
|
Loading…
Reference in a new issue