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

Port Statistics Dashboard Not Working #4229

Open
jhughesbiot opened this issue Dec 30, 2022 · 4 comments
Open

Port Statistics Dashboard Not Working #4229

jhughesbiot opened this issue Dec 30, 2022 · 4 comments

Comments

@jhughesbiot
Copy link

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?

@courtland
Copy link

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.

@jhughesbiot
Copy link
Author

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"

@courtland
Copy link

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.

@flogriesser
Copy link
Contributor

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)

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

3 participants