opsdis / aci-exporter

A Cisco ACI Prometheus exporter written in Go
https://www.opsdis.com
GNU General Public License v3.0
47 stars 16 forks source link

Continue Discovery even if not all fabric are working #67

Closed camrossi closed 4 months ago

camrossi commented 4 months ago

Currently if one fabric fails discovery no Service Discovery Data is returned at all.

This fix continues the SD process and returns data for the fabric that works. I am not sure however when this part of the code is called: https://github.com/opsdis/aci-exporter/blob/issue_58_discovery/discovery.go#L52

For now my fix only affects https://github.com/opsdis/aci-exporter/blob/issue_58_discovery/discovery.go#L67 but let me know if we need to do more changes.