@ApplicationScoped public class MetricAppBean extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NO_TAG_COUNTER |
static String |
NO_TAG_GAUGE |
static String |
NO_TAG_HISTOGRAM |
static String |
NO_TAG_TIMER |
static String |
SHARED_METRIC_NAME |
static String |
TAGGED_COUNTER |
static String |
TAGGED_GAUGE |
static String |
TAGGED_HISTOGRAM |
static String |
TAGGED_TIMER |
Constructor and Description |
---|
MetricAppBean() |
Modifier and Type | Method and Description |
---|---|
void |
countMe() |
void |
countMeA() |
long |
countMeB() |
void |
countMeMetricNameScopeA() |
void |
createPromMetrics()
We create a few metrics with names that are outside the characters that OpenMetrics allows which is [a-zA-Z0-9_]
|
void |
gaugeMe() |
long |
gaugeMeA() |
long |
gaugeMeB() |
long |
gaugeMeMetricNameScopeC() |
long |
gaugeMeTagged() |
long |
gaugeMeTaggedOne() |
long |
gaugeMeTaggedTwo() |
void |
histogramMe() |
void |
timeMe() |
void |
timeMeA() |
void |
timeMeMetricNameScopeB() |
public static final String NO_TAG_COUNTER
public static final String TAGGED_COUNTER
public static final String NO_TAG_HISTOGRAM
public static final String TAGGED_HISTOGRAM
public static final String NO_TAG_TIMER
public static final String TAGGED_TIMER
public static final String NO_TAG_GAUGE
public static final String TAGGED_GAUGE
public static final String SHARED_METRIC_NAME
@Counted(name="sharedMetricName", absolute=true, scope="customScopeA") public void countMeMetricNameScopeA()
@Timed(name="sharedMetricName", absolute=true, scope="customScopeB") public void timeMeMetricNameScopeB()
public long gaugeMeMetricNameScopeC()
public long gaugeMeTagged()
public long gaugeMeTaggedOne()
public long gaugeMeTaggedTwo()
public void countMe()
@Counted(name="metricTest.test1.countMeA", absolute=true, description="count-me-a-description") public void countMeA()
@Counted(name="metricTest.test1.countMeB", absolute=true, unit="jellybean") public long countMeB()
public void gaugeMe()
public long gaugeMeA()
public long gaugeMeB()
public void histogramMe()
public void timeMe()
@Timed public void timeMeA()
public void createPromMetrics()
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.