WriteProviderInfoSnapshot Resets info and writes one series per outcome. Both aibridged and aibridgeproxyd use this so the provider_info recording contract stays in one place.
(info *prometheus.GaugeVec, outcomes []ProviderOutcome)
| 87 | // outcome. Both aibridged and aibridgeproxyd use this so the |
| 88 | // provider_info recording contract stays in one place. |
| 89 | func WriteProviderInfoSnapshot(info *prometheus.GaugeVec, outcomes []ProviderOutcome) { |
| 90 | info.Reset() |
| 91 | for _, o := range outcomes { |
| 92 | info.WithLabelValues(o.Name, o.Type, string(o.Status)).Set(1) |
| 93 | } |
| 94 | } |
no test coverage detected