Package sonia.scm.metrics
Interface MonitoringSystem
@ExtensionPoint
public interface MonitoringSystem
Extension point to pass SCM-Manager metrics to a monitoring system.
- Since:
- 2.15.0
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
io.micrometer.core.instrument.MeterRegistry
Returns registry of metrics provider.default Optional<ScrapeTarget>
Returns an optional scrape target.
-
Method Details
-
getName
String getName() -
getRegistry
io.micrometer.core.instrument.MeterRegistry getRegistry()Returns registry of metrics provider. -
getScrapeTarget
Returns an optional scrape target. A scrape target is only needed if the monitoring system pulls the metrics over http. If the monitoring system uses a push based model, this method returns an empty optional.- Returns:
- optional scrape target
-