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

Fresh install - Grafana graphs empty (MX routers, Junos 17.4, Ubuntu server) #249

Open
nzjc opened this issue Dec 17, 2018 · 7 comments
Open

Comments

@nzjc
Copy link

nzjc commented Dec 17, 2018

Hi there

I have followed the instructions (https://open-nti.readthedocs.io/en/latest/install.html) which are a tad out of date, but basically on my Ubuntu 14.04 server I ran the usual apt updates, then:

$ git clone https://github.com/Juniper/open-nti.git
$ cd open-nti
$ make start

Everything starts up as it should.

Docker PS

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fd84fc77e8ca opennti_input-snmp "/source/start-inp..." 4 minutes ago Up 4 minutes 0.0.0.0:162->162/udp opennti_input_snmp
214ca3966a9d juniper/open-nti-input-jti:latest "/bin/sh -c /fluen..." 4 minutes ago Up 4 minutes 0.0.0.0:50000->50000/udp, 24284/tcp, 40020/udp, 0.0.0.0:50020->50020/udp opennti_input_jti
e5cd0f02cc31 quay.io/influxdb/chronograf:1.5.0.1 "/usr/bin/chronogr..." 4 minutes ago Up 4 minutes 0.0.0.0:8888->8888/tcp chronograf_con
d164ebbfc4da juniper/open-nti-input-syslog:latest "/bin/sh -c /home/..." 4 minutes ago Up 4 minutes 5140/tcp, 24220/tcp, 24224/tcp, 0.0.0.0:6000->6000/udp opennti_input_syslog
d5111e0671b4 kapacitor:1.5.0 "/entrypoint.sh ka..." 4 minutes ago Up 4 minutes 0.0.0.0:9092->9092/tcp kapacitor
aaf81a1a0be0 opennti_input-oc "/entrypoint.sh /s..." 4 minutes ago Up 4 minutes 8092/udp, 8125/udp, 8094/tcp, 0.0.0.0:50051->50051/udp opennti_input_oc
580c44001075 juniper/open-nti:latest "/sbin/my_init" 4 minutes ago Up 4 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:8083->8083/tcp, 0.0.0.0:8086->8086/tcp, 0.0.0.0:8125->8125/udp opennti_con

When I tcpdump, I can see udp traffic coming in from my MX routers (MX960s, MX480s, MX204s, on a variety of Junos versions, 4/5 of them on 17.4, one on 15.1F6):

me@lab-docker:~/open-nti$ sudo tcpdump -i eth1.999 udp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1.999, link-type EN10MB (Ethernet), capture size 262144 bytes
12:28:23.077599 IP 192.168.254.1.50000 > 192.168.254.58.50000: UDP, length 1304
12:28:23.082022 IP 192.168.254.1.50000 > 192.168.254.58.50000: UDP, length 1073
12:28:23.894927 IP 192.168.254.4.50000 > 192.168.254.58.50000: UDP, length 549
12:28:23.895002 IP 192.168.254.4.50000 > 192.168.254.58.50000: UDP, length 157
12:28:23.896354 IP 192.168.254.4.50000 > 192.168.254.58.50000: UDP, length 180
12:28:23.899546 IP 192.168.254.4.50000 > 192.168.254.58.50000: UDP, length 1145

My Juniper config is like so:

me@mx5> show configuration services analytics | no-more
streaming-server open-nti-lab-docker {
remote-address 192.168.254.58;
remote-port 50000;
}
export-profile open-nti-lab {
local-address 192.168.254.9;
local-port 50000;
reporting-rate 10;
format gpb;
transport udp;
}
sensor phy-interfaces {
server-name open-nti-lab-docker;
export-name open-nti-lab;
resource /junos/system/linecard/interface/;
}
sensor log-interfaces {
server-name open-nti-lab-docker;
export-name open-nti-lab;
resource /junos/system/linecard/interface/logical/usage/;
}
sensor cpu-mem {
server-name open-nti-lab-docker;
export-name open-nti-lab;
resource /junos/system/linecard/cpu/memory/;
}
sensor pfe-lsp-usage {
server-name open-nti-lab-docker;
export-name open-nti-lab;
resource /junos/services/label-switched-path/usage/;
}
sensor firewall-stats {
server-name open-nti-lab-docker;
export-name open-nti-lab;
resource /junos/system/linecard/firewall/;
}
sensor pfe-fabric {
server-name open-nti-lab-docker;
export-name open-nti-lab;
resource /junos/system/linecard/fabric/;
}
sensor npu-memory {
server-name open-nti-lab-docker;
export-name open-nti-lab;
resource /junos/system/linecard/npu/memory/;
}

In influx, when I switch to the 'Juniper' database and run 'show measurements' I get the following:

name

juniperNetworks.cpu_memory_util_ext
juniperNetworks.fabricMessageExt
juniperNetworks.jnprLogicalInterfaceExt
juniperNetworks.jnpr_firewall_ext
juniperNetworks.jnpr_interface_ext
juniperNetworks.jnpr_lsp_statistics_ext

However, I see nothing in any of the graphs in Grafana. Has something changed in one of the tools and not updated in another?

I can give any other details required, happy to share screens etc if useful.

Cheers

@agould123
Copy link

agould123 commented Dec 17, 2018 via email

@nzjc
Copy link
Author

nzjc commented Dec 17, 2018

Thanks @agould123 - I have just been reading older closed issues (I am quite bad at using github it seems!) and saw that Cronograf is the replacement for InfluxDB's front end, even though the latter still seems present.

I do see some telemetry graphs by clicking around in there, yes. I see 4 of my 5 hosts present. From this, I take it that the Grafana dashboards that Open-NTI comes with are no longer valid? The queries don't seem to work any longer - did I miss some documentation update somewhere?

Thanks for your reply

@panks21
Copy link

panks21 commented Dec 24, 2018

There is certain need of the document update. It seems that the old DB root for InfluxDB has been changed to juniper.four_weeks. The queries needs to be updated like this
SELECT mean("interface_stats.egress_stats.if_pkts") AS "mean_interface_stats.egress_stats.if_pkts", mean("interface_stats.ingress_stats.if_pkts") AS "mean_interface_stats.ingress_stats.if_pkts" FROM "juniper"."four_weeks"."juniperNetworks.jnpr_interface_ext" WHERE time > now() - 1h AND "interface_stats.if_name"='ge-0/0/0' GROUP BY time(:interval:) FILL(null)

@cylmad
Copy link

cylmad commented Feb 15, 2019

Hi there,
I'm facing the same issue with grafana not showing any data points in the dashboards (but it works fine using Chronograf). Any idea to solve this grafana pb ? I tried many queries adjustments (including the one provided above) but nothing helps. Thx for your help.

[EDIT]
I finally succeed in graphing something in grafana. The provided dashboard has to be update to take in account the four_weeks retention policy.

@nzjc
Copy link
Author

nzjc commented Mar 6, 2019

Thanks for the suggestions. I am not really that well versed in the nuts and bolts here.. Is it likely this will be updated and I can just pull the containers down in a working order? :)

@lwbnet
Copy link

lwbnet commented Apr 11, 2020

Hi there,
I'm facing the same issue with grafana not showing any data points in the dashboards (but it works fine using Chronograf). Any idea to solve this grafana pb ? I tried many queries adjustments (including the one provided above) but nothing helps. Thx for your help.

[EDIT]
I finally succeed in graphing something in grafana. The provided dashboard has to be update to take in account the four_weeks retention policy.

Hi @cylmad - I'm hitting this issue also, I can see data in Chronograf but nothing in Grafana - can you tell me how to update the Grafana dashboards to take into account the four_weeks policy?

@agould123
Copy link

agould123 commented Apr 13, 2020 via email

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

5 participants