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

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 -> MVar ConfigAccess -> Snap ()Source

listHandler :: MVar ConfigAccess -> Snap ()Source

reportHandler :: MVar CollectorMap -> MVar ConfigAccess -> Snap ()Source

allReports :: MVar CollectorMap -> MVar ConfigAccess -> Snap ()Source

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

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

oneReport :: MVar CollectorMap -> MVar ConfigAccess -> Snap ()Source

monitoringApi :: MVar CollectorMap -> MVar ConfigAccess -> Snap ()Source

seconds :: Int -> IntegerSource

collectord :: MVar CollectorMap -> MVar ConfigAccess -> IO ()Source