faucet icon indicating copy to clipboard operation
faucet copied to clipboard

Port Statistics Dashboard Not Working

Open jhughesbiot opened this issue 2 years ago • 4 comments

The port statistics dashboard appears to be broken. I have cloned a clean copy of this repo, changed the faucet.yml config to match my setup, configured grafana to talk to the prometheus data service and setup all dashboards accordingly. The other two dashboards show information as expected but the port statistics do not show any datapath names. I can manually enter them and it resolves the port list but no data is ever resolved.

I am running this via docker-compose so all the versions there are the versions being used. Is this a broken dashboard? Prometheus version issue? Some other compatibility issue with the dashboard itself?

jhughesbiot avatar Dec 30 '22 16:12 jhughesbiot

I tried the latest port stats dashboard from this repo and am not having any issues, however it could just be something different with my setup.

If you query of_port_rx_bytes or a similar metric via Grafana Explore does it show any data?

Is gauge running and configured correctly? I think it should be with the default compose config, but that's what populates the port metrics.

I'm not a maintainer, so perhaps someone else can chime in, but it may be helpful to see your modified faucet and gauge config files.

courtland avatar Jan 03 '23 16:01 courtland

Could you elaborate on what the test using the grafana explorer looks like? Not really sure what I would have to do to test this.

I'm using the docker-compose file from this repository that sets up all services so I see gauge running in docker. The gauge.yaml file is the one from the /etc/ folder in this repository. https://github.com/faucetsdn/faucet/blob/master/etc/faucet/gauge.yaml

I can also see that the faucet and gauge controller are both connected to the ovs bridge so not really sure what the issue is.

709f180d-9301-4da3-b93c-4e8f93e94763
    Bridge ovs-sw
        Controller "tcp:192.168.10.2:6654"
            is_connected: true
        Controller "tcp:192.168.10.2:6653"
            is_connected: true
        Port ens10
            Interface ens10
        Port dhcp-eth1
            Interface dhcp-eth1
        Port ovs-sw
            Interface ovs-sw
                type: internal
    ovs_version: "2.13.8"

jhughesbiot avatar Jan 06 '23 17:01 jhughesbiot

Could you elaborate on what the test using the grafana explorer looks like? Not really sure what I would have to do to test this.

In your Prometheus database you should have an of_port_rx_bytes metric, among others populated by Gauge. You can check this via the Prometheus or Grafana UIs. IMO Grafana Explore is easier to look at metrics. If the metrics don't exist then the problem lies outside the dashboard.

courtland avatar Jan 11 '23 20:01 courtland

I had the issue that after a fresh install the of_port_rx_bytes was missing in grafana. Somehow a reboot fixed the issue. (Seen on debian 12 and ubuntu 22.04)

flogriesser avatar Jan 14 '24 06:01 flogriesser