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 com.dealer.metrics.aspects.tracing.config; | |
import com.dealer.metrics.aspects.tracing.gc.GcEventStore; | |
import com.dealer.metrics.aspects.tracing.gc.GcMonitor; | |
import com.dealer.metrics.aspects.tracing.gc.GcEventTracingAspect; | |
import org.aspectj.lang.Aspects; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.Import; |
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
import java.util.HashMap; | |
import java.util.Map; | |
public class Cluster { | |
String app; | |
String region; | |
String env; | |
Map<String, Metrics> connectionsFrom = new HashMap<>(); | |
} |
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 RpcNameAspect { | |
@Pointcut("execution(* com.dealer.metrics.aspects.tracing.context.TracingContext+.execute(..)) && this(tracingContext)") | |
public void tracingContext(TracingContext tracingContext) { | |
} | |
@After("tracingContext(tracingContext)") | |
public void nameRemoteCall(TracingContext tracingContext) throws Throwable { | |
if (tracingContext.hasTracingMetadata("service_name")) { | |
tracingContext.setSpanName(String.format( | |
"%s.%s", |
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
version: '2' | |
services: | |
cassandra: | |
image: cassandra:2.2 | |
network_mode: host | |
zookeeper: | |
image: mbabineau/zookeeper-exhibitor:latest | |
network_mode: host | |
environment: | |
HOSTNAME: "${HOSTNAME}" |
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
Some "config" scripts were found in your path, but not in system or | |
Homebrew directories. | |
`./configure` scripts often look for *-config scripts to determine if | |
software packages are installed, and what additional flags to use when | |
compiling and linking. | |
Having additional scripts in your path can confuse software installed via | |
Homebrew if the config script overrides a system or Homebrew provided | |
script of the same name. |
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
#!/bin/bash | |
#------------------------------------------------------------------------------ | |
# SETTINGS | |
#------------------------------------------------------------------------------ | |
MYSQL_ROOT_PASSWORD=password | |
MYSQL_GITORIOUS_PASSWORD=password | |
GITORIOUS_HOST=hostname | |
SYSADMIN=sysadmin |
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
git='\[\e[0;32m\]$(__git_ps1 "(%s)")\[\e[m\]' | |
export PS1=${git}${PS1} |