类 DefaultOpenTsdbNamingStrategy
- java.lang.Object
- org.springframework.boot.actuate.metrics.opentsdb.DefaultOpenTsdbNamingStrategy
- 所有已实现的接口:
OpenTsdbNamingStrategy
public class DefaultOpenTsdbNamingStrategy extends Object implements OpenTsdbNamingStrategy
A naming strategy that just passes through the metric name, together with tags from a set of static values. Open TSDB requires at least one tag, so tags are always added for you: the "domain" key is added with a value "spring", and the "process" key is added with a value equal to the object hash of "this" (the naming strategy). The "domain" value is a system identifier - it would be common to all processes in the same distributed system. In most cases this will be unique enough to allow aggregation of the underlying metrics in Open TSDB, but normally it is best to provide your own tags, including a prefix and process identifier if you know one (overwriting the default).- 从以下版本开始:
- 1.3.0
字段概要
字段 修饰符和类型 字段 说明 static String
DOMAIN_KEY
The domain key.static String
PROCESS_KEY
The process key.
构造器概要
构造器 构造器 说明 DefaultOpenTsdbNamingStrategy()
字段详细资料
DOMAIN_KEY
public static final String DOMAIN_KEY
The domain key.- 另请参阅:
- 常量字段值
PROCESS_KEY
public static final String PROCESS_KEY
The process key.- 另请参阅:
- 常量字段值
构造器详细资料
DefaultOpenTsdbNamingStrategy
public DefaultOpenTsdbNamingStrategy()
方法详细资料
getName
public OpenTsdbName getName(String name)
从接口复制的说明:OpenTsdbNamingStrategy
Convert the metric name into aOpenTsdbName
.- 指定者:
getName
在接口中OpenTsdbNamingStrategy
- 参数:
name
- the name of the metric- 返回:
- an Open TSDB name