lijunliang 1 年間 前
コミット
0da2ee49bf
1 ファイル変更11 行追加0 行削除
  1. 11 0
      a2s/demo/monitor.py

+ 11 - 0
a2s/demo/monitor.py

@@ -0,0 +1,11 @@
+from a2s.a2s_monitor import watch_monitor
+
+if __name__ == '__main__':
+    import time
+
+    for i in range(1000):
+        ner_count = watch_monitor('192.168.3.240:9090', 'goods_ner')
+        field_count = watch_monitor('192.168.3.240:9090', 'goods_field')
+        service_count = watch_monitor('192.168.3.240:9090', 'goods_service')
+        print("service_count:", service_count, "ner_count:", ner_count, "field_count:", field_count)
+        time.sleep(0.5)