Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
System.Metrics.Prometheus.Ridley.Metrics.VirtualMemory
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 :: Ridley RidleyMetricHandler
Documentation
updateVmStat :: VmStatGauges -> Bool -> IO () Source #
data VmStatReport Source #
Constructors
Instances
Show VmStatReport Source # | |
Defined in System.Metrics.Prometheus.Ridley.Metrics.VirtualMemory Methods showsPrec :: Int -> VmStatReport -> ShowS # show :: VmStatReport -> String # showList :: [VmStatReport] -> ShowS # | |
Eq VmStatReport Source # | |
data VmStatGauges Source #
Constructors
systemVirtualMemory :: Ridley RidleyMetricHandler Source #
Returns the virtual memory total and free as sampled from vmstat
.