private void initializeFilterSets() {

    String commaSeparatedValues = configuration.getProperty(dbMonitorPrefix + "query.keywords.include");
    if (StringUtils.isNotEmpty((commaSeparatedValues))) {
      includedMetricKeywords.addAll(Arrays.asList(commaSeparatedValues.split(",")));
    }

    commaSeparatedValues = configuration.getProperty(dbMonitorPrefix + "entities");
    if (StringUtils.isNotEmpty((commaSeparatedValues))) {
      String[] entityPatterns = (commaSeparatedValues.split(","));
      for (String pattern : entityPatterns) {
        acceptedEntityPatterns.add(Pattern.compile(pattern));
      }
    }
  }
Initialize filter sets (Entities and keywords) to know which metrics to track vs drop.
ambari-server/src/main/java/org/apache/ambari/server/metrics/system/impl/DatabaseMetricsSource.java