fortigate_exporter icon indicating copy to clipboard operation
fortigate_exporter copied to clipboard

Switch-Controller Metric Addition

Open Shahab5737 opened this issue 3 years ago • 4 comments

Hi,

Currently, switch-controller metrics are not yet added, can you please add the following metrics.

/api/v2/monitor/switch-controller/managed-switch /api/v2/monitor/switch-controller/managed-switch/status /api/v2/monitor/switch-controller/managed-switch/port-stats /api/v2/monitor/switch-controller/managed-switch/update /api/v2/monitor/switch-controller/managed-switch/restart /api/v2/monitor/switch-controller/managed-switch/poe-reset /api/v2/monitor/switch-controller/managed-switch/faceplate-xml /api/v2/monitor/switch-controller/managed-switch/factory-reset /api/v2/monitor/switch-controller/managed-switch/dhcp-snooping /api/v2/monitor/switch-controller/managed-switch/transceivers /api/v2/monitor/switch-controller/managed-switch/health /api/v2/monitor/switch-controller/managed-switch/cable-status /api/v2/monitor/switch-controller/managed-switch/models

/api/v2/monitor/switch-controller/fsw-firmware /api/v2/monitor/switch-controller/fsw-firmware/download /api/v2/monitor/switch-controller/fsw-firmware/push /api/v2/monitor/switch-controller/fsw-firmware/upload

Shahab5737 avatar Jun 03 '22 15:06 Shahab5737

Can anyone help me on this, it was mentioned that if we need extra metrics then just open an issue.

I have opened a issue last week but there is no response from anyone.

Shahab5737 avatar Jun 10 '22 13:06 Shahab5737

Hi @Shahab5737 - well, opening an issue is certainly the first step to get the metrics in the exporter. Next step is waiting for somebody to implement it. Nobody is getting paid to work on this software, so that step can take everything from a few days to never. Best is of course to implement it yourself and submit a PR for it to be added for everyone else to use

bluecmd avatar Jun 10 '22 14:06 bluecmd

Hi, had a brief look at the port_stats. You can have a look/test. Any feedback appreciated. https://github.com/Jurka007/fortigate_exporter/tree/fortiswitch_port_stats

Jurka007 avatar Jan 26 '23 12:01 Jurka007

Hi, had a brief look at the port_stats. You can have a look/test. Any feedback appreciated. https://github.com/Jurka007/fortigate_exporter/tree/fortiswitch_port_stats

Great! Thanks for sharing this, is this submited for PR? It would be great for all folks out there looking for this!

darks00ul avatar Mar 21 '23 02:03 darks00ul