Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

periodic stats not working? #22

Closed
zhanghaofeng opened this issue Aug 24, 2018 · 3 comments
Closed

periodic stats not working? #22

zhanghaofeng opened this issue Aug 24, 2018 · 3 comments

Comments

@zhanghaofeng
Copy link

I am looking for periodic stats from the collector, but I get nothing.

root@yangtze:~/hfzhang/D101# ./jtimon --config d102.json
Version: version-not-available BuildTime build-time-not-available
2018/08/24 11:03:00 logging in d102.test.log for 1.100.0.0:10162 [periodic stats every 2 seconds]

Here is my json file.

{
"host": "1.100.0.0",
"port": 10162,
"user": "regress",
"password": "MaRtInI",
"cid": "cid-yangtze-d100-3",
"influx" : {
"server" : "127.0.0.1",
"port" : 8086,
"dbname" : "tinyvale_kv",
"measurement" : "OC",
"user" : "influx",
"password" : "influxdb",
"recreate" : true
},
"tls" : {
"clientcrt" : "client/client.crt",
"clientkey" : "client/client.key",
"ca" : "CA/RootCA.crt",
"servername" : "tinyvale"
},
"grpc" : {
"ws" : 1048576
},
"paths": [
...
],
"log": {
"file": "d102.test.log",
"verbose": true,
"periodic-stats": 2,
"drop-check": true,
"latency-check": false,
"csv-stats": true,
"FileHandle": null,
"Logger": null
}
}

@nileshsimaria
Copy link
Owner

Can you try with the latest jtimon ?

@zhanghaofeng
Copy link
Author

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#

@nileshsimaria
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants