public class SuccessRatioCollector
extends io.prometheus.client.Collector
| Constructor and Description |
|---|
SuccessRatioCollector(BaseCollectorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
List<io.prometheus.client.Collector.MetricFamilySamples> |
collect() |
double |
getFailure(String[] labels) |
double |
getSuccess(String[] labels) |
double |
getTotal(String[] labels) |
void |
incrementFailure(String[] labels) |
void |
incrementSuccess(String[] labels) |
public SuccessRatioCollector(BaseCollectorConfig config)
public void incrementSuccess(String[] labels)
public void incrementFailure(String[] labels)
public double getSuccess(String[] labels)
public double getFailure(String[] labels)
public double getTotal(String[] labels)
public List<io.prometheus.client.Collector.MetricFamilySamples> collect()
collect in class io.prometheus.client.CollectorCopyright © 2019. All rights reserved.