NS8 at a glance network / proxy (Treafik info / graphs)

Maybe there is a reason, and there might be, so I can only ask. Is there a reason why the information and graphs displayed in Traefik dashboard are not displayed in NS8 from Traefik?

I am not saying displaying Traefik dashboard. I am more interested in getting the info displayed like it is done in Traefik daskboard, but in a structured at a glance way in NS8. It can be shown in NS8 settings network area of NS8 from Traefik.

Could it be possible to add more info like the Traefik dashboard gives you at a glance with in NS8 daskboard under settings?

Thoughts?

On a side note - I would not mind a little more color added to NS8 dashboard or the capacity to customize or adjust things to add color, in however that might be done.

I like the idea.

I’m not sure why this is not exposed, probably because it does not seem so useful.
Anyway, I think it could be exposed.
Try to hack a bit on traefik module to enable it, and then create a route to access from port 443 :wink:

2 Likes

I found that the example from the traefik docs works to access the dashboard.

Create the file dashboard.yml

runagent -m traefik1 nano configs/dashboard.yml

with following content: (adapt the hostname)

http:
  routers:
    dashboard:
      rule: Host(`traefik.domain.tld`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
      service: api@internal
      middlewares:
        - auth
  middlewares:
    auth:
      basicAuth:
        users:
          - "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"

Browse to http://traefik.domain.tld (https isn’t working in this example) and login using test:test.

To change credentials you could use htpasswd:

dnf install httpd-tools

Get hash for password secret:

[root@ns8rockytest ~]# echo secret | htpasswd -i -n admin
admin:$apr1$jTW9aX9J$vZnqL0c1tJlg0.x4/naVM0

Use the string instead of the preconfigured test user in dashboard.yml.

3 Likes

Thanks for checking it out.

Thanks Sir! Ok. So at least now we have that and know it can work in the dashboad form. Do you know if this causes any issues with existing NS8 and Treafik at all?

Obviously this can come up externally in its own browser tab, but is there a way to allow the link or a pp lauch area. It would be nice to maybe add a menu selection in the NS8 menu to allow third party links to be clicked that would go to external items. Example: Treafik Dashboard, Unifi UDM pro link to login, OpenSense link to login or the like. Just a thought.

Just an idea.

1 Like

I didn’t test much but there were no issues and the api is enabled by default. We’re just adding the route to make it accessible so I don’t think it causes issues.

I’m afraid there’s no simple way but customizing the cluster-admin to allow links could be a nice Feature
On the other hand, what about using some NS8 dashboard app like homarr or homepage? They already provide integrations for third party apps/links.
This way it’s also separated from the cluster-admin.

2 Likes