Skip to content

Commit

Permalink
fix for Prometheus: exclude counters which are not "displayed"
Browse files Browse the repository at this point in the history
  • Loading branch information
evernat committed Jan 1, 2019
1 parent e1db7c5 commit c0f34a2
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -348,6 +348,9 @@ private void reportOnTomcatInformations() { // NOPMD
*/
private void reportOnCollector() {
for (final Counter counter : collector.getCounters()) {
if (!counter.isDisplayed()) {
continue;
}
final List<CounterRequest> requests = counter.getRequests();
long hits = 0;
long duration = 0;
Expand Down

0 comments on commit c0f34a2

Please sign in to comment.