24 Commits

Author SHA1 Message Date
kralewitz
356c13e20e
Add metric representing bird socket query result (#82)
A new gauge metric named `bird_socket_query_success` holds the result of
querying the bird socket for protocol status. If set to 1, the socket
was queried successfully. If the query fails for any of the configured
sockets (IPv4 / IPv6), the value of this metric will be 0.

Co-authored-by: Jan Kral <jan.kral@4net.tv>
2023-05-09 14:33:19 +02:00
sgrade
ab8d64bd15
Allow regex to extract labels from protocol description (#61)
Co-authored-by: Roman Klyuev <rklyuev@subspace.com>
2022-02-11 07:01:04 +01:00
Daniel Czerwonk
f13ef4bd7e
Add support for BFD protocol (#58) 2022-01-27 12:20:22 +01:00
Daniel Czerwonk
c99e498508 remove bgp states introduced in by #46 since the information can now be extracted by using the up metric with better performance 2022-01-14 11:33:50 +01:00
Daniel Czerwonk
cde3432490 set new metric format as default, add RPKI protocol 2022-01-14 11:27:11 +01:00
Daniel Czerwonk
f0f068ca4c
Merge pull request #46 from ctripcloud/add-bgp-state-metrics
Add bgp state metrics
2022-01-13 09:33:48 +01:00
Tim Small
d494720cc3 Add basic support for the Babel protocol.
This doesn't add a protocol specific parser, but does allow basic
information about babel imported and exported routes etc. to be exposed.
2021-09-23 13:20:19 +01:00
Daniel Czerwonk
c9985a3895 migrated log from deprecated prom package to logrus 2021-07-02 11:44:13 +02:00
zhanghao
b09cde3210 Add bgp state metrics
This patch adds bgp state metrics as follows:
http://XXX:9324/metrics

bird_bgp_state{name="uplink0",proto="BGP",state="Active"} 1
bird_bgp_state{name="uplink1",proto="BGP",state="Idle"} 1
2021-07-02 05:14:30 -04:00
Oliver Herms
3655df1d23 Add labels from protocol descriptions. 2020-02-18 19:55:16 +01:00
Daniel Czerwonk
25ef739b20 add filter names as label 2019-11-01 13:18:42 +01:00
Daniel Czerwonk
2b5e1f0fa5 goimports 2018-01-03 12:07:34 +01:00
Daniel Czerwonk
d5d929ed96 added new ospf specific metrics 2018-01-01 12:55:25 +01:00
Daniel Czerwonk
176ec6f113 bird client refactoring to support protocol specific ad hoc requests 2017-12-31 17:12:43 +01:00
Daniel Czerwonk
d46dc7e1ce removed device protocol since it does not generate routes 2017-12-12 16:00:28 +01:00
Daniel Czerwonk
b9045077ae renamed legacy exporter 2017-12-01 14:33:22 +01:00
Daniel Czerwonk
b9e7bbd5fe fixed naming inconsistency 2017-12-01 08:34:57 +01:00
Daniel Czerwonk
bd27c80b5d added flags to disable protocols 2017-12-01 07:42:29 +01:00
Daniel Czerwonk
5c10493514 generic protocol export (new format) 2017-12-01 00:37:12 +01:00
Daniel Czerwonk
c8354f281e new encapsulation with label strategies 2017-11-30 23:35:31 +01:00
Daniel Czerwonk
baeb9c804e refactoring 2017-11-30 22:35:14 +01:00
Daniel Czerwonk
df402c4387 resolves #11 2017-11-29 21:03:39 +01:00
Daniel Czerwonk
3b3e9431a7 refactoring (resolves #9) 2017-09-22 10:04:45 +02:00
Daniel Czerwonk
284175e5bb prometheus_client library 2017-05-26 18:42:26 +02:00