I see multiple messages of Gauges coming in my JanusGraph logs, so want to check uses of these and how can I stop those.

> 11/28/23, 5:38:11 AM 
=========================================================== 
org.apache.tinkerpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.average-load-penalty
  value = 8.184896446666666E8
org.apache.tinkerpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.estimated-size
  value = 3
org.apache.tinkerpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.eviction-count
  value = 0
org.apache.tinkerpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.eviction-weight
  value = 0
org.apache.tierpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.hit-count
  value = 0
org.apache.tinkerpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.hit-rate
  value = 0.0
org.apache.tinkerpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.load-count
  value = 3        

Want to check, how it can be achieved.

1

There are 1 best solutions below

0
On

You can control all of the metrics reporting options in the server yaml file under metrics. Essentially:

metrics: {
  consoleReporter: {enabled: false, interval: 180000},
  csvReporter: {enabled: false, interval: 180000, fileName: /tmp/gremlin-server-metrics.csv},
  jmxReporter: {enabled: false},
  slf4jReporter: {enabled: false, interval: 180000}}
}

In the example above I just set enabled to false for all of them, but you could obviously be more selective in how you choose to do that.