27 Commits

Author SHA1 Message Date
Daniel Czerwonk
1a8e03f272 add test for default_label_strategy.go 2022-02-11 07:59:43 +01:00
Daniel Czerwonk
f7bc5148a4 reuse regex, ensure custom label names are trimmed 2022-02-11 07:19:04 +01: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
564a7b5b72 trim strings extracted from descriptions (fixes #51) 2022-01-14 11:49:52 +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
4b8417493d BGP state exporter used deprecated log package 2022-01-14 09:29:53 +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
42bfdbb0fc
Update label_strategy.go 2018-08-09 11:34:24 +02:00
Arthur Gautier
e570048463 metrics: allow label_strategy to be implemented as api
I use this exporter as an api, and I need to implement another
custom label strategy. Purpose being to habe business logic in
those labels (datacenter, ...).

Because the interface is private, this can not be implemented
elsewhere. This commit makes it public.

Signed-off-by: Arthur Gautier <baloo@gandi.net>
2018-08-09 06:43:29 +00:00
Daniel Czerwonk
3efb6e6b35
Update default_label_strategy.go 2018-03-31 13:03:31 +02:00
Daniel Czerwonk
d909f5fdb8
lint 2018-01-02 17:18:34 +01:00
Daniel Czerwonk
de14689c40
Fixed typo 2018-01-02 17:17:00 +01:00
Daniel Czerwonk
d5d929ed96 added new ospf specific metrics 2018-01-01 12:55:25 +01:00
Daniel Czerwonk
d46dc7e1ce removed device protocol since it does not generate routes 2017-12-12 16:00:28 +01:00
Daniel Czerwonk
5aa2e04ce7 parsing for channels 2017-12-12 13:38:05 +01:00
Daniel Czerwonk
05e7f48787 renamed legacy exporter (file) 2017-12-01 14:35:25 +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
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