@ApplicationScoped public class MetricAppBean extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TAGGED_CONCURRENTGAUGE |
static String |
TAGGED_COUNTER |
static String |
TAGGED_GAUGE |
static String |
TAGGED_HISTOGRAM |
static String |
TAGGED_METER |
static String |
TAGGED_SIMPLETIMER |
static String |
TAGGED_TIMER |
Constructor and Description |
---|
MetricAppBean() |
Modifier and Type | Method and Description |
---|---|
void |
concGaugeMeA() |
void |
concurrentGaugeMeTaggedOne() |
void |
concurrentGaugeMeTaggedTwo() |
void |
countMe() |
void |
countMeA() |
long |
countMeB() |
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 |
gaugeMeTagged() |
long |
gaugeMeTaggedOne() |
long |
gaugeMeTaggedTwo() |
void |
histogramMe() |
void |
meterMe() |
void |
meterMeA() |
void |
simpleTimeMe() |
void |
simpleTimeMeA() |
void |
timeMe() |
void |
timeMeA() |
public static final String TAGGED_COUNTER
public static final String TAGGED_HISTOGRAM
public static final String TAGGED_TIMER
public static final String TAGGED_SIMPLETIMER
public static final String TAGGED_METER
public static final String TAGGED_GAUGE
public static final String TAGGED_CONCURRENTGAUGE
public long gaugeMeTagged()
public long gaugeMeTaggedOne()
public long gaugeMeTaggedTwo()
@ConcurrentGauge(absolute=true) public void concGaugeMeA()
@ConcurrentGauge(name="taggedConcurrentGauge", absolute=true, tags="number=one") public void concurrentGaugeMeTaggedOne()
@ConcurrentGauge(name="taggedConcurrentGauge", absolute=true, tags="number=two") public void concurrentGaugeMeTaggedTwo()
public void countMe()
@Counted(name="metricTest.test1.countMeA", absolute=true, description="count-me-a-description", displayName="count-me-a-display-name") 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 meterMe()
@Metered(absolute=true, description="meter-me-a-description", displayName="meter-me-a-display-name") public void meterMeA()
public void timeMe()
@Timed public void timeMeA()
public void simpleTimeMe()
@SimplyTimed public void simpleTimeMeA()
public void createPromMetrics()
Copyright © 2017 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.