Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- networkMetrics :: NetworkMetrics -> RidleyMetricHandler
- getNetworkMetrics :: IO [IfData]
- mkInterfaceGauge :: MonadIO m => Labels -> NetworkMetrics -> IfData -> RegistryT m NetworkMetrics
- type NetworkMetrics = Map Text NetworkMetric
- data NetworkMetric
- data IfData = IfData {
- ifi_ipackets :: !Int
- ifi_opackets :: !Int
- ifi_ierrors :: !Int
- ifi_oerrors :: !Int
- ifi_ibytes :: !Int
- ifi_obytes :: !Int
- ifi_imcasts :: !Int
- ifi_omcasts :: !Int
- ifi_iqdrops :: !Int
- ifi_name :: !String
- ifi_error :: !Int
Documentation
getNetworkMetrics :: IO [IfData] Source #
Parse procnet/dev to get the relevant stats.
mkInterfaceGauge :: MonadIO m => Labels -> NetworkMetrics -> IfData -> RegistryT m NetworkMetrics Source #
type NetworkMetrics = Map Text NetworkMetric Source #
data NetworkMetric Source #
IfData | |
|