public class SpectatorMetricReader extends Object implements org.springframework.boot.actuate.metrics.reader.MetricReader
name(k1=v1,k2=v2)
where name
is the metric name and the
contents of the parentheses are tag key-value pairs.Constructor and Description |
---|
SpectatorMetricReader(com.netflix.spectator.api.Registry registry) |
Modifier and Type | Method and Description |
---|---|
protected static String |
asHierarchicalName(com.netflix.spectator.api.Id id) |
long |
count() |
Iterable<org.springframework.boot.actuate.metrics.Metric<?>> |
findAll() |
org.springframework.boot.actuate.metrics.Metric<?> |
findOne(String name) |
public SpectatorMetricReader(com.netflix.spectator.api.Registry registry)
protected static String asHierarchicalName(com.netflix.spectator.api.Id id)
public org.springframework.boot.actuate.metrics.Metric<?> findOne(String name)
findOne
in interface org.springframework.boot.actuate.metrics.reader.MetricReader
public Iterable<org.springframework.boot.actuate.metrics.Metric<?>> findAll()
findAll
in interface org.springframework.boot.actuate.metrics.reader.MetricReader
public long count()
count
in interface org.springframework.boot.actuate.metrics.reader.MetricReader
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.