docs: public static void register(MetricsRegistry metricsRegistry) {
          checkNotNull(metricsRegistry, "metricsRegistry");
  
          OperatingSystemMXBean mxBean = ManagementFactory.getOperatingSystemMXBean();
  
          registerMethod(metricsRegistry, mxBean, "getCommittedVirtualMemorySize", "os.committedVirtualMemorySize");
          registerMethod(metricsRegistry, mxBean, "getFreePhysicalMemorySize", "os.freePhysicalMemorySize");
          registerMethod(metricsRegistry, mxBean, "getFreeSwapSpaceSize", "os.freeSwapSpaceSize");
          registerMethod(metricsRegistry, mxBean, "getProcessCpuTime", "os.processCpuTime");
          registerMethod(metricsRegistry, mxBean, "getTotalPhysicalMemorySize", "os.totalPhysicalMemorySize");
          registerMethod(metricsRegistry, mxBean, "getTotalSwapSpaceSize", "os.totalSwapSpaceSize");
          registerMethod(metricsRegistry, mxBean, "getMaxFileDescriptorCount", "os.maxFileDescriptorCount");
          registerMethod(metricsRegistry, mxBean, "getOpenFileDescriptorCount", "os.openFileDescriptorCount");
  
          // value will be between 0.0 and 1.0 or a negative value, if not available
          registerMethod(metricsRegistry, mxBean, "getProcessCpuLoad", "os.processCpuLoad", PERCENTAGE_MULTIPLIER);
  
          // value will be between 0.0 and 1.0 or a negative value, if not available
          registerMethod(metricsRegistry, mxBean, "getSystemCpuLoad", "os.systemCpuLoad", PERCENTAGE_MULTIPLIER);
  
          metricsRegistry.register(mxBean, "os.systemLoadAverage", MANDATORY,
                  new DoubleProbeFunction<OperatingSystemMXBean>() {
                      @Override
                      public double get(OperatingSystemMXBean bean) {
                          return bean.getSystemLoadAverage();
                      }
                  }
          );
      }