Safe Haskell | Safe-Infered |
---|
Monitoring daemon backend
This module holds implements the querying of the monitoring daemons for dynamic utilisation data.
- data Report
- = CPUavgloadReport CPUavgload
- | InstanceCpuReport (Map String Double)
- data DataCollector = DataCollector {}
- mkCpuReport :: DCReport -> Maybe Report
- updateNodeCpuFromReport :: (Node, Report) -> Node
- updateCpuUtilDataFromNode :: List -> Node -> List
- useNodeTotalCPU :: [(Node, Report)] -> (List, List) -> Result (List, List)
- totalCPUCollector :: DataCollector
- mkXenCpuReport :: DCReport -> Maybe Report
- useInstanceCpuData :: [(Node, Report)] -> (List, List) -> Result (List, List)
- xenCPUCollector :: DataCollector
- collectors :: Options -> [DataCollector]
- mkReport :: DataCollector -> Maybe DCReport -> Maybe Report
- type MonDData = (String, [DCReport])
- type MapMonDData = Map String [DCReport]
- fromFile :: DataCollector -> Node -> MapMonDData -> Maybe DCReport
- getDCCName :: Maybe DCCategory -> String
- prepareUrl :: DataCollector -> Node -> URLString
- fromCurl :: DataCollector -> Node -> IO (Maybe DCReport)
- pMonDN :: JSRecord -> Result MonDData
- pMonDData :: String -> Result [MonDData]
- queryAMonD :: Maybe MapMonDData -> DataCollector -> Node -> IO (Maybe Report)
- queryAllMonDs :: Maybe MapMonDData -> (List, List) -> DataCollector -> WriterT All IO (List, List)
- queryAllMonDDCs :: ClusterData -> Options -> WriterT All IO ClusterData
General definitions
CPUavgloadReport CPUavgload | |
InstanceCpuReport (Map String Double) |
data DataCollector Source
Node-total CPU load average data collector
mkCpuReport :: DCReport -> Maybe ReportSource
updateNodeCpuFromReport :: (Node, Report) -> NodeSource
updateCpuUtilDataFromNode :: List -> Node -> ListSource
Xen instance CPU-usage collector
mkXenCpuReport :: DCReport -> Maybe ReportSource
Collector choice
collectors :: Options -> [DataCollector]Source
Querying infrastructure
mkReport :: DataCollector -> Maybe DCReport -> Maybe ReportSource
type MapMonDData = Map String [DCReport]Source
fromFile :: DataCollector -> Node -> MapMonDData -> Maybe DCReportSource
getDCCName :: Maybe DCCategory -> StringSource
prepareUrl :: DataCollector -> Node -> URLStringSource
fromCurl :: DataCollector -> Node -> IO (Maybe DCReport)Source
queryAMonD :: Maybe MapMonDData -> DataCollector -> Node -> IO (Maybe Report)Source
queryAllMonDs :: Maybe MapMonDData -> (List, List) -> DataCollector -> WriterT All IO (List, List)Source
queryAllMonDDCs :: ClusterData -> Options -> WriterT All IO ClusterDataSource
Query all MonDs for all Data Collector. Return the cluster enriched by dynamic data, as well as a bit indicating wether all collectors could be queried successfully.