作者:Tatsuya Naganawa 译者:TF编译组
一些工具(例如zabbix)支持抓取prometheus格式,因此在监视工具中作为通用格式也很有用:
https://www.zabbix.com/documentation/4.2/manual/config/items/itemtypes/prometheus
直接从内省HTTP Server导出指标(此功能目前不可用)
从analytics或从analytics UVE导出值(此功能目前可用)
当前,有限的vRouters指标可以被导出,例如报文,字节数,流数量,丢弃报文数量
https://github.com/tnaganawa/tf-analytics-exporter
https://www.fluentd.org/guides/recipes/docker-logging
https://github.com/Juniper/contrail-controller/wiki/Flow-Sampling
https://github.com/Juniper/contrail-specs/blob/master/security_logging_object.md
要启用本地流日志记录,可以使用这些参数。

如果设置了此参数,则vrouter-agent的日志文件(例如/var/log/contrail/contrail-vrouter-agent.log)将具有如下的日志输出:
INFO - [SYS_INFO]: SessionData: [ vmi =
default-domain:k8s-kube-system:coredns
-7f865bd4f9
-6gq52__8d7eb81a
-6b16
-11e9-b466
-0e4d26f73e5e vn =
default-domain:k8s-
default:k8s-
default-pod-network application = application=k8s ] security_policy_rule =
00000000
-0000
-0000
-0000
-000000000004 remote_vn =
default-domain:
default-project:ip-fabric is_client_session =
1 is_si =
0 vrouter_ip =
172.31
.6
.218 local_ip =
10.47
.255
.250 service_port =
443 protocol =
6 sampled_forward_bytes =
132 sampled_forward_pkts =
2 sampled_reverse_bytes =
1140 sampled_reverse_pkts =
2 ip =
10.96
.0
.1 port =
35420 forward_flow_info= [ sampled_bytes =
132 sampled_pkts =
2 flow_uuid =
130bbb8d
-9be7
-46bc
-8b3a
-938a5c2c36bb tcp_flags =
120 setup_time =
1556609440638565 action = pass sg_rule_uuid =
00000000
-0000
-0000
-0000
-000000000004 nw_ace_uuid =
00000000
-0000
-0000
-0000
-000000000004 underlay_source_port =
55670 ] reverse_flow_info= [ sampled_bytes =
1140 sampled_pkts =
2 flow_uuid = e09e2579
-7764
-472b
-8a35-b300c5ec34e7 tcp_flags =
120 setup_time =
1556609440638565 action = pass sg_rule_uuid =
00000000
-0000
-0000
-0000
-000000000004 nw_ace_uuid =
00000000
-0000
-0000
-0000
-000000000004 underlay_source_port =
49942 ] vm = coredns
-7f865bd4f9
-6gq52__8d536915
-6b16
-11e9
-9f48
-0e4d26f73e5e other_vrouter_ip =
172.31
.6
.218 underlay_proto =
0 ]
哪个VNF通过服务链连接到了哪个VN
哪个物理设备具有哪个VN扩展
哪个虚拟机位于哪个vRouter上
vRouter到leaf交换机的连接
leaf交换机到spine交换机的连接
据我所知,无法查看哪个物理设备已进行了VN扩展
http://www.opencontrail.org/wp-content/uploads/2014/11/overlay_to_physical_blogpost_image2.png
http://www.opencontrail.org/wp-content/uploads/2014/11/overlay_to_physical_blogpost_image3.png
vRouter到leaf交换机的连接似乎也是基于leaf交换机中的arp表来进行可视化的。

http://www.opencontrail.org/wp-content/uploads/2014/11/overlay_to_physical_blogpost_image1.png
要启用此功能,需要勾选Configure > Physical Device > (edit) > 'SNMP Enabled'
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69957171/viewspace-2690509/ ,如需转载,请注明出处,否则将追究法律责任。