Class PrometheusLinks
java.lang.Object
io.sbk.logger.impl.PrometheusLinks
Builds and prints copy-paste URLs for the embedded Prometheus scrape endpoint.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA labeled, copy-paste URL for one Prometheus endpoint address. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<PrometheusLinks.Link> localLinks(int port, String context) Returns all locally discoverable URLs for a Prometheus endpoint.static voidlog(String component, MetricsConfig config) Prints all locally discoverable URLs for a running Prometheus endpoint.
-
Method Details
-
log
Prints all locally discoverable URLs for a running Prometheus endpoint.- Parameters:
component- exporter name, such asSBKorSBMconfig- active Prometheus endpoint configuration
-
localLinks
Returns all locally discoverable URLs for a Prometheus endpoint.- Parameters:
port- HTTP portcontext- Prometheus scrape path- Returns:
- deduplicated endpoint links
-