content: package com.albertoimpl.devoxxbe.containers;
  
  import io.micrometer.core.instrument.MeterRegistry;
  
  import org.springframework.beans.factory.annotation.Value;
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.context.annotation.Bean;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RestController;
  
  @SpringBootApplication
  @RestController
  public class ContainersApplication {
  
  	@Value("${app.name}")
  	private String applicationName;
  
  	@RequestMapping("/")
  	public String home() {
  		return applicationName;
  	}
  
  	@Bean
  	MeterRegistryCustomizer<MeterRegistry> metricsCommonTags() {
  		return registry -> registry.config().commonTags("application", "myapp-micrometer-tag");
  	}
  
  	public static void main(String[] args) {
  		SpringApplication.run(ContainersApplication.class, args);
  	}
  
  }
  