- Code Refactoring
- New metric format
To prevent a breaking change the new metric format is optional and can be enabled by using the -format.new
flag. The new format handles protocols more generic and allows a better query structure. Also it adheres more to the naming best practices. In both formats protocol specific metrics are prefixed with the protocol name (e.g. OSPF running metric).
The new format is slightly different from the old one as shown in the following example:
old format
bgp4_session_prefix_count_import{name="bgp1"} 600000
bgp6_session_prefix_count_import{name="bgp1"} 50000
ospfv3_running{name="ospf1"} 1
new format
bird_protocol_prefix_import_count{name="bgp1",proto="BGP",ip_version="4"} 600000
bird_protocol_prefix_import_count{name="bgp1",proto="BGP",ip_version="6"} 50000
bird_ospfv3_running{name="ospf1"} 1