Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

テレメトリ機能

このトピックでは、Juniper Cloud-Native Routerから利用できるテレメトリデータについて説明します。

Cloud-Native Routerテレメトリ

Juniper Cloud-Native Routerにはテレメトリ機能が搭載されており、パフォーマンスメトリクスやテレメトリデータを確認できます。テレメトリデータは、vRouterおよびcRPDから別々に取得されます。コンテナ contrail-vrouter-telemetry-exporter は、Prometheus ベースの API または gRPC ネットワーク管理インターフェイス(gNMI)を介して、この可視性を提供します。このコンテナは、 contrail-vrouter-masters ポッド内の他の vRouter コンテナと一緒に実行されます。テレメトリエクスポーターは、デフォルトでvRouterとcRPDの両方で有効になっています。values.yaml で次のスニペットを使用して、テレメトリを構成できます。

PrometheusベースのAPI経由のテレメトリ

Prometheusは、オープンソースのシステム監視およびアラートツールキットです。Prometheusを使用して、Cloud-Native Routerのホストサーバーからテレメトリデータを取得し、そのデータをHTTP形式で表示することができます。Prometheus の構成例は、次のようになります。

vRouterの場合、テレメトリエクスポーターは、vRouter-agentのIntrospectに統計情報を定期的に照会し、Prometheusスクレイピングリクエストに応答してメトリック情報を報告します。テレメトリ データは、 URL http://host server IP address:8070 を使用して直接表示できます。

cRPDテレメトリエクスポーターは、定期的にcRPDのNETCONFに統計情報を照会し、Prometheusスクレイピング要求に応答してメトリック情報を報告します。テレメトリ データは、 URL http://host server IP address:8072 を使用して直接表示できます。

手記:

8072 ポートが使用できない場合は、values.yaml でテレメトリ データを収集する代替ポートを選択できます。

以下の表は、Prometheus ベースの API を使用する場合の vRouter と cRPD のテレメトリ出力の例を示しています。

手記:

次の表に示す出力をグループ化しました。Cloud-Native Routerは、ライブシステム上の出力をグループ化またはソートしません。

表 1: vRouter テレメトリ出力の例(Prometheus ベースの API)
サンプル出力 のグループ
vRouterあたりのメモリ使用量
# TYPE virtual_router_system_memory_cached_bytes gauge
# HELP virtual_router_system_memory_cached_bytes Virtual router system memory cached 
virtual_router_system_memory_cached_bytes{vrouter_name="jcnr.example.com"} 2635970448
# TYPE virtual_router_system_memory_buffers gauge
# HELP virtual_router_system_memory_buffers Virtual router system memory buffer 
virtual_router_system_memory_buffers{vrouter_name="jcnr.example.com"} 32689
# TYPE virtual_router_system_memory_bytes gauge
# HELP virtual_router_system_memory_bytes Virtual router total system memory 
virtual_router_system_memory_bytes{vrouter_name="jcnr.example.com"} 2635970448
# TYPE virtual_router_system_memory_free_bytes gauge
# HELP virtual_router_system_memory_free_bytes Virtual router system memory free 
virtual_router_system_memory_free_bytes{vrouter_name="jcnr.example.com"} 2635969296
# TYPE virtual_router_system_memory_used_bytes gauge
# HELP virtual_router_system_memory_used_bytes Virtual router system memory used 
virtual_router_system_memory_used_bytes{vrouter_name="jcnr.example.com"} 32689
# TYPE virtual_router_virtual_memory_kilobytes gauge
# HELP virtual_router_virtual_memory_kilobytes Virtual router virtual memory 
virtual_router_virtual_memory_kilobytes{vrouter_name="jcnr.example.com"} 0
# TYPE virtual_router_resident_memory_kilobytes gauge
# HELP virtual_router_resident_memory_kilobytes Virtual router resident memory 
virtual_router_resident_memory_kilobytes{vrouter_name="jcnr.example.com"} 32689
# TYPE virtual_router_peak_virtual_memory_bytes gauge
# HELP virtual_router_peak_virtual_memory_bytes Virtual router peak virtual memory 
virtual_router_peak_virtual_memory_bytes{vrouter_name="jcnr.example.com"} 2894328001
インターフェイスごとのパケット数
# TYPE virtual_router_phys_if_input_packets_total counter
# HELP virtual_router_phys_if_input_packets_total Total packets received by physical interface
virtual_router_phys_if_input_packets_total{vrouter_name="jcnr.example.com",interface_name="bond0"} 1483
# TYPE virtual_router_phys_if_output_packets_total counter
# HELP virtual_router_phys_if_output_packets_total Total packets sent by physical interface
virtual_router_phys_if_output_packets_total{vrouter_name="jcnr.example.com",interface_name="bond0"} 32969
# TYPE virtual_router_phys_if_input_bytes_total counter
# HELP virtual_router_phys_if_input_bytes_total Total bytes received by physical interface
virtual_router_phys_if_input_bytes_total{interface_name="bond0",vrouter_name="jcnr.example.com"} 125558
# TYPE virtual_router_phys_if_output_bytes_total counter
# HELP virtual_router_phys_if_output_bytes_total Total bytes sent by physical interface
virtual_router_phys_if_output_bytes_total{vrouter_name="jcnr.example.com",interface_name="bond0"} 4597076
virtual_router_phys_if_input_bytes_total{vrouter_name="jcnr.example.com",interface_name="bond0"} 228300499320
virtual_router_phys_if_output_bytes_total{interface_name="bond0",vrouter_name="jcnr.example.com"} 228297889634
virtual_router_phys_if_input_packets_total{interface_name="bond0",vrouter_name="jcnr.example.com"} 1585421179
virtual_router_phys_if_output_packets_total{vrouter_name="jcnr.example.com",interface_name="bond0"} 1585402623
virtual_router_phys_if_output_packets_total{interface_name="bond0",vrouter_name="jcnr.example.com"} 1585403344
vRouterあたりのCPU使用率
# TYPE virtual_router_cpu_1min_load_avg gauge
# HELP virtual_router_cpu_1min_load_avg Virtual router CPU 1 minute load average
virtual_router_cpu_1min_load_avg{vrouter_name="jcnr.example.com"} 0.11625
# TYPE virtual_router_cpu_5min_load_avg gauge
# HELP virtual_router_cpu_5min_load_avg Virtual router CPU 5 minute load average
virtual_router_cpu_5min_load_avg{vrouter_name="jcnr.example.com"} 0.109687
# TYPE virtual_router_cpu_15min_load_avg gauge
# HELP virtual_router_cpu_15min_load_avg Virtual router CPU 15 minute load average
virtual_router_cpu_15min_load_avg{vrouter_name="jcnr.example.com"} 0.110156
vRouter 当たりのパケットのドロップ数
# TYPE virtual_router_dropped_packets_total counter
# HELP virtual_router_dropped_packets_total Total packets dropped
virtual_router_dropped_packets_total{vrouter_name="jcnr.example.com"} 35850
インターフェイスごとのパケット数、VLANごとのパケット数
# TYPE virtual_router_interface_vlan_multicast_input_packets_total counter
# HELP virtual_router_interface_vlan_multicast_input_packets_total Total number of multicast packets received on interface VLAN
virtual_router_interface_vlan_multicast_input_packets_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_broadcast_output_packets_total counter
# HELP virtual_router_interface_vlan_broadcast_output_packets_total Total number of broadcast packets sent on interface VLAN
virtual_router_interface_vlan_broadcast_output_packets_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_broadcast_input_packets_total counter
# HELP virtual_router_interface_vlan_broadcast_input_packets_total Total number of broadcast packets received on interface VLAN
virtual_router_interface_vlan_broadcast_input_packets_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_multicast_output_packets_total counter
# HELP virtual_router_interface_vlan_multicast_output_packets_total Total number of multicast packets sent on interface VLAN
virtual_router_interface_vlan_multicast_output_packets_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_unicast_input_packets_total counter
# HELP virtual_router_interface_vlan_unicast_input_packets_total Total number of unicast packets received on interface VLAN
virtual_router_interface_vlan_unicast_input_packets_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_flooded_output_bytes_total counter
# HELP virtual_router_interface_vlan_flooded_output_bytes_total Total number of output bytes flooded to interface VLAN
virtual_router_interface_vlan_flooded_output_bytes_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_multicast_output_bytes_total counter
# HELP virtual_router_interface_vlan_multicast_output_bytes_total Total number of multicast bytes sent on interface VLAN
virtual_router_interface_vlan_multicast_output_bytes_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_unicast_output_packets_total counter
# HELP virtual_router_interface_vlan_unicast_output_packets_total Total number of unicast packets sent on interface VLAN
virtual_router_interface_vlan_unicast_output_packets_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_broadcast_input_bytes_total counter
# HELP virtual_router_interface_vlan_broadcast_input_bytes_total Total number of broadcast bytes received on interface VLAN
virtual_router_interface_vlan_broadcast_input_bytes_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_multicast_input_bytes_total counter
# HELP virtual_router_interface_vlan_multicast_input_bytes_total Total number of multicast bytes received on interface VLAN
virtual_router_interface_vlan_multicast_input_bytes_total{vlan_id="100",interface_id="1"} 0
# TYPE virtual_router_interface_vlan_unicast_input_bytes_total counter
# HELP virtual_router_interface_vlan_unicast_input_bytes_total Total number of unicast bytes received on interface VLAN
virtual_router_interface_vlan_unicast_input_bytes_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_flooded_output_packets_total counter
# HELP virtual_router_interface_vlan_flooded_output_packets_total Total number of output packets flooded to interface VLAN
virtual_router_interface_vlan_flooded_output_packets_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_broadcast_output_bytes_total counter
# HELP virtual_router_interface_vlan_broadcast_output_bytes_total Total number of broadcast bytes sent on interface VLAN
virtual_router_interface_vlan_broadcast_output_bytes_total{interface_id="1",vlan_id="100"} 0
# TYPE virtual_router_interface_vlan_unicast_output_bytes_total counter
# HELP virtual_router_interface_vlan_unicast_output_bytes_total Total number of unicast bytes sent on interface VLAN
virtual_router_interface_vlan_unicast_output_bytes_total{interface_id="1",vlan_id="100"} 0
...
表 2:cRPD テレメトリ出力の例(Prometheus ベースの API)
サンプル出力 のグループ

BGP の概要

# TYPE crpd_bgp_rib_table_received_prefixes_total counter
# HELP crpd_bgp_rib_table_received_prefixes_total Total number of BGP RIB table prefixes received
crpd_bgp_rib_table_received_prefixes_total{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_external_prefixes gauge
# HELP crpd_bgp_rib_table_external_prefixes Number of BGP RIB table external prefixes
crpd_bgp_rib_table_external_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_active_external_prefixes gauge
# HELP crpd_bgp_rib_table_active_external_prefixes Number of BGP RIB table active external prefixes
crpd_bgp_rib_table_active_external_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_suppressed_internal_prefixes gauge
# HELP crpd_bgp_rib_table_suppressed_internal_prefixes Number of BGP RIB table internal prefixes currently inactive, because of damping or other reasons
crpd_bgp_rib_table_suppressed_internal_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_prefixes gauge
# HELP crpd_bgp_rib_table_prefixes Number of BGP RIB table prefixes
crpd_bgp_rib_table_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_active_prefixes gauge
# HELP crpd_bgp_rib_table_active_prefixes Number of BGP RIB table active prefixes
crpd_bgp_rib_table_active_prefixes{table="bgp.l3vpn.0",node="example.juniper.net"} 0
# TYPE crpd_bgp_rib_table_history_prefixes gauge
# HELP crpd_bgp_rib_table_history_prefixes Number of BGP RIB table withdrawn prefixes stored locally to keep track of damping history
crpd_bgp_rib_table_history_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_suppressed_external_prefixes gauge
# HELP crpd_bgp_rib_table_suppressed_external_prefixes Number of BGP RIB table external prefixes currently inactive, because of damping or other reasons
crpd_bgp_rib_table_suppressed_external_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_active_internal_prefixes gauge
# HELP crpd_bgp_rib_table_active_internal_prefixes Number of BGP RIB table active internal prefixes
crpd_bgp_rib_table_active_internal_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_pending_prefixes gauge
# HELP crpd_bgp_rib_table_pending_prefixes Number of BGP RIB table prefixes in process by BGP import policy
crpd_bgp_rib_table_pending_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_accepted_prefixes_total counter
# HELP crpd_bgp_rib_table_accepted_prefixes_total Total number of BGP RIB table prefixes accepted
crpd_bgp_rib_table_accepted_prefixes_total{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_damped_prefixes gauge
# HELP crpd_bgp_rib_table_damped_prefixes Number of BGP RIB table prefixes with a figure of merit greater than zero, but still active because the value has not reached the threshold at which suppression occurs
crpd_bgp_rib_table_damped_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_accepted_external_prefixes_total counter
# HELP crpd_bgp_rib_table_accepted_external_prefixes_total Total number of BGP RIB table external prefixes accepted
crpd_bgp_rib_table_accepted_external_prefixes_total{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_internal_prefixes gauge
# HELP crpd_bgp_rib_table_internal_prefixes Number of BGP RIB table internal prefixes
crpd_bgp_rib_table_internal_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_suppressed_prefixes gauge
# HELP crpd_bgp_rib_table_suppressed_prefixes Number of BGP RIB table prefixes currently inactive, because of damping or other reasons
crpd_bgp_rib_table_suppressed_prefixes{node="example.juniper.net",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_rib_table_accepted_internal_prefixes_total counter
# HELP crpd_bgp_rib_table_accepted_internal_prefixes_total Total number of BGP RIB table internal prefixes accepted
crpd_bgp_rib_table_accepted_internal_prefixes_total{node="example.juniper.net",table="bgp.l3vpn.0"} 0
crpd_bgp_rib_table_external_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_active_external_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_suppressed_internal_prefixes{table="bgp.l3vpn-inet6.0",node="example.juniper.net"} 0
crpd_bgp_rib_table_received_prefixes_total{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_active_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_history_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_suppressed_external_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_active_internal_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_pending_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_damped_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_accepted_external_prefixes_total{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_internal_prefixes{table="bgp.l3vpn-inet6.0",node="example.juniper.net"} 0
crpd_bgp_rib_table_accepted_prefixes_total{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_accepted_internal_prefixes_total{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_suppressed_prefixes{node="example.juniper.net",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_rib_table_received_prefixes_total{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_external_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_active_external_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_suppressed_internal_prefixes{table="bgp.evpn.0",node="example.juniper.net"} 0
crpd_bgp_rib_table_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_active_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_history_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_suppressed_external_prefixes{table="bgp.evpn.0",node="example.juniper.net"} 0
crpd_bgp_rib_table_active_internal_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_pending_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_accepted_prefixes_total{table="bgp.evpn.0",node="example.juniper.net"} 0
crpd_bgp_rib_table_damped_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_accepted_external_prefixes_total{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_internal_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_suppressed_prefixes{node="example.juniper.net",table="bgp.evpn.0"} 0
crpd_bgp_rib_table_accepted_internal_prefixes_total{node="example.juniper.net",table="bgp.evpn.0"} 0
# TYPE crpd_bgp_peer_input_messages_total counter
# HELP crpd_bgp_peer_input_messages_total Total number of messages received from BGP peer
crpd_bgp_peer_input_messages_total{peer_address="11.11.11.11",peer_as="64512",node="example.juniper.net"} 5
# TYPE crpd_bgp_peer_output_messages_total counter
# HELP crpd_bgp_peer_output_messages_total Total number of messages sent to BGP peer
crpd_bgp_peer_output_messages_total{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512"} 4
# TYPE crpd_bgp_peer_route_queue_count gauge
# HELP crpd_bgp_peer_route_queue_count Current number of messages that are queued to be sent to BGP peer
crpd_bgp_peer_route_queue_count{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512"} 0
# TYPE crpd_bgp_peer_state gauge
# HELP crpd_bgp_peer_state BGP peer state (1=Established, 2=Idle, 3=Connect, 4=Active, 5=OpenSent, 6=OpenConfirm)
crpd_bgp_peer_state{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512"} 1
# TYPE crpd_bgp_peer_flaps_total counter
# HELP crpd_bgp_peer_flaps_total Total number of times the BGP peer session has gone down and then come back up
crpd_bgp_peer_flaps_total{peer_address="11.11.11.11",peer_as="64512",node="example.juniper.net"} 1
# TYPE crpd_bgp_peer_rib_table_accepted_prefixes_total counter
# HELP crpd_bgp_peer_rib_table_accepted_prefixes_total Total number of BGP RIB table active prefixes accepted from BGP peer
crpd_bgp_peer_rib_table_accepted_prefixes_total{peer_as="64512",table="bgp.l3vpn.0",node="example.juniper.net",peer_address="11.11.11.11"} 0
# TYPE crpd_bgp_peer_rib_table_suppressed_prefixes gauge
# HELP crpd_bgp_peer_rib_table_suppressed_prefixes Number of BGP RIB table prefixes received from BGP peer currently inactive, because of damping or other reasons
crpd_bgp_peer_rib_table_suppressed_prefixes{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512",table="bgp.l3vpn.0"} 0
# TYPE crpd_bgp_peer_rib_table_active_prefixes gauge
# HELP crpd_bgp_peer_rib_table_active_prefixes Number of BGP RIB table active prefixes received from BGP peer
crpd_bgp_peer_rib_table_active_prefixes{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512",table="bgp.l3vpn.0"} 0
crpd_bgp_peer_rib_table_active_prefixes{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_peer_rib_table_accepted_prefixes_total{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_peer_rib_table_suppressed_prefixes{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512",table="bgp.l3vpn-inet6.0"} 0
crpd_bgp_peer_rib_table_active_prefixes{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512",table="bgp.evpn.0"} 0
crpd_bgp_peer_rib_table_accepted_prefixes_total{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512",table="bgp.evpn.0"} 0
crpd_bgp_peer_rib_table_suppressed_prefixes{node="example.juniper.net",peer_address="11.11.11.11",peer_as="64512",table="bgp.evpn.0"} 0

ルートテーブルの概要

# TYPE crpd_route_table_destinations gauge
# HELP crpd_route_table_destinations Number of destinations for which there are routes in the routing table
crpd_route_table_destinations{node="example.juniper.net",table="inet.0"} 13
# TYPE crpd_route_table_routes gauge
# HELP crpd_route_table_routes Number of routes in the routing table
crpd_route_table_routes{node="example.juniper.net",table="inet.0"} 15
# TYPE crpd_route_table_active_routes gauge
# HELP crpd_route_table_active_routes Number of active routes in the routing table
crpd_route_table_active_routes{node="example.juniper.net",table="inet.0"} 13
# TYPE crpd_route_table_holddown_routes gauge
# HELP crpd_route_table_holddown_routes Number of routes in the routing table that are in the hold-down state before being declared inactive
crpd_route_table_holddown_routes{node="example.juniper.net",table="inet.0"} 0
# TYPE crpd_route_table_hidden_routes gauge
# HELP crpd_route_table_hidden_routes Number of routes in the routing table that are not used, because of routing policy
crpd_route_table_hidden_routes{node="example.juniper.net",table="inet.0"} 0
crpd_route_table_routes{node="example.juniper.net",table="inet.3"} 1
crpd_route_table_active_routes{node="example.juniper.net",table="inet.3"} 1
crpd_route_table_holddown_routes{node="example.juniper.net",table="inet.3"} 0
crpd_route_table_hidden_routes{node="example.juniper.net",table="inet.3"} 0
crpd_route_table_destinations{node="example.juniper.net",table="inet.3"} 1
crpd_route_table_holddown_routes{node="example.juniper.net",table="mpls.0"} 0
crpd_route_table_hidden_routes{node="example.juniper.net",table="mpls.0"} 0
crpd_route_table_destinations{node="example.juniper.net",table="mpls.0"} 4
crpd_route_table_routes{node="example.juniper.net",table="mpls.0"} 4
crpd_route_table_active_routes{node="example.juniper.net",table="mpls.0"} 4
crpd_route_table_active_routes{node="example.juniper.net",table="inet6.0"} 34
crpd_route_table_holddown_routes{node="example.juniper.net",table="inet6.0"} 0
crpd_route_table_hidden_routes{node="example.juniper.net",table="inet6.0"} 0
crpd_route_table_destinations{node="example.juniper.net",table="inet6.0"} 34
crpd_route_table_routes{table="inet6.0",node="example.juniper.net"} 38
crpd_route_table_destinations{node="example.juniper.net",table="inet6.3"} 1
crpd_route_table_routes{node="example.juniper.net",table="inet6.3"} 1
crpd_route_table_active_routes{node="example.juniper.net",table="inet6.3"} 1
crpd_route_table_holddown_routes{node="example.juniper.net",table="inet6.3"} 0
crpd_route_table_hidden_routes{node="example.juniper.net",table="inet6.3"} 0
# TYPE crpd_route_table_protocol_routes gauge
# HELP crpd_route_table_protocol_routes Number of routes in the routing table learned from the protocol
crpd_route_table_protocol_routes{protocol="Direct",node="example.juniper.net",table="inet.0"} 6
# TYPE crpd_route_table_protocol_active_routes gauge
# HELP crpd_route_table_protocol_active_routes Number of active routes in the routing table learned from the protocol
crpd_route_table_protocol_active_routes{protocol="Direct",node="example.juniper.net",table="inet.0"} 6
crpd_route_table_protocol_active_routes{node="example.juniper.net",table="inet.0",protocol="Local"} 3
crpd_route_table_protocol_routes{node="example.juniper.net",table="inet.0",protocol="Local"} 5
crpd_route_table_protocol_routes{node="example.juniper.net",table="inet.0",protocol="OSPF"} 4
crpd_route_table_protocol_active_routes{node="example.juniper.net",table="inet.0",protocol="OSPF"} 4
crpd_route_table_protocol_routes{node="example.juniper.net",table="inet.3",protocol="Tunnel"} 1
crpd_route_table_protocol_active_routes{node="example.juniper.net",table="inet.3",protocol="Tunnel"} 1
crpd_route_table_protocol_routes{node="example.juniper.net",table="mpls.0",protocol="MPLS"} 4
crpd_route_table_protocol_active_routes{node="example.juniper.net",table="mpls.0",protocol="MPLS"} 4
crpd_route_table_protocol_routes{node="example.juniper.net",table="inet6.0",protocol="Direct"} 8
crpd_route_table_protocol_active_routes{node="example.juniper.net",table="inet6.0",protocol="Direct"} 4
crpd_route_table_protocol_routes{table="inet6.0",protocol="Local",node="example.juniper.net"} 29
crpd_route_table_protocol_active_routes{node="example.juniper.net",table="inet6.0",protocol="Local"} 29
crpd_route_table_protocol_routes{node="example.juniper.net",table="inet6.0",protocol="INET6"} 1
crpd_route_table_protocol_active_routes{node="example.juniper.net",table="inet6.0",protocol="INET6"} 1
crpd_route_table_protocol_routes{node="example.juniper.net",table="inet6.3",protocol="Tunnel"} 1
crpd_route_table_protocol_active_routes{node="example.juniper.net",table="inet6.3",protocol="Tunnel"} 1

OSPF の概要

# TYPE crpd_ospf_packets_sent_total counter
# HELP crpd_ospf_packets_sent_total Total number of OSPF packets sent
crpd_ospf_packets_sent_total{node="example.juniper.net",packet_type="Hello"} 26
# TYPE crpd_ospf_packets_received_total counter
# HELP crpd_ospf_packets_received_total Total number of OSPF packets received
crpd_ospf_packets_received_total{node="example.juniper.net",packet_type="Hello"} 4
crpd_ospf_packets_sent_total{node="example.juniper.net",packet_type="DbD"} 3
crpd_ospf_packets_received_total{node="example.juniper.net",packet_type="DbD"} 4
crpd_ospf_packets_sent_total{node="example.juniper.net",packet_type="LSReq"} 1
crpd_ospf_packets_received_total{node="example.juniper.net",packet_type="LSReq"} 1
crpd_ospf_packets_sent_total{node="example.juniper.net",packet_type="LSUpdate"} 2
crpd_ospf_packets_received_total{node="example.juniper.net",packet_type="LSUpdate"} 3
crpd_ospf_packets_sent_total{node="example.juniper.net",packet_type="LSAck"} 3
crpd_ospf_packets_received_total{node="example.juniper.net",packet_type="LSAck"} 2
# TYPE crpd_ospf_dbd_packets_retransmitted_total counter
# HELP crpd_ospf_dbd_packets_retransmitted_total Total number of OSPF database descriptor packets retransmitted
crpd_ospf_dbd_packets_retransmitted_total{node="example.juniper.net"} 1
# TYPE crpd_ospf_lsa_packets_retransmitted_total counter
# HELP crpd_ospf_lsa_packets_retransmitted_total Total number of OSPF link-state advertisement packets retransmitted
crpd_ospf_lsa_packets_retransmitted_total{node="example.juniper.net"} 0
# TYPE crpd_ospf_lsa_packets_flooded_total counter
# HELP crpd_ospf_lsa_packets_flooded_total Total number of OSPF link-state advertisement packets flooded
crpd_ospf_lsa_packets_flooded_total{node="example.juniper.net"} 1
# TYPE crpd_ospf_flood_queue_depth gauge
# HELP crpd_ospf_flood_queue_depth Number of entries in the extended queue
crpd_ospf_flood_queue_depth{node="example.juniper.net"} 0
# TYPE crpd_ospf_error_total counter
# HELP crpd_ospf_error_total Total number of OSPF receive errors
crpd_ospf_error_total{error_type="no-error",node="example.juniper.net"} 0
# TYPE crpd_ospf_neighbor_state gauge
# HELP crpd_ospf_neighbor_state OSPF neighbor state (0=Down, 1=Full, 2=Attempt, 3=Exchange, 4=ExStart, 5=Init, 6=Loading, 7=2Way)
crpd_ospf_neighbor_state{neighbor_address="113.113.113.3",interface_name="enp6s0",node="example.juniper.net"} 1

MPLS 統計情報

# TYPE crpd_mpls_ingress_lsp_sessions_down gauge
# HELP crpd_mpls_ingress_lsp_sessions_down Number of MPLS ingress LSP sessions
crpd_mpls_ingress_lsp_sessions_down{node="example.juniper.net"} 0
# TYPE crpd_mpls_ingress_lsp_sessions gauge
# HELP crpd_mpls_ingress_lsp_sessions Number of MPLS ingress LSP sessions
crpd_mpls_ingress_lsp_sessions{node="example.juniper.net"} 0
# TYPE crpd_mpls_lsp_make_before_breaks_total counter
# HELP crpd_mpls_lsp_make_before_breaks_total Total number of LSP make before break procedures performed
crpd_mpls_lsp_make_before_breaks_total{node="example.juniper.net"} 0
# TYPE crpd_mpls_lsp_bandwidth_increases_total counter
# HELP crpd_mpls_lsp_bandwidth_increases_total Total number of LSP bandwidth increases performed
crpd_mpls_lsp_bandwidth_increases_total{node="example.juniper.net"} 0
# TYPE crpd_mpls_lsp_bandwidth_decreases_total counter
# HELP crpd_mpls_lsp_bandwidth_decreases_total Total number of bandwidth decreases performed
crpd_mpls_lsp_bandwidth_decreases_total{node="example.juniper.net"} 0
# TYPE crpd_mpls_lsp_update_cspf_failures_total counter
# HELP crpd_mpls_lsp_update_cspf_failures_total Total number of in-place LSP auto-bandwidth resizing failures at the CSPF path computation stage
crpd_mpls_lsp_update_cspf_failures_total{node="example.juniper.net"} 0
# TYPE crpd_mpls_lsp_update_signaling_errors_total counter
# HELP crpd_mpls_lsp_update_signaling_errors_total Total number of in-place LSP auto-bandwidth resizing failures when RSVP signaling error is received
crpd_mpls_lsp_update_signaling_errors_total{node="example.juniper.net"} 0
# TYPE crpd_mpls_lsp_update_signaling_timeouts_total counter
# HELP crpd_mpls_lsp_update_signaling_timeouts_total Total number of in-place LSP auto-bandwidth resizing failures when RSVP signaling takes too long to complete
crpd_mpls_lsp_update_signaling_timeouts_total{node="example.juniper.net"} 0
# TYPE crpd_mpls_label_space_total_labels gauge
# HELP crpd_mpls_label_space_total_labels The total label space available
crpd_mpls_label_space_total_labels{label_space="LSI",node="example.juniper.net"} 999984
# TYPE crpd_mpls_label_space_free_labels gauge
# HELP crpd_mpls_label_space_free_labels The number of freely available labels
crpd_mpls_label_space_free_labels{node="example.juniper.net",label_space="LSI"} 999984
crpd_mpls_label_space_total_labels{node="example.juniper.net",label_space="Block"} 999984
crpd_mpls_label_space_free_labels{node="example.juniper.net",label_space="Block"} 999984
crpd_mpls_label_space_total_labels{node="example.juniper.net",label_space="Dynamic"} 999984
crpd_mpls_label_space_free_labels{node="example.juniper.net",label_space="Dynamic"} 999984
crpd_mpls_label_space_total_labels{node="example.juniper.net",label_space="Static"} 48576
crpd_mpls_label_space_free_labels{node="example.juniper.net",label_space="Static"} 48576

gNMI経由のテレメトリ

gNMI プロトコルは、テレメトリ データにサブスクライブするための Subscribe RPC を定義します。テレメトリコレクターは、このRPCを使用して、状態と設定データの更新をネットワークデバイスに要求します。詳細については、 gNMI を使用したテレメトリデータのサブスクライブ を参照してください。

values.yaml Helm チャートで gNMI 設定を有効にすることで、サポートを有効にできます。詳細については、お使いのプラットフォームの Helm チャートのカスタマイズ のトピックを参照してください。JCNR のインストール時に helm install コマンドに次の引数を渡すことで、gNMI を有効にすることもできます。

手記:
  1. helmchart で telemetry.gnmi.enable が true に設定されている場合、外部クライアントは grpc ポート 50053 に接続できます。

  2. gNMI サブスクリプションは、次のような外部クライアントからの認証済み要求でのみ機能します。

  3. SAMPLE および TARGET_DEFINED サブスクリプションモードは、現在のリリースでサポートされています。

  4. パスのキー値を使用した SubscribeMessage 内の特定のインスタンスのターゲット設定は、現在のリリースではサポートされていません。例えば、などのパスを使用して特定のインターフェイスのメトリックを監視することをサブスクライブすると、 /interfaces/interface[name=”enp3s0”]/state/counters

  5. gNMI デバッグ ログは、 /var/log/jcnr/na-grpcd から入手できます。

次の表に、テレメトリ メトリックでサポートされているセンサーを示します。

表 3:テレメトリ メトリックでサポートされているセンサー

センサータイプ

センサーパス

インターフェースセンサー

/interfaces/interface[name="interface_name"]/config/description

/interfaces/interface[name="interface_name"]/ethernet/mac-address 

/interfaces/interface[name="interface_name"]/state/admin-status 

/interfaces/interface[name="interface_name"]/state/oper-status 

/interfaces/interface[name="interface_name"]/state/counters/in-octets

/interfaces/interface[name="interface_name"]/state/counters/in-pkts

/interfaces/interface[name="interface_name"]/state/counters/out-octets

/interfaces/interface[name="interface_name"]/state/counters/out-pkts

インターフェイス VLAN センサー /interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/in-broadcast-octets

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/in-broadcast-pkts

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/out-broadcast-octets

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/out-broadcast-pkts

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/out-flooded-octets

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/out-flooded-pkts

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/in-multicast-octets

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/in-multicast-pkts

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/out-multicast-octets

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/out-multicast-pkts

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/in-unicast-octets

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/in-unicast-pkts

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/out-unicast-octets

/interfaces/interface[name="interface_name"]/subinterfaces/subinterface[index=vlanID]/vlan/state/counters/out-unicast-pkts

手記:

インターフェイス VLAN センサーは、L3 VLAN サブインターフェイスではサポートされていません。

グローバルvRouterセンサー

/junos/system/state/network/in-octets

/junos/system/state/network/in-pkts

/junos/system/state/network/out-octets

/junos/system/state/network/out-pkts

/junos/system/state/network/flows

/junos/system/state/network/active-flows

/junos/system/state/network/aged-flows

/junos/system/state/network/hold-flows

/junos/system/state/network/drop-pkts

/junos/system/state/network/checksum-err-drop-pkts

/junos/system/state/network/flow-no-memory-drop-pkts

/junos/system/state/network/clone-fail-drop-pkts

/junos/system/state/network/discard-drop-pkts

/junos/system/state/network/drop-new-flow-drop-pkts

/junos/system/state/network/drop-pkts-drop-pkts

/junos/system/state/network/duplicated-drop-pkts

/junos/system/state/network/flow-action-drop-drop-pkts

/junos/system/state/network/flow-action-invalid-drop-pkts

/junos/system/state/network/flow-evict-drop-pkts

/junos/system/state/network/flow-invalid-protocol-drop-pkts

/junos/system/state/network/flow-nat-no-rflow-drop-pkts

/junos/system/state/network/flow-no-memory-drop-pkts

/junos/system/state/network/flow-queue-limit-exceeded-drop-pkts

/junos/system/state/network/flow-table-full-drop-pkts

/junos/system/state/network/flow-unusable-drop-pkts

/junos/system/state/network/frag-err-drop-pkts

/junos/system/state/network/fragment-queue-fail-drop-pkts

/junos/system/state/network/head-alloc-fail-drop-pkts

/junos/system/state/network/icmp-error-drop-pkts

/junos/system/state/network/interface-drop-drop-pkts

/junos/system/state/network/interface-rx-discard-drop-pkts

/junos/system/state/network/interface-tx-discard-drop-pkts

/junos/system/state/network/invalid-arp-drop-pkts

/junos/system/state/network/invalid-if-drop-pkts

/junos/system/state/network/invalid-label-drop-pkts

/junos/system/state/network/invalid-mcast-source-drop-pkts

/junos/system/state/network/invalid-nh-drop-pkts

/junos/system/state/network/invalid-packet-drop-pkts

/junos/system/state/network/invalid-protocol-drop-pkts

/junos/system/state/network/invalid-source-drop-pkts

/junos/system/state/network/invalid-vnid-drop-pkts

/junos/system/state/network/l2-no-route-drop-pkts

/junos/system/state/network/mcast-clone-fail-drop-pkts

/junos/system/state/network/mcast-df-bit-drop-pkts

/junos/system/state/network/misc-drop-pkts

/junos/system/state/network/no-fmd-drop-pkts

/junos/system/state/network/no-frag-entry-drop-pkts

/junos/system/state/network/no-memory-drop-pkts

/junos/system/state/network/nowhere-to-go-drop-pkts

/junos/system/state/network/pcow-fail-drop-pkts

/junos/system/state/network/pull-drop-pkts

/junos/system/state/network/push-drop-pkts

/junos/system/state/network/rewrite-fail-drop-pkts

/junos/system/state/network/trap-no-if-drop-pkts

/junos/system/state/network/trap-original-drop-pkts

/junos/system/state/network/ttl-exceeded-drop-pkts

/junos/system/state/network/vlan-fwd-enq-drop-pkts

/junos/system/state/network/vlan-fwd-tx-drop-pkts

ARPセンサー

/arp-information/ipv4/neighbors/neighbor[ip="ip_address"]/state/link-layer-address

/arp-information/ipv4/neighbors/neighbor[ip="ip_address"]/state/interface-name

/arp-information/ipv4/neighbors/neighbor[ip="ip_address"]/state/origin

MAC学習センサー

/network-instances/network-instance/fdb/mac-table/entry[vlan=vlan_id, mac-address="mac_address"]/state/entry-type

/network-instances/network-instance/fdb/mac-table/entry[vlan=vlan_id, mac-address="mac_address"]/mac-address

/network-instances/network-instance/fdb/mac-table/entry[vlan=vlan_id, mac-address="mac_address"]/interface/interface-ref/state/interface

/network-instances/network-instance/fdb/mac-table/entry[vlan=vlan_id, mac-address="mac_address"]/vlan

TWAMP センサー

/junos/twamp/client/probe-test-results[owner="owner_name", test-name="test_name"]/probe-test-generic-results[results-scope=enum]/probe-test-generic-measurements[probe-measurement-type=enum]/avg-delay

/junos/twamp/client/probe-test-results[owner="owner_name", test-name="test_name"]/probe-test-generic-results[results-scope=enum]/probe-test-generic-measurements[probe-measurement-type=enum]/jitter-delay

/junos/twamp/client/probe-test-results[owner="owner_name", test-name="test_name"]/probe-test-generic-results[results-scope=enum]/probe-test-generic-measurements[probe-measurement-type=enum]/max-delay

/junos/twamp/client/probe-test-results[owner="owner_name", test-name="test_name"]/probe-test-generic-results[results-scope=enum]/probe-test-generic-measurements[probe-measurement-type=enum]/min-delay

/junos/twamp/client/probe-test-results[owner="owner_name", test-name="test_name"]/probe-test-generic-results[results-scope=enum]/probe-test-generic-measurements[probe-measurement-type=enum]/samples

/junos/twamp/client/probe-test-results[owner="owner_name", test-name="test_name"]/probe-test-generic-results[results-scope=enum]/probe-test-generic-measurements[probe-measurement-type=enum]/stddev-delay

/junos/twamp/client/probe-test-results[owner="owner_name", test-name="test_name"]/probe-test-generic-results[results-scope=enum]/probe-test-generic-measurements[probe-measurement-type=enum]/sum-delay

手記:

results-scope enum は以下のいずれかです: [CURRENT_TEST|LAST_TEST|MOVING_AVERAGE_TEST|ALL_TESTS]

probe-measurement-type enum は、次のいずれかです。

[ROUND_TRIP_TIME | EGRESS_DELAY | INGRESS_DELAY | POSITIVE_RTT_JITTER | NEGATIVE_RTT_JITTER | POSITIVE_EGRESS_JITTER | NEGATIVE_EGRESS_JITTER | POSITIVE_INGRESS_JITTER | NEGATIVE_INGRESS_JITTER]

ルーティングセンサー

/junos/routing/route-tables/route-table[name="routing_table_name"]/routes/route[prefix="prefix"]/entries/entry[protocol="protocol",next-hop="ip_addr",interface="interface_name"]/interface

/junos/routing/route-tables/route-table[name="routing_table_name"]/routes/route[prefix="prefix"]/entries/entry[protocol="protocol",next-hop="ip_addr",interface="interface_name"]/next-hop

/junos/routing/route-tables/route-table[name="routing_table_name"]/routes/route[prefix="prefix"]/entries/entry[protocol="protocol",next-hop="ip_addr",interface="interface_name"]/protocol

/junos/routing/route-tables/route-table[name="routing_table_name"]/routes/route[prefix="prefix"]/entries/entry[protocol="protocol",next-hop="ip_addr",interface="interface_name"]/state/age

/junos/routing/route-tables/route-table[name="routing_table_name"]/route[prefix="prefix]/entries/entry[protocol="protocol",next-hop="ip_addr",interface="interface_name"]/state/active

cRPDでサポートされているその他のセンサーを表示するには、cRPDのテレメトリ情報を参照してください。