Giter Site home page Giter Site logo

No entries in influxdb about open-nti HOT 10 CLOSED

juniper avatar juniper commented on May 30, 2024
No entries in influxdb

from open-nti.

Comments (10)

stevebwall avatar stevebwall commented on May 30, 2024

root@gvision:~/open-nti# docker logs opennti_input_jti
2016-12-06 09:58:06 -0800 [info]: reading config file path="/tmp/fluent.conf"
2016-12-06 09:58:06 -0800 [info]: starting fluentd-0.12.26
2016-12-06 09:58:06 -0800 [info]: gem 'fluent-plugin-juniper-telemetry' version '0.2.11'
2016-12-06 09:58:06 -0800 [info]: gem 'fluentd' version '0.12.26'
2016-12-06 09:58:06 -0800 [info]: adding match pattern="jnpr." type="copy"
2016-12-06 09:58:06 -0800 [info]: adding match pattern="debug.
" type="stdout"
2016-12-06 09:58:06 -0800 [info]: adding match pattern="fluent.**" type="stdout"
2016-12-06 09:58:06 -0800 [info]: adding source type="forward"
2016-12-06 09:58:06 -0800 [info]: adding source type="udp"
2016-12-06 09:58:06 -0800 [info]: adding source type="udp"
2016-12-06 09:58:06 -0800 [info]: adding source type="monitor_agent"
2016-12-06 09:58:06 -0800 [info]: adding source type="debug_agent"
2016-12-06 09:58:06 -0800 [info]: using configuration file:

@type forward @id forward_input @type udp tag jnpr.jvision format juniper_jti port 50000 bind 0.0.0.0 @type udp tag jnpr.analyticsd format juniper_analyticsd port 50020 bind 0.0.0.0 type copy type influxdb host opennti port 8086 dbname juniper user juniper password xxxxxx value_keys ["value"] buffer_type memory flush_interval 2 @type monitor_agent @id monitor_agent_input port 24220 @type debug_agent @id debug_agent_input bind 127.0.0.1 port 24230 @type stdout @id stdout_output @type stdout 2016-12-06 09:58:06 -0800 [info]: listening fluent socket on 0.0.0.0:24224 2016-12-06 09:58:06 -0800 [info]: listening udp socket on 0.0.0.0:50000 2016-12-06 09:58:06 -0800 [info]: listening udp socket on 0.0.0.0:50020 2016-12-06 09:58:06 -0800 [info]: listening dRuby uri="druby://127.0.0.1:24230" object="Engine"

from open-nti.

stevebwall avatar stevebwall commented on May 30, 2024

If I configure the Data Collection Agent Dashboard, I am able to see data using Grafana with no issues.

I am streaming from an MX as below:

swall@tinybud> show version invoke-on all-routing-engines | match Junos:
Junos: 16.1R3.10
Junos: 16.1R3.10

swall@tinybud> show configuration services analytics | display set
set services analytics streaming-server GV remote-address 172.17.250.2
set services analytics streaming-server GV remote-port 50000
set services analytics export-profile EXP local-address 1.0.0.41
set services analytics export-profile EXP local-port 30010
set services analytics sensor S1 server-name GV
set services analytics sensor S1 export-name EXP
set services analytics sensor S1 resource /junos/system/linecard/interface/
set services analytics sensor S3 server-name GV
set services analytics sensor S3 export-name EXP
set services analytics sensor S3 resource /junos/system/linecard/firewall/
set services analytics sensor S4 server-name GV
set services analytics sensor S4 export-name EXP
set services analytics sensor S4 resource /junos/system/linecard/cpu/memory/
set services analytics sensor S5 server-name GV
set services analytics sensor S5 export-name EXP
set services analytics sensor S5 resource /junos/system/linecard/npu/memory/
set services analytics sensor S6 server-name GV
set services analytics sensor S6 export-name EXP
set services analytics sensor S6 resource /junos/system/linecard/interface/logical/usage/
set services analytics sensor S2 server-name GV
set services analytics sensor S2 export-name EXP
set services analytics sensor S2 resource /junos/services/label-switched-path/usage/

from open-nti.

dgarros avatar dgarros commented on May 30, 2024

Hi @stevebwall

Thanks for looking into OpenNTI
Not all sensors are currently supported, sorry if this part is not clearly documented yet, I need to do that.

For now, I would recommend to keep:

  • /junos/system/linecard/interface/logical/usage/
  • /junos/system/linecard/interface/
  • /junos/system/linecard/firewall/
    LSP should work but I have done little testing on it

Also, to support Logical interface and Firewall you need to use a different code for JTI input plugin
it's very easy to upgrade

In the file docker-compose.yml, you need to update the second line and replace juniper/open-nti-input-jtiwithjuniper/open-nti-input-jti:devel`, see example below
Before:

input-jti:
  image: juniper/open-nti-input-jti
  container_name: opennti_input_jti

After modification

input-jti:
  image: juniper/open-nti-input-jti:devel
  container_name: opennti_input_jti

Once done, you need to run make start once again to reload the container.

This new version is under test right now and It will become the default version very soon.
Please let me know if it's working better

If it's still not better, you might have to increase the MTU between your junos device and the OpenNTI server. If you have too many interfaces, Junos will send fragmented packets ..

Thanks
Damien

from open-nti.

dgarros avatar dgarros commented on May 30, 2024

Documentation bug

from open-nti.

stevebwall avatar stevebwall commented on May 30, 2024

I made the change in docker-compose.yml:

input-jti:
image: juniper/open-nti-input-jti:devel
container_name: opennti_input_jti

Then I did 'make start'.

I also reduced my analytics config as below:

set services analytics streaming-server GV remote-address 172.17.250.2
set services analytics streaming-server GV remote-port 50000
set services analytics export-profile EXP local-address 1.0.0.41
set services analytics export-profile EXP local-port 30010
set services analytics sensor S1 server-name GV
set services analytics sensor S1 export-name EXP
set services analytics sensor S1 resource /junos/system/linecard/interface/
set services analytics sensor S3 server-name GV
set services analytics sensor S3 export-name EXP
set services analytics sensor S3 resource /junos/system/linecard/firewall/
set services analytics sensor S6 server-name GV
set services analytics sensor S6 export-name EXP
set services analytics sensor S6 resource /junos/system/linecard/interface/logical/usage/

Finally, I changed the mtu on my export interface:

set interfaces xe-0/0/0 mtu 4000

I am still not seeing any data for the Data Streaming Collector Dashboard.

I am running 16.1R3. Could it be that open-nti has not been fully tested with this new release?

swall@tinybud> show version invoke-on all-routing-engines | grep Junos:
Junos: 16.1R3.10
Junos: 16.1R3.10

from open-nti.

stevebwall avatar stevebwall commented on May 30, 2024

I tried downgrading to 15.1:

swall@tinybud> show version invoke-on all-routing-engines | grep Junos:
Junos: 15.1F6-S3.7
Junos: 15.1F6-S3.7

I restarted my docker. I see UDP data:

root@6a38a418a3bc:/# tcpdump -i eth0 -n dst port 50000
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
07:18:19.157940 IP 1.0.0.41.30010 > 172.17.250.2.50000: UDP, length 716
07:18:19.623563 IP 1.0.0.41.30010 > 172.17.250.2.50000: UDP, length 716

Grafana does not report any data and the influxdb/juniper DB is empty. Not sure what else I can check to troubleshoot further....

from open-nti.

dgarros avatar dgarros commented on May 30, 2024

Hi @stevebwall
sorry for the delay, I was traveling last week
do you have time this week for a live troubleshooting session ?
i'm based on the West coast (PDT)

from open-nti.

stevebwall avatar stevebwall commented on May 30, 2024

Yes, I am available today or tomorrow to take a look.... much appreciated.

from open-nti.

dgarros avatar dgarros commented on May 30, 2024

Today works for me, please send me an email dgarros _ juniper.net

from open-nti.

stevebwall avatar stevebwall commented on May 30, 2024

Thanks Damien, with your help this is working now. It appears that I need to stream telemetry data to the host interface IP address, not the docker IP address. This does not seem intuitive to me, but it is working. I think open-nti should be able to accept data if it makes it to the docker IP. In my case this was proven to be working via tcpdump from the docker cli.

from open-nti.

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.