Unregister removes the provider metrics from the registerer.
()
| 53 | |
| 54 | // Unregister removes the provider metrics from the registerer. |
| 55 | func (m *Metrics) Unregister() { |
| 56 | if m == nil { |
| 57 | return |
| 58 | } |
| 59 | m.registerer.Unregister(m.ProviderInfo) |
| 60 | m.registerer.Unregister(m.ProvidersLastReloadTimestampSeconds) |
| 61 | m.registerer.Unregister(m.ProvidersLastReloadSuccessTimestampSeconds) |
| 62 | } |
| 63 | |
| 64 | // RecordReloadAttempt stamps the attempt-time gauge at the start of a |
| 65 | // reload. A reload that hangs mid-flight is detected by watching the |
no outgoing calls