Giter Club home page Giter Club logo

Comments (3)

nileshsimaria avatar nileshsimaria commented on July 30, 2024

Can you try with the latest jtimon ?

from jtimon.

zhanghaofeng avatar zhanghaofeng commented on July 30, 2024

It's the same.

Here is the console output.
root@yangtze:~/hfzhang/ocst# ./jtimon-linux-amd64 --config mx2020.json --max-run 300
Version: 0f86b4a-master BuildTime 2018-09-04T16:28:56-0700
2018/11/18 22:15:29 logging in mx2020.log for goog-1-mx2020-geo:10162 [periodic stats every 2 seconds]
All done ... exiting!

And here is the log output.
root@yangtze:/hfzhang/ocst# cat mx2020.log
2018/11/18 22:15:29
Running config of JTIMON:
{
"port": 10162,
"host": "host",
"user": "regress",
"password": "MaRtInI",
"vendor": "",
"cid": "cid-ocst-1-geo-d101-3",
"meta": false,
"eos": false,
"api": {
"port": 0
},
"grpc": {
"ws": 1048576
},
"tls": {
...
},
"influx": {
"server": "",
"port": 0,
"dbname": "",
"user": "",
"password": "",
"recreate": false,
"measurement": "",
"diet": false,
"batchsize": 1048576,
"batchfrequency": 2000,
"retention-policy": ""
},
"paths": [
...
],
"log": {
"file": "mx2020.log",
"periodic-stats": 2,
"verbose": false,
"drop-check": true,
"latency-check": false,
"csv-stats": false,
"FileHandle": null,
"Logger": {}
}
}
2018/11/18 22:15:29 Connecting to goog-1-mx2020-geo:10162
2018/11/18 22:16:13 gRPC headers from host goog-1-mx2020-geo:10162
2018/11/18 22:16:13 init-response: [response { subscription_id: 1 } path_list { path: "/interfaces/interface/state/" sample_frequency: 2000 } path_list { path: "/junos/services/segment-routing/interface/ingress/usage/" sample_frequency: 2000 } path_list { path: "/junos/system/linecard/intf-exp/" sample_frequency: 2000 } path_list { path: "/junos/services/segment-routing/interface/egress/usage/" sample_frequency: 2000 } path_list { path: "/junos/services/segment-routing/sid/usage/" sample_frequency: 2000 } path_list { path: "/interfaces/interface/subinterfaces/subinterface/state/" sample_frequency: 10000 } path_list { path: "/arp-information/ipv4/neighbors/neighbor/state/" sample_frequency: 30000 } path_list { path: "/components/component/properties/property/state/value/" sample_frequency: 30000 } path_list { path: "/components/component/state/" sample_frequency: 30000 } path_list { path: "/junos/alarm-information/" sample_frequency: 30000 } path_list { path: "/junos/cos-forwarding-class-information/" sample_frequency: 30000 } path_list { path: "/junos/krt-state-information/" sample_frequency: 30000 } path_list { path: "/junos/services/label-switched-path/usage/" sample_frequency: 30000 } path_list { path: "/junos/system/linecard/fabric/" sample_frequency: 30000 } path_list { path: "/junos/system/linecard/firewall/" sample_frequency: 30000 } path_list { path: "/junos/system/linecard/npu/memory/" sample_frequency: 30000 } path_list { path: "/junos/system/linecard/optics/" sample_frequency: 30000 } path_list { path: "/junos/system/linecard/packet/usage/" sample_frequency: 30000 } path_list { path: "/junos/task-memory-information/task-memory-overall-report/" sample_frequency: 30000 } path_list { path: "/lacp/interfaces/interface/members/member/state/" sample_frequency: 30000 } path_list { path: "/lldp/interfaces/interface/state/" sample_frequency: 30000 } path_list { path: "/lldp/state/" sample_frequency: 30000 } path_list { path: "/lldp/interfaces/interface/neighbors/neighbor/state/" sample_frequency: 30000 } path_list { path: "/nd6-information/ipv6/neighbors/neighbor/state/" sample_frequency: 30000 } path_list { path: "/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/" sample_frequency: 30000 } path_list { path: "/network-instances/network-instance/mpls/signaling-protocols/rsvp-te/global/state/" sample_frequency: 30000 } path_list { path: "/network-instances/network-instance/mpls/signaling-protocols/rsvp-te/interface-attributes/interface/" sample_frequency: 30000 } path_list { path: "/network-instances/network-instance/mpls/signaling-protocols/rsvp-te/sessions/session/state/session-name/" sample_frequency: 30000 } path_list { path: "/network-instances/network-instance/mpls/signaling-protocols/rsvp-te/sessions/session/explicit-route-objects/" sample_frequency: 30000 } path_list { path: "/network-instances/network-instance/protocols/protocol/bgp/neighbors/" sample_frequency: 30000 } path_list { path: "/network-instances/network-instance/protocols/protocol/isis/" sample_frequency: 31000 } ]
2018/11/18 22:16:13 content-type: [application/grpc]
2018/11/18 22:16:13 grpc-accept-encoding: [identity,deflate,gzip]
2018/11/18 22:16:13 Receiving telemetry data from goog-1-mx2020-geo:10162
2018/11/18 22:20:29 Streaming has been interruppted
root@yangtze:
/hfzhang/ocst#

from jtimon.

nileshsimaria avatar nileshsimaria commented on July 30, 2024

Sorry for the late reply, just got chance to work on this one. On top of JSON config for periodic-stats, you need to enable stats handler of grpc using the command line. Following should work.

$ ./jtimon --stats-handler --config d102.json

from jtimon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.