Skip to content

Instantly share code, notes, and snippets.

View darrylanderson's full-sized avatar

Darryl Anderson darrylanderson

View GitHub Profile
@EnableDiscoveryClient
@SpringBootApplication
public class Application
{
public static void main ( final String[] args )
{
SpringApplication.run( Application.class, args );
}
}
package atc.example.config.monitoring;
import org.springframework.boot.actuate.autoconfigure.ExportMetricWriter;
import org.springframework.boot.actuate.metrics.jmx.JmxMetricWriter;
import org.springframework.boot.actuate.metrics.writer.MetricWriter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jmx.export.MBeanExporter;
@Configuration
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<springProperty scope="context" name="springAppName" source="spring.application.name"/>
<!-- Example for logging into a 'logs' folder -->
<property name="LOG_FILE" value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}}/${springAppName}.log"/>​
<!-- You can override this to have a custom pattern -->
buildscript {
repositories {
jcenter()
}
dependencies {
// The gradle-docker plugin we want to use isn't yet in gradle plugin portal, se we
// pull it from jcenter
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}

Keybase proof

I hereby claim:

  • I am darrylanderson on github.
  • I am darrylanderson (https://keybase.io/darrylanderson) on keybase.
  • I have a public key ASCiyx2rq6lBBaWh5wktUyBaDMIq-eAV9AS-_OtEAtbm2Qo

To claim this, I am signing this object: