RecordReloadAttempt stamps the attempt-time gauge at the start of a reload. A reload that hangs mid-flight is detected by watching the gap between this gauge and ProvidersLastReloadSuccessTimestampSeconds.
()
| 65 | // reload. A reload that hangs mid-flight is detected by watching the |
| 66 | // gap between this gauge and ProvidersLastReloadSuccessTimestampSeconds. |
| 67 | func (m *Metrics) RecordReloadAttempt() { |
| 68 | if m == nil { |
| 69 | return |
| 70 | } |
| 71 | m.ProvidersLastReloadTimestampSeconds.Set(float64(time.Now().Unix())) |
| 72 | } |
| 73 | |
| 74 | // RecordReloadSuccess rewrites the ProviderInfo GaugeVec from the |
| 75 | // outcomes and stamps the success-time gauge. Reset clears series for |