Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getVmStats :: IO VmStatReport
- updateVmStat :: VmStatGauges -> Bool -> IO ()
- data VmStatReport = VmStatReport {
- vmstat_total_memory_mb :: !Word64
- vmstat_used_memory_mb :: !Word64
- vmstat_active_memory_mb :: !Word64
- vmstat_inactive_memory_mb :: !Word64
- vmstat_free_memory_mb :: !Word64
- vmstat_buffer_memory_mb :: !Word64
- vmstat_swap_cache_mb :: !Word64
- vmstat_total_swap_mb :: !Word64
- vmstat_used_swap_mb :: !Word64
- vmstat_free_swap_mb :: !Word64
- emptyVmStatReport :: VmStatReport
- data VmStatGauges = VmStatGauges {
- vmstat_total_memory_mb_g :: !Gauge
- vmstat_used_memory_mb_g :: !Gauge
- vmstat_active_memory_mb_g :: !Gauge
- vmstat_inactive_memory_mb_g :: !Gauge
- vmstat_free_memory_mb_g :: !Gauge
- vmstat_buffer_memory_mb_g :: !Gauge
- vmstat_swap_cache_mb_g :: !Gauge
- vmstat_total_swap_mb_g :: !Gauge
- vmstat_used_swap_mb_g :: !Gauge
- vmstat_free_swap_mb_g :: !Gauge
- systemVirtualMemory :: MonadIO m => RidleyOptions -> RegistryT m RidleyMetricHandler
Documentation
updateVmStat :: VmStatGauges -> Bool -> IO () Source #
data VmStatReport Source #
Instances
Eq VmStatReport Source # | |
Defined in System.Metrics.Prometheus.Ridley.Metrics.VirtualMemory (==) :: VmStatReport -> VmStatReport -> Bool # (/=) :: VmStatReport -> VmStatReport -> Bool # | |
Show VmStatReport Source # | |
Defined in System.Metrics.Prometheus.Ridley.Metrics.VirtualMemory showsPrec :: Int -> VmStatReport -> ShowS # show :: VmStatReport -> String # showList :: [VmStatReport] -> ShowS # |
data VmStatGauges Source #
systemVirtualMemory :: MonadIO m => RidleyOptions -> RegistryT m RidleyMetricHandler Source #
Returns the virtual memory total and free as sampled from vmstat
.