Skip to content

Commit

Permalink
Merge branch '1.1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
shakuzen committed Apr 10, 2019
2 parents 3e270c7 + b87acdd commit cd5222d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
import io.micrometer.core.instrument.config.MissingRequiredConfigurationException;
import io.micrometer.core.instrument.step.StepRegistryConfig;

/**
* {@link StepRegistryConfig} for Stackdriver.
*
* @author Jon Schneider
* @since 1.1.0
*/
public interface StackdriverConfig extends StepRegistryConfig {
@Override
default String prefix() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
import static java.util.stream.Collectors.toCollection;
import static java.util.stream.StreamSupport.stream;

/**
* {@link StepMeterRegistry} for Stackdriver.
*
* @author Jon Schneider
* @since 1.1.0
*/
@Incubating(since = "1.1.0")
public class StackdriverMeterRegistry extends StepMeterRegistry {
private static final ThreadFactory DEFAULT_THREAD_FACTORY = new NamedThreadFactory("stackdriver-metrics-publisher");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@

import java.util.regex.Pattern;

/**
* {@link NamingConvention} for Stackdriver.
*
* @author Jon Schneider
* @since 1.1.0
*/
public class StackdriverNamingConvention implements NamingConvention {
private static final int MAX_NAME_LENGTH = 200;
private static final int MAX_TAG_KEY_LENGTH = 100;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
*
* @see <a href="https://cloud.google.com/monitoring/docs/reference/libraries#setting_up_authentication">Google Cloud authentication</a>
* @see <a href="https://cloud.google.com/monitoring/access-control">Google Cloud access control</a>
*
* @author Jon Schneider
* @since 1.1.0
*/
public class ClearCustomMetricDescriptors {
public static void clearCustomMetricDescriptors(MetricServiceSettings settings, String projectId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
* Configuration for exporting metrics to Stackdriver.
*
* @author Jon Schneider
* @since 1.1.0
*/
@Configuration
@AutoConfigureBefore({CompositeMeterRegistryAutoConfiguration.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* {@link ConfigurationProperties} for configuring metrics export to Stackdriver.
*
* @author Jon Schneider
* @since 1.1.0
*/
@ConfigurationProperties(prefix = "management.metrics.export.stackdriver")
public class StackdriverProperties extends StepRegistryProperties {
Expand Down

0 comments on commit cd5222d

Please sign in to comment.