Debian Codegraph @

bird_exporter.1.md

raw symbols SCIP
1 ---
2 date: 2018-06-20
3 footer: bird_exporter
4 header: "bird_exporter's Manual"
5 layout: page
6 license: "Licensed under the MIT license"
7 section: 1
8 title: BIRD_EXPORTER
9 ---
10
11 # NAME
12
13 bird_exporter - A protocol state exporter for the BIRD routing daemon to use
14 with Prometheus
15
16 # SYNOPSIS
17
18 **bird_exporter** [**OPTIONS**]
19
20 # DESCRIPTION
21
22 **bird_exporter** is a metric exporter for the BIRD routing daemon to use with
23 Prometheus. Since **bird_exporter** uses the BIRD Unix socket(s), BIRD needs to
24 be installed on the same machine as bird_exporter. The user executing
25 bird_exporter must have read/write permission to access the BIRD Unix sockets.
26
27 # OPTIONS
28
29 **-bird.ipv4**
30 Get protocols from bird (not compatible with **-bird.v2**)
31
32 **-bird.ipv6**
33 Get protocols from bird6 (not compatible with **-bird.v2**)
34
35 **-bird.socket** */path/to/socket*
36 Socket to communicate with bird routing daemon
37
38 **-bird.socket6** */path/to/socket*
39 Socket to communicate with bird6 routing daemon (not compatible with
40 **-bird.v2**)
41
42 **-bird.v2**
43 BIRD major version >= 2.0 (multi channel protocols)
44
45 **-format.new**
46 New metric format (more convenient / generic)
47
48 **-proto.bgp**
49 Enables metrics for protocol BGP
50
51 **-proto.direct**
52 Enables metrics for protocol Direct
53
54 **-proto.kernel**
55 Enables metrics for protocol Kernel
56
57 **-proto.ospf**
58 Enables metrics for protocol OSPF
59
60 **-proto.static**
61 Enables metrics for protocol Static
62
63 **-proto.babel**
64 Enables metrics for protocol Babel
65
66 **-version**
67 Print version information
68
69 **-web.listen-address** *[address]:port*
70 Address on which to expose metrics and web interface
71
72 **-web.telemetry-path** *path*
73 Path under which to expose metrics (default "/metrics")
74
75 Version 2.0 of BIRD supports both IPv4 and IPv6 in a single daemon. Since
76 version 1.1 of **bird_exporter**, it can be used with BIRD 2.0+ using the
77 **-bird.v2** option. When using this option, **bird_exporter** queries the same
78 socket for both IPv4 and IPv6. In this mode the IP protocol is determined by
79 the channel information, and options **-bird.ipv4**, **-bird.ipv6** and
80 **-bird.socket6** are ignored.
81
82 # BIRD CONFIGURATION
83
84 To get meaningful uptime information, BIRD needs to be configured to use
85 ISO-format timestamps:
86
87 ```
88 timeformat protocol iso long;
89 ```
90
91 # METRIC FORMATS
92
93 In version 1.0, a new metric format was introduced. To avoid backwards
94 incompatibility, the new format is optional and can be enabled by using the
95 **-format.new** option. The new format handles protocols more generically and
96 allows for a better query structure. It also adheres more to the Prometheus
97 metric naming best practices. In both formats protocol specific metrics are
98 prefixed with the protocol name (e.g. OSPF running metric).
99
100 ## OLD METRIC FORMAT EXAMPLE
101
102 ```
103 bgp4_session_prefix_count_import{name="bgp1"} 600000
104 bgp6_session_prefix_count_import{name="bgp1"} 50000
105 ospfv3_running{name="ospf1"} 1
106 ```
107
108 ## NEW METRIC FORMAT EXAMPLE
109
110 ```
111 bird_protocol_prefix_import_count{name="bgp1",proto="BGP",ip_version="4"} 600000
112 bird_protocol_prefix_import_count{name="bgp1",proto="BGP",ip_version="6"} 50000
113 bird_ospfv3_running{name="ospf1"} 1
114 ```
115
116 # AUTHOR
117
118 Daniel Czerwonk <[email protected]>