Skip to content

Commit 3790709

Browse files
committed
T6949: Adds blackbox exporter config example
1 parent 7c1e53f commit 3790709

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

docs/configuration/service/monitoring.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,24 @@ HTTP, HTTPS, DNS, TCP, ICMP and gRPC .
259259

260260
Configure name of the :abbr:`VRF (Virtual Routing and Forwarding)` instance.
261261

262-
.. cfgcmd:: set service monitoring prometheus blackbox-exporter config-file <path>
262+
Configuring modules
263+
-------------------
264+
Blackbox exporter can be configured with different modules for probing DNS or ICMP.
263265

264-
Configure a custom config file under `/config/prometheus_exporter/`
266+
DNS module example:
267+
268+
.. code-block:: none
269+
270+
set service monitoring prometheus blackbox-exporter modules dns name dns4 preferred-ip-protocol ip4
271+
set service monitoring prometheus blackbox-exporter modules dns name dns4 query-type A
272+
273+
ICMP module example:
274+
275+
.. code-block:: none
276+
277+
set service monitoring prometheus blackbox-exporter modules icmp name ping6 preferred-ip-protocol ip6
278+
set service monitoring prometheus blackbox-exporter modules icmp name ping6 ip-protocol-fallback
279+
set service monitoring prometheus blackbox-exporter modules icmp name ping6 timeout 3
265280
266281
.. _node_exporter: https://github.com/prometheus/node_exporter
267282
.. _frr_exporter: https://github.com/tynany/frr_exporter

0 commit comments

Comments
 (0)