Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Trim default metrics (#1086)
Browse files Browse the repository at this point in the history
Testing has shown that RocksDB and BigQueue metrics has a negative
impact on performance under load.  Disable them by default.
  • Loading branch information
shemnon committed Mar 12, 2019
1 parent 1c41569 commit 628bc6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -27,8 +27,9 @@ public enum MetricCategory {
RPC("rpc"),
SYNCHRONIZER("synchronizer");

// Why not BIG_QUEUE and ROCKSDB? They hurt performance under load.
public static final Set<MetricCategory> DEFAULT_METRIC_CATEGORIES =
EnumSet.allOf(MetricCategory.class);
EnumSet.complementOf(EnumSet.of(BIG_QUEUE, ROCKSDB));

private final String name;
private final boolean pantheonSpecific;
Expand Down
Expand Up @@ -12,12 +12,13 @@
*/
package tech.pegasys.pantheon.metrics.prometheus;

import static tech.pegasys.pantheon.metrics.MetricCategory.DEFAULT_METRIC_CATEGORIES;

import tech.pegasys.pantheon.metrics.MetricCategory;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.EnumSet;
import java.util.Objects;
import java.util.Set;

Expand Down Expand Up @@ -46,7 +47,7 @@ public static MetricsConfiguration createDefault() {
metricsConfiguration.setEnabled(false);
metricsConfiguration.setPort(DEFAULT_METRICS_PORT);
metricsConfiguration.setHost(DEFAULT_METRICS_HOST);
metricsConfiguration.setMetricCategories(EnumSet.allOf(MetricCategory.class));
metricsConfiguration.setMetricCategories(DEFAULT_METRIC_CATEGORIES);
metricsConfiguration.setPushEnabled(false);
metricsConfiguration.setPushPort(DEFAULT_METRICS_PUSH_PORT);
metricsConfiguration.setPushHost(DEFAULT_METRICS_PUSH_HOST);
Expand Down

0 comments on commit 628bc6c

Please sign in to comment.