Skip to content

Commit

Permalink
Fix tags to include everything now
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Mar 19, 2019
1 parent 08fe9a7 commit e17c463
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ private static void runSimulator(final AppRuntime runtime) throws InterruptedExc

final Tags commonTags = Tags.of(
Tag.of("protocol", "http"),
Tag.of("tenant", Tenant.TENANT)
Tag.of("tenant", Tenant.TENANT),
config.getType().asTag()
);
final Statistics stats = new Statistics(registry, commonTags.and(config.getType().asTag()));
final Statistics stats = new Statistics(registry, commonTags);

final ScheduledExecutorService statsExecutor = Executors.newSingleThreadScheduledExecutor();
// statsExecutor.scheduleAtFixedRate(Application::dumpStats, 1, 1, TimeUnit.SECONDS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ private static void run(final AppRuntime runtime) throws InterruptedException {

final Tags commonTags = Tags.of(
of("tenant", Tenant.TENANT),
of("protocol", "mqtt"));
of("protocol", "mqtt"),
config.getType().asTag());

final MeterRegistry metrics = runtime.getRegistry();
final AtomicLong connected = metrics.gauge("connections", commonTags, new AtomicLong());
final Statistics stats = new Statistics(metrics, commonTags.and(config.getType().asTag()));
final Statistics stats = new Statistics(metrics, commonTags);

try {

Expand Down

0 comments on commit e17c463

Please sign in to comment.