Jan Høydahl created SOLR-18159:
----------------------------------

             Summary: Add back some system memory metrics
                 Key: SOLR-18159
                 URL: https://issues.apache.org/jira/browse/SOLR-18159
             Project: Solr
          Issue Type: Improvement
          Components: metrics
            Reporter: Jan Høydahl


When moving from micrometer to otel for metrics, we lost metrics for system 
memory. It is a useful metric and we should re-introduce total and free values.

Since java do not (yet) have a full public api for this, we can use
com.sun.management.OperatingSystemMXBean which is supported on the most used 
JVMs. On unsupported JVMs the metric should not be reported.
 
Naming suggestion: jvm_system_memory_total_bytes and 
jvm_system_memory_free_bytes



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to