@ApplicationScoped public class MetricService extends Object
A metric is created each time when an ArchiveEvent is fired. The service exports metrics in prometheus text format.
The service provides counter metrics. A counter will always increase. To extract the values in prometheus use the rate function - Example:
rate(http_requests_total[5m])
The service expects MP Metrics v2.0. A warning is logged if corresponding version is missing.
| Modifier and Type | Field and Description |
|---|---|
static String |
METRIC_DOCUMENTS |
| Constructor and Description |
|---|
MetricService() |
| Modifier and Type | Method and Description |
|---|---|
void |
onArchiveEvent(ArchiveEvent archiveEvent)
ProcessingEvent listener to generate a metric.
|
public static final String METRIC_DOCUMENTS
public void onArchiveEvent(@Observes
ArchiveEvent archiveEvent)
throws org.imixs.workflow.exceptions.AccessDeniedException
archiveEvent - org.imixs.workflow.exceptions.AccessDeniedExceptionCopyright © 2016–2020 Imixs Software Solutions GmbH. All rights reserved.