vitaliy-sk / keenetic-grafana-monitoring

Monitor Keenetic router with Grafana and InfluxDB
Apache License 2.0
76 stars 15 forks source link

Some influx measurements are empty #26

Closed ilker-aktuna closed 2 weeks ago

ilker-aktuna commented 3 weeks ago

I've installed the scripts on the Keenetic router. On the OS there is no "nohup" command, so I changed the start script as : (python /opt/home/keenetic-grafana-monitoring/keentic_influxdb_exporter.py >/dev/null 2>&1)&

It collects data from router and inserts into my influx db.

Then I imported the Grafana dashboard from here: https://grafana.com/grafana/dashboards/12723-keenetic/ (rev.3)

Some data is available but most of the dashboard is empty as in this screenshot:

image

For example , rxbytes/txbytes returned from "interface data" is empty. Why is that ? How can we troubleshoot this ?

thanks

ilker-aktuna commented 3 weeks ago

any ideas ?

ilker-aktuna commented 3 weeks ago

no one to help ? am I the only one trying to make this run ?

ilker-aktuna commented 2 weeks ago

when I ask if this is abandoned, I get the answer "no" But then , nobody tries to understand the problem. if it is abandoned, I will give up ...

vitaliy-sk commented 2 weeks ago

Dear @ilker-aktuna this is open source project, there are no SLA on customer support

I could suggest following steps:

  1. Check exporter logs if there are any errors
  2. Check influxdb data directly through InfluxDB UI, if it's present then issue in dashboard, try to "Explore" mode in grafana an figure out what wrong in queries on dashboard
  3. If there are no data in influxdb check your config/metrics.json and try to check what is router API return for commands from config eg http://<your_router_up>/rci/show/interface for interfaces https://github.com/vitaliy-sk/keenetic-grafana-monitoring/blob/f7a08b61f8df03541e042f5eb5517e1d2fb3c6f1/config/metrics.json#L48
ilker-aktuna commented 2 weeks ago

I know this is open source and I don't expect customer support. But then I also don't export being ignored if someone is reading. I can understand that you are busy and don't have time to follow up, but at least you could have written that I should not wait

About troubleshooting: I have already checked DB content. Content missing on dashboard seems to be missing also on DB. I don'T have Influx UI, so I checked using command line "show measurements, show values etc)

I can access http:///rci/show/interface and interfaces are shown.

check your config/metrics.json What should I check ?

Check exporter logs if there are any errors - what is exporter logs ?

vitaliy-sk commented 2 weeks ago

Check exporter logs if there are any errors - what is exporter logs ?

Logging of keentic_influxdb_exporter.py that you run

What should I check ?

This is list of commands that will be executed on your router to export metrics

eg

{
      "command": "interface",
      "root": "$.*",
      "tags": {
        "id": "$.id",
        "type": "$.type",
        "description": "$.description",
        "interface-name": "$.interface-name",
        "address": "$.address"
      },
      "values": {
        "mtu": "$.mtu",
        "uptime": "$.uptime",
        "tx-queue": "$.tx-queue",
        "state": "$.state"
      }

means that result of show interface will be exported to influx

additionally you could add logging.info(...) here to check what exported

https://github.com/vitaliy-sk/keenetic-grafana-monitoring/blob/f7a08b61f8df03541e042f5eb5517e1d2fb3c6f1/influxdb_writter.py#L18

ilker-aktuna commented 2 weeks ago

actually I just tried the explore mode and I see that the data is there. But the imported panel does not show anything. In fact, if I add the same query from the imported panel to my self created panel, it works. isn't this weird ?