This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.micrometer.core.samples; | |
import io.micrometer.graphite.GraphiteHierarchicalNameMapper; | |
import io.micrometer.statsd.StatsdConfig; | |
import io.micrometer.statsd.StatsdFlavor; | |
import io.micrometer.statsd.StatsdMeterRegistry; | |
public class StatsdPrefixSample { | |
public static void main(String[] args) { | |
StatsdMeterRegistry registry = StatsdMeterRegistry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CounterSample2 { | |
public static void main(String[] args) { | |
Logger logger = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME); | |
logger.setLevel(Level.INFO); | |
MeterRegistry registry = SampleRegistries.datadogStatsd(); | |
Counter counter = registry.counter("counter", "method", "actual"); | |
for(long i = 0;; i++) { | |
counter.increment(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is intended to serve as a master configuration for a Spinnaker | |
# deployment. Customizations to the deployment should be made in another file | |
# named "spinnaker-local.yml". The distribution has a prototype called | |
# "default-spinnaker-local.yml" which calls out the subset of attributes of | |
# general interest. It can be copied into a "spinnaker-local.yml" to start | |
# with. The prototype does not change any of the default values here, it just | |
# surfaces the more critical attributes. | |
global: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"tests","children":[{"name":"clouddriver-google-common","children":[{"name":"com.netflix.spinnaker.clouddriver.googlecommon.deploy.GoogleCommonSafeRetrySpec","children":[{"name":"should retry on certain error codes[0]","size":727},{"name":"should retry on certain error codes[1]","size":0},{"name":"should retry on certain error codes[2]","size":1},{"name":"should retry on certain error codes[3]","size":1},{"name":"should retry on certain error codes[4]","size":1},{"name":"no_retry","size":1094},{"name":"retry_until_success","size":257},{"name":"retry_until_exhausted","size":22},{"name":"retry_until_404_ok","size":10},{"name":"retry_until_404_not_ok","size":7}]}]},{"name":"clouddriver-security","children":[{"name":"com.netflix.spinnaker.clouddriver.security.DefaultAccountCredentialsProviderSpec","children":[{"name":"should call repo to retrieve objects","size":772}]},{"name":"com.netflix.spinnaker.clouddriver.security.DefaultAllowedAccountsValidatorSpec","children":[{"name":"should reject if allowed acc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
MeterRegistry registry() { | |
MeterRegistry registry = new DatadogMeterRegistry(new DatadogConfig() { | |
@Override | |
public String apiKey() { | |
return ""; | |
} | |
@Override | |
public String applicationKey() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
StatsdMeterRegistry statsdMeterRegistry(StatsdConfig config) { | |
return StatsdMeterRegistry.builder(config) | |
.lineSink(line -> { | |
// send this line to AMQP with your broker's client library | |
}) | |
.build(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'java' | |
id 'com.jfrog.artifactory' version '4.9.0' | |
id 'org.springframework.boot' version '2.1.3.RELEASE' | |
id 'io.spring.dependency-management' version '1.0.7.RELEASE' | |
id 'nebula.maven-publish' version '9.5.0' | |
id 'nebula.release' version '9.2.0' | |
id 'nebula.info' version '5.0.0' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
applications: | |
- name: metricsdemo | |
routes: | |
- route: metricsdemo.apps.atherton.cf-app.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"userId": 1, | |
"id": 1, | |
"title": "delectus aut autem", | |
"completed": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is intended to serve as a master configuration for a Spinnaker | |
# deployment. Customizations to the deployment should be made in another file | |
# named "spinnaker-local.yml". The distribution has a prototype called | |
# "default-spinnaker-local.yml" which calls out the subset of attributes of | |
# general interest. It can be copied into a "spinnaker-local.yml" to start | |
# with. The prototype does not change any of the default values here, it just | |
# surfaces the more critical attributes. | |
global: |