ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Backend.MonD

Contents

Description

Monitoring daemon backend

This module holds implements the querying of the monitoring daemons for dynamic utilisation data.

Synopsis

General definitions

data Report Source

Constructors

CPUavgloadReport CPUavgload 
InstanceCpuReport (Map String Double) 

data DataCollector Source

Constructors

DataCollector 

Fields

dName :: String
 
dCategory :: Maybe DCCategory
 
dMkReport :: DCReport -> Maybe Report
 
dUse :: [(Node, Report)] -> (List, List) -> Result (List, List)
 

Node-total CPU load average data collector

Xen instance CPU-usage collector

Collector choice

Querying infrastructure

type MonDData = (String, [DCReport])Source

type MapMonDData = Map String [DCReport]Source

getDCCName :: Maybe DCCategory -> StringSource

pMonDData :: String -> Result [MonDData]Source

Parse MonD data file contents.

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.