Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blocks:server:advanced_server_configuration:metrics [2026-02-20 11:52] – Added some more memory metrics adminblocks:server:advanced_server_configuration:metrics [2026-03-03 06:50] (current) – [Metrics] admin
Line 9: Line 9:
 <code> <code>
 metrics:  metrics: 
- frequency: 1 minute +  frequency: 1 minute 
- reporters: +  reporters: 
-   - type: log +    - type: log 
-     logger: metrics +      logger: metrics 
-     includes: +      includes: 
-       - "io.dropwizard.jetty.MutableServletContextHandler.get-requests" +        - "io.dropwizard.jetty.MutableServletContextHandler.get-requests" 
-       - "io.dropwizard.jetty.MutableServletContextHandler.post-requests" +        - org.eclipse.jetty.util.thread.QueuedThreadPool.dw.jobs 
-       - org.eclipse.jetty.util.thread.QueuedThreadPool.dw.jobs +        - jvm.memory.total.used 
-       - jvm.memory.total.used +        - jvm.memory.heap.max 
-       - jvm.memory.heap.max +        - jvm.memory.heap.usage 
-       - jvm.memory.heap.usage +        - pixi.cortex.backlog.now 
-       - pixi.cortex.backlog.now +        - pixi.cortex.backlog.peak 
-       - pixi.cortex.backlog.peak +        - pixi.cortex.synapse 
-       - pixi.cortex.synapse +        - pixi.cortex.receptors 
-       - pixi.cortex.receptors +        - pixi.cortex.thalamus.properties 
-       - pixi.cortex.thalamus.properties +        - pixi.cortex.thalamus.streams 
-       - pixi.cortex.thalamus.streams +        - pixi.cortex.sharedSingleExecutorQueue 
-       - pixi.cortex.sharedSingleExecutorQueue +        - pixi.cortex.sharedMultiExecutorQueue 
-       - pixi.cortex.sharedMultiExecutorQueue +        - pixi.cortex.MobileSpot.connected.Mob1 #See below for Visitor spot logging
-       - pixi.cortex.MobileSpot.connected.Mob1+
 </code> </code>
  
-Furthermore, you must enable the metrics logger under logging in the config file:+:!: **NOTE**: The example above logs connections to a Visitor spot named "Mob1". If you have multiple Visitor spots, or if your Visitor spot (if any), is named differently, replace "Mob1" above with the full dot-separated path to your Visitor spot, or list multiple Visitor spots as needed. 
 +  
 +Furthermore, you must also enable the //metrics// logger under //loggers// in the config file. If you already have a //logging// section in your configuration file, merely add the //metrics// line under //loggers// as shown below, and make sure to indent the //metrics// line as shown, using spaces only – not tabs.
  
 <code> <code>
 logging: logging:
- level: WARN +  level: WARN 
- loggers: +  loggers: 
-   metrics: INFO   # To actually log metrics data+    metrics: INFO   # To actually log metrics data
 </code> </code>
  
Line 49: Line 50:
   * **pixi.cortex.sharedSingleExecutorQueue** Tasks waiting for the sharedSingleExecutor   * **pixi.cortex.sharedSingleExecutorQueue** Tasks waiting for the sharedSingleExecutor
   * **pixi.cortex.sharedMultiExecutorQueue** Tasks waiting for the sharedMultiExecutor   * **pixi.cortex.sharedMultiExecutorQueue** Tasks waiting for the sharedMultiExecutor
-  * **pixi.cortex.MobileSpot.connected.Mob1** Number of connected Visitor spots, sith the last segment(s) (here "Mob1")being the dot-separated Spot path.+  * **pixi.cortex.MobileSpot.connected.Mob1** Number of connected Visitor spots, with the last segment(s) (here "Mob1") being the dot-separated Spot path.
  
 In addition to those, you can also use any metric provided by Blocks' infrastructure, such as those listed below. Refer to the respective infrastructure component for details. In addition to those, you can also use any metric provided by Blocks' infrastructure, such as those listed below. Refer to the respective infrastructure component for details.