{"id":16940231,"url":"https://github.com/greenpau/gobgp_exporter","last_synced_at":"2025-03-17T08:36:50.616Z","repository":{"id":42202572,"uuid":"145443932","full_name":"greenpau/gobgp_exporter","owner":"greenpau","description":"Prometheus Exporter for GoBGP","archived":false,"fork":false,"pushed_at":"2024-05-09T09:42:42.000Z","size":131,"stargazers_count":25,"open_issues_count":8,"forks_count":13,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-23T02:02:57.110Z","etag":null,"topics":["bgp","gobgp","golang","prometheus","prometheus-exporter","routing-protocols"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greenpau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-20T16:34:43.000Z","updated_at":"2024-05-28T09:53:50.418Z","dependencies_parsed_at":"2024-01-14T17:03:09.023Z","dependency_job_id":"f915f065-feb7-411e-8c13-47c09b73a2b1","html_url":"https://github.com/greenpau/gobgp_exporter","commit_stats":{"total_commits":43,"total_committers":6,"mean_commits":7.166666666666667,"dds":0.2558139534883721,"last_synced_commit":"c7f4d4f93e4454afd20768b1c1e4850345637d67"},"previous_names":["forward53/gobgp_exporter","ovnworks/gobgp_exporter"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenpau%2Fgobgp_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenpau%2Fgobgp_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenpau%2Fgobgp_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenpau%2Fgobgp_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenpau","download_url":"https://codeload.github.com/greenpau/gobgp_exporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852425,"owners_count":20358270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bgp","gobgp","golang","prometheus","prometheus-exporter","routing-protocols"],"created_at":"2024-10-13T21:06:37.721Z","updated_at":"2025-03-17T08:36:50.246Z","avatar_url":"https://github.com/greenpau.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoBGP Exporter\n\nExport GoBGP data to Prometheus.\n\n![](./assets/docs/images/gobgp_exporter.png)\n\n\nTo run it:\n\n```bash\ncd $GOPATH/src\nmkdir -p github.com/greenpau\ncd github.com/greenpau\ngit clone https://github.com/greenpau/gobgp_exporter.git\ncd gobgp_exporter\nmake\nmake qtest\n```\n\n## Exported Metrics\n\n| **Metric** | **Description** | **Labels** |\n| ------ | ------- | ------ |\n| `gobgp_router_up` | Is GoBGP up and responds to queries (1) or is it down (0). | |\n| `gobgp_router_id` | What is GoBGP router ID. | `id` |\n| `gobgp_router_asn` | What is GoBGP AS number. | |\n| `gobgp_router_failed_req_count` | The number of failed requests to GoBGP router. | |\n| `gobgp_router_next_poll` | The timestamp of the next potential scrape of the router. | |\n| `gobgp_router_scrape_time` | The amount of time it took to scrape the router. | |\n| `gobgp_route_total_destination_count` | The number of routes on per address family and route table basis | `address_family`, `route_table`, `vrf_name` |\n| `gobgp_route_total_path_count` | The number of available paths to destinations on per address family and route table basis | `address_family`, `route_table`, `vrf_name` |\n| `gobgp_route_accepted_path_count` | The number of accepted paths to destinations on per address family and route table basis | `address_family`, `route_table`, `vrf_name` |\n| `gobgp_peer_count` | The number of BGP peers | |\n| `gobgp_peer_up` | Is the peer up and in established state (1) or it is not (0). | `name` |\n| `gobgp_peer_asn` | What is the AS number of the peer | `name` |\n| `gobgp_peer_local_asn` | What is the AS number presented to the peer by this router. | `name` |\n| `gobgp_peer_admin_state` | Is the peer configured for being Up (0), Down (1), or PFX_CT (2) | `name` |\n| `gobgp_peer_session_state` | What is the state of BGP session to the peer - unknown (0), idle (1), connect (2), active (3), opensent (4), openconfirm (5), established (6) | `name` |\n| `gobgp_peer_received_message_total_count` | The total number of messages the BGP peer sent to this router (limited to IPv4). | `name` |\n| `gobgp_peer_received_notification_message_count` | How many Notification messages did the BGP peer sent to this router (limited to IPv4). | `name` |\n| `gobgp_peer_received_update_message_count` | How many Update messages did the BGP peer sent to this router (limited to IPv4). | `name` |\n| `gobgp_peer_received_open_message_count` | How many Open messages did the BGP peer sent to this router (limited to IPv4). | `name` |\n| `gobgp_peer_received_keepalive_message_count` | How many messages did the BGP peer sent to this router (limited to IPv4). | `name` |\n| `gobgp_peer_received_refresh_message_count` | How many Refresh messages did the BGP peer sent to this router (limited to IPv4). | `name` |\n| `gobgp_peer_received_withdraw_update_message_count` | How many WithdrawUpdate messages did the BGP peer sent to this router (limited to IPv4). | `name` |\n| `gobgp_peer_received_withdraw_prefix_message_count` | How many messages did the BGP peer sent to this router (limited to IPv4). | `name` |\n| `gobgp_peer_sent_message_total_count` | The total number of messages this router sent to this BGP peer (limited to IPv4). | `name` |\n| `gobgp_peer_sent_notification_message_count` | How many Notification messages did this router sent to this BGP peer (limited to IPv4). | `name` |\n| `gobgp_peer_sent_update_message_count` | How many Update messages did this router sent to this BGP peer (limited to IPv4). | `name` |\n| `gobgp_peer_sent_open_message_count` | How many Open messages did this router sent to this BGP peer (limited to IPv4). | `name` |\n| `gobgp_peer_sent_keepalive_message_count` | How many messages did this router sent to this BGP peer (limited to IPv4). | `name` |\n| `gobgp_peer_sent_refresh_message_count` | How many Refresh messages did this router sent to this BGP peer (limited to IPv4). | `name` |\n| `gobgp_peer_sent_withdraw_update_message_count` | How many WithdrawUpdate messages did this router sent to this BGP peer (limited to IPv4). | `name` |\n| `gobgp_peer_sent_withdraw_prefix_message_count` | How many messages did this router sent to this BGP peer (limited to IPv4). | `name` |\n| `gobgp_peer_out_queue_count` | PeerState.OutQ | `name` |\n| `gobgp_peer_flop_count` | PeerState.Flops | `name` |\n| `gobgp_peer_send_community` | PeerState.SendCommunity | `name` |\n| `gobgp_peer_remove_private_as` | PeerState.RemovePrivateAs | `name` |\n| `gobgp_peer_password_set` | Whether the GoBGP peer has been configured (1) for authentication or not (0) | `name` |\n| `gobgp_peer_type` | PeerState.PeerType | `name` |\n\nFor example:\n\n```\n# HELP gobgp_peer_admin_state Is the peer configured for being Up (0), Down (1), or PFX_CT (2)\n# TYPE gobgp_peer_admin_state gauge\ngobgp_peer_admin_state{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_asn What is the AS number of the peer\n# TYPE gobgp_peer_asn gauge\ngobgp_peer_asn{name=\"10.0.2.100\"} 65001\n# HELP gobgp_peer_count The number of BGP peers\n# TYPE gobgp_peer_count gauge\ngobgp_peer_count 1\n# HELP gobgp_peer_flop_count PeerState.Flops\n# TYPE gobgp_peer_flop_count gauge\ngobgp_peer_flop_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_local_asn What is the AS number presented to the peer by this router.\n# TYPE gobgp_peer_local_asn gauge\ngobgp_peer_local_asn{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_out_queue_count PeerState.OutQ\n# TYPE gobgp_peer_out_queue_count gauge\ngobgp_peer_out_queue_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_password_set Whether the GoBGP peer has been configured (1) for authentication or not (0)\n# TYPE gobgp_peer_password_set gauge\ngobgp_peer_password_set{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_received_keepalive_message_count How many messages did the BGP peer sent to this router (limited to IPv4).\n# TYPE gobgp_peer_received_keepalive_message_count gauge\ngobgp_peer_received_keepalive_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_received_message_total_count The total number of messages the BGP peer sent to this router (limited to IPv4).\n# TYPE gobgp_peer_received_message_total_count gauge\ngobgp_peer_received_message_total_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_received_notification_message_count How many Notification messages did the BGP peer sent to this router (limited to IPv4).\n# TYPE gobgp_peer_received_notification_message_count gauge\ngobgp_peer_received_notification_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_received_open_message_count How many Open messages did the BGP peer sent to this router (limited to IPv4).\n# TYPE gobgp_peer_received_open_message_count gauge\ngobgp_peer_received_open_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_received_refresh_message_count How many Refresh messages did the BGP peer sent to this router (limited to IPv4).\n# TYPE gobgp_peer_received_refresh_message_count gauge\ngobgp_peer_received_refresh_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_received_update_message_count How many Update messages did the BGP peer sent to this router (limited to IPv4).\n# TYPE gobgp_peer_received_update_message_count gauge\ngobgp_peer_received_update_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_received_withdraw_prefix_message_count How many messages did the BGP peer sent to this router (limited to IPv4).\n# TYPE gobgp_peer_received_withdraw_prefix_message_count gauge\ngobgp_peer_received_withdraw_prefix_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_received_withdraw_update_message_count How many WithdrawUpdate messages did the BGP peer sent to this router (limited to IPv4).\n# TYPE gobgp_peer_received_withdraw_update_message_count gauge\ngobgp_peer_received_withdraw_update_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_remove_private_as PeerState.RemovePrivateAs\n# TYPE gobgp_peer_remove_private_as gauge\ngobgp_peer_remove_private_as{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_send_community PeerState.SendCommunity\n# TYPE gobgp_peer_send_community gauge\ngobgp_peer_send_community{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_sent_keepalive_message_count How many messages did this router sent to this BGP peer (limited to IPv4).\n# TYPE gobgp_peer_sent_keepalive_message_count gauge\ngobgp_peer_sent_keepalive_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_sent_message_total_count The total number of messages this router sent to this BGP peer (limited to IPv4).\n# TYPE gobgp_peer_sent_message_total_count gauge\ngobgp_peer_sent_message_total_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_sent_notification_message_count How many Notification messages did this router sent to this BGP peer (limited to IPv4).\n# TYPE gobgp_peer_sent_notification_message_count gauge\ngobgp_peer_sent_notification_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_sent_open_message_count How many Open messages did this router sent to this BGP peer (limited to IPv4).\n# TYPE gobgp_peer_sent_open_message_count gauge\ngobgp_peer_sent_open_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_sent_refresh_message_count How many Refresh messages did this router sent to this BGP peer (limited to IPv4).\n# TYPE gobgp_peer_sent_refresh_message_count gauge\ngobgp_peer_sent_refresh_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_sent_update_message_count How many Update messages did this router sent to this BGP peer (limited to IPv4).\n# TYPE gobgp_peer_sent_update_message_count gauge\ngobgp_peer_sent_update_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_sent_withdraw_prefix_message_count How many messages did this router sent to this BGP peer (limited to IPv4).\n# TYPE gobgp_peer_sent_withdraw_prefix_message_count gauge\ngobgp_peer_sent_withdraw_prefix_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_sent_withdraw_update_message_count How many WithdrawUpdate messages did this router sent to this BGP peer (limited to IPv4).\n# TYPE gobgp_peer_sent_withdraw_update_message_count gauge\ngobgp_peer_sent_withdraw_update_message_count{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_session_state What is the state of BGP session to the peer - unknown (0), idle (1), connect (2), active (3), opensent (4), openconfirm (5), established (6)\n# TYPE gobgp_peer_session_state gauge\ngobgp_peer_session_state{name=\"10.0.2.100\"} 3\n# HELP gobgp_peer_type PeerState.PeerType\n# TYPE gobgp_peer_type gauge\ngobgp_peer_type{name=\"10.0.2.100\"} 0\n# HELP gobgp_peer_up Is the peer up and in established state (1) or it is not (0).\n# TYPE gobgp_peer_up gauge\ngobgp_peer_up{name=\"10.0.2.100\"} 0\n# HELP gobgp_route_accepted_path_count The number of accepted paths to destinations on per address family and route table basis\n# TYPE gobgp_route_accepted_path_count gauge\ngobgp_route_accepted_path_count{address_family=\"evpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"evpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_encap\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_encap\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_mpls\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_mpls\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_vpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_vpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv4_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_encap\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_encap\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_mpls\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_mpls\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_vpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_vpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"ipv6_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"l2_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_accepted_path_count{address_family=\"l2_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\n# HELP gobgp_route_total_destination_count The number of routes on per address family and route table basis\n# TYPE gobgp_route_total_destination_count gauge\ngobgp_route_total_destination_count{address_family=\"evpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"evpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4\",route_table=\"global\",vrf_name=\"default\"} 3\ngobgp_route_total_destination_count{address_family=\"ipv4\",route_table=\"local\",vrf_name=\"default\"} 3\ngobgp_route_total_destination_count{address_family=\"ipv4_encap\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_encap\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_mpls\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_mpls\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_vpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_vpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv4_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_encap\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_encap\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_mpls\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_mpls\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_vpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_vpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"ipv6_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"l2_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_destination_count{address_family=\"l2_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\n# HELP gobgp_route_total_path_count The number of available paths to destinations on per address family and route table basis\n# TYPE gobgp_route_total_path_count gauge\ngobgp_route_total_path_count{address_family=\"evpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"evpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4\",route_table=\"global\",vrf_name=\"default\"} 3\ngobgp_route_total_path_count{address_family=\"ipv4\",route_table=\"local\",vrf_name=\"default\"} 3\ngobgp_route_total_path_count{address_family=\"ipv4_encap\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_encap\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_mpls\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_mpls\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_vpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_vpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv4_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_encap\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_encap\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_mpls\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_mpls\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_vpn\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_vpn\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"ipv6_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"l2_vpn_flowspec\",route_table=\"global\",vrf_name=\"default\"} 0\ngobgp_route_total_path_count{address_family=\"l2_vpn_flowspec\",route_table=\"local\",vrf_name=\"default\"} 0\n# HELP gobgp_router_asn What is GoBGP AS number.\n# TYPE gobgp_router_asn gauge\ngobgp_router_asn 65001\n# HELP gobgp_router_failed_req_count The number of failed requests to GoBGP router.\n# TYPE gobgp_router_failed_req_count counter\ngobgp_router_failed_req_count 0\n# HELP gobgp_router_id What is GoBGP router ID.\n# TYPE gobgp_router_id gauge\ngobgp_router_id 1\n# HELP gobgp_router_next_poll The timestamp of the next potential scrape of the router.\n# TYPE gobgp_router_next_poll counter\ngobgp_router_next_poll 0\n# HELP gobgp_router_scrape_time The amount of time it took to scrape the router.\n# TYPE gobgp_router_scrape_time gauge\ngobgp_router_scrape_time 0.019395555\n# HELP gobgp_router_up Is GoBGP up and responds to queries (1) or is it down (0).\n# TYPE gobgp_router_up gauge\ngobgp_router_up 1\n```\n\n## Flags\n\n```bash\n$ bin/gobgp-exporter --help\n\ngobgp-exporter - Prometheus Exporter for GoBGP\n\nUsage: gobgp-exporter [arguments]\n\n  -auth.token string\n        The X-Token for accessing the exporter itself (default \"anonymous\")\n  -gobgp.address string\n        gRPC API address of GoBGP server. (default \"127.0.0.1:50051\")\n  -gobgp.poll-interval int\n        The minimum interval (in seconds) between collections from a GoBGP server. (default 15)\n  -gobgp.timeout int\n        Timeout on gRPC requests to a GoBGP server. (default 2)\n  -gobgp.tls\n        Whether to enable TLS for gRPC API access.\n  -gobgp.tls-ca string\n        Optional path to PEM file with CA certificates to be trusted for gRPC API access.\n  -gobgp.tls-client-cert string\n        Optional path to PEM file with client certificate to be used for client authentication.\n  -gobgp.tls-client-key string\n        Optional path to PEM file with client key to be used for client authentication.\n  -gobgp.tls-server-name string\n        Optional hostname to verify API server as.\n  -log.level string\n        logging severity level (default \"info\")\n  -metrics\n        Display available metrics\n  -version\n        version information\n  -web.listen-address string\n        Address to listen on for web interface and telemetry. (default \":9474\")\n  -web.telemetry-path string\n        Path under which to expose metrics. (default \"/metrics\")\n\nDocumentation: https://github.com/greenpau/gobgp_exporter/\n```\n\n* __`gobgp.address`:__ Address (host and port) of the GoBGP instance we should\n    connect to. This could be a local GoBGP server (`127.0.0.0:50051`, for\n    instance), or the address of a remote GoBGP server.\n* __`gobgp.tls`:__ Enable TLS for the GoBGP connection. (default: false)\n* __`gobgp.tls-ca`:__ Optional path to a PEM file containing certificate authorities to verify GoBGP server certificate against. If empty, the host's root CA set is used instead. (default: empty)\n* __`gobgp.tls-client-cert`:__ Optional path to a PEM file containing the client certificate to authenticate with. (default: empty)\n* __`gobgp.tls-client-key`:__ Optional path to a PEM file containing the key for theclient certificate to authenticate with. (default: empty)\n* __`gobgp.tls-server-name`:__ Optional server name to verify GoBGP server certificate against. If empty, verification will be using the hostname or IP used in `gobgp.address`. (default: empty)\n* __`gobgp.timeout`:__ Timeout on gRPC requests to GoBGP.\n* __`gobgp.poll-interval`:__ The minimum interval (in seconds) between collections from GoBGP server. (default: 15 seconds)\n* __`gobgp.peers`:__ The file containing the mapping between `router_id` and the name (e.g. `hostname`) of a remote peer.\n* __`auth.token`:__ Enable X-Token authentication for accessing the exporter itself.\n* __`version`:__ Show application version.\n* __`web.listen-address`:__ Address to listen on for web interface and telemetry.\n* __`web.telemetry-path`:__ Path under which to expose metrics.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenpau%2Fgobgp_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenpau%2Fgobgp_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenpau%2Fgobgp_exporter/lists"}