Java Code Examples for io.micrometer.core.instrument.config.NamingConvention#dot()
The following examples show how to use
io.micrometer.core.instrument.config.NamingConvention#dot() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MicrometerCollectorTest.java From micrometer with Apache License 2.0 | 6 votes |
@Test void sameValuesDifferentOrder() { Meter.Id id = Metrics.counter("my.counter").getId(); MicrometerCollector collector = new MicrometerCollector(id, NamingConvention.dot, PrometheusConfig.DEFAULT); Collector.MetricFamilySamples.Sample sample = new Collector.MetricFamilySamples.Sample("my_counter", asList("k", "k2"), asList("v1", "v2"), 1.0); Collector.MetricFamilySamples.Sample sample2 = new Collector.MetricFamilySamples.Sample("my_counter", asList("k", "k2"), asList("v2", "v1"), 1.0); collector.add(asList("v1", "v2"), (conventionName, tagKeys) -> Stream.of(new MicrometerCollector.Family(Collector.Type.COUNTER, "my_counter", sample))); collector.add(asList("v2", "v1"), (conventionName, tagKeys) -> Stream.of(new MicrometerCollector.Family(Collector.Type.COUNTER, "my_counter", sample2))); assertThat(collector.collect().get(0).samples).hasSize(2); }
Example 2
Source File: StatsdMeterRegistry.java From micrometer with Apache License 2.0 | 5 votes |
private static NamingConvention namingConventionFromFlavor(StatsdFlavor flavor) { switch (flavor) { case DATADOG: case SYSDIG: return NamingConvention.dot; case TELEGRAF: return NamingConvention.snakeCase; default: return NamingConvention.camelCase; } }
Example 3
Source File: WavefrontNamingConvention.java From micrometer with Apache License 2.0 | 4 votes |
public WavefrontNamingConvention(@Nullable String namePrefix) { this(namePrefix, NamingConvention.dot); }
Example 4
Source File: AppOpticsNamingConvention.java From micrometer with Apache License 2.0 | 4 votes |
public AppOpticsNamingConvention() { this(NamingConvention.dot); }
Example 5
Source File: DynatraceNamingConvention.java From micrometer with Apache License 2.0 | 4 votes |
public DynatraceNamingConvention() { this(NamingConvention.dot); }
Example 6
Source File: SignalFxNamingConvention.java From micrometer with Apache License 2.0 | 4 votes |
public SignalFxNamingConvention() { this(NamingConvention.dot); }
Example 7
Source File: DatadogNamingConvention.java From micrometer with Apache License 2.0 | 4 votes |
public DatadogNamingConvention() { this(NamingConvention.dot); }
Example 8
Source File: GraphiteDimensionalNamingConvention.java From micrometer with Apache License 2.0 | 4 votes |
public GraphiteDimensionalNamingConvention() { this(NamingConvention.dot); }