ganeti

Safe HaskellSafe-Infered

Ganeti.Monitoring.Server

Contents

Description

Implementation of the Ganeti confd server functionality.

Synopsis

Types and constants definitions

type PrepResult = Config Snap ()Source

data Report Source

Constructors

StatelessR (IO DCReport) 
StatefulR (Maybe CollectorData -> IO DCReport) 

data DataCollector Source

Constructors

DataCollector 

Fields

dName :: String
 
dCategory :: Maybe DCCategory
 
dKind :: DCKind
 
dReport :: Report
 
dUpdate :: Maybe (Maybe CollectorData -> IO CollectorData)
 

Configuration handling

defaultHttpConf :: FilePath -> FilePath -> Config Snap ()Source

Helper functions

checkMain :: CheckFn CheckResultSource

Check function for the monitoring agent.

prepMain :: PrepFn CheckResult PrepResultSource

Prepare function for monitoring agent.

Query answers

versionQ :: Snap ()Source

version1Api :: MVar CollectorMap -> Snap ()Source

allReports :: MVar CollectorMap -> Snap ()Source

getColData :: String -> MVar CollectorMap -> IO (Maybe CollectorData)Source

catFromName :: String -> Result (Maybe DCCategory)Source

error404 :: Snap ()Source

oneReport :: MVar CollectorMap -> Snap ()Source