Package com.persequor.extension.metrics
Interface IProxiedMetric
public interface IProxiedMetric
Implement this class to represent a metric sent to Saga from another system
following the OpenMetrics standard. This purpose is to receive it as is,
save it, and then show it from the MetricsRestController. This can be used to save
single metrics as well as metric families as needed.
-
Method Summary
Modifier and TypeMethodDescriptionGets the OpenMetrics metric received from the external systemName alias to identify the source of the metric.
-
Method Details
-
getSourceAlias
String getSourceAlias()Name alias to identify the source of the metric. Helps scrapers of Saga see what external system this metric belongs to.- Returns:
- Name and/or alias of the external system this metric belongs to.
-
getMetric
String getMetric()Gets the OpenMetrics metric received from the external system- Returns:
- Metric received from the external system
-