Safe Haskell | None |
---|---|
Language | Haskell2010 |
System.Metrics.RRDTool.Internals
- type IntervalSeconds = Int
- type SourceValue = Int64
- data DataSourceType
- data DataSource = DataSource {}
- gcSources :: IntervalSeconds -> [DataSource]
- data ConsolidationFunction
- data RoundRobinArchive = RoundRobinArchive {}
- data RoundRobinDatabase = RoundRobinDatabase {}
- defineDataSource :: DataSource -> String
- showMaybeValue :: Maybe SourceValue -> String
- defineRoundRobinArchive :: RoundRobinArchive -> String
- createRRDArgs :: RoundRobinDatabase -> [String]
- updateRRDArgs :: RoundRobinDatabase -> HashMap Text Value -> UTCTime -> Maybe [String]
- epoch :: UTCTime
- epochTime :: UTCTime -> Integer
- epochTimeFromUTCTime :: UTCTime -> String
- formatValue :: Value -> String
- showWord64 :: Word64 -> String
Documentation
type IntervalSeconds = Int Source
Intervals in seconds (e.g. heartbeats and step size)
type SourceValue = Int64 Source
Counters, gauges etc. in ekg
have this type
data DataSourceType Source
Types of data source in a round-robin database.
data DataSource Source
A data source in a round-robin database.
Constructors
DataSource | |
Fields
|
Instances
Arguments
:: IntervalSeconds | The heartbeat for these metrics, in seconds. |
-> [DataSource] |
Pre-defined data sources for tracking GHC's GC metrics. See registerGcMetrics
or GCStats
for more details.
Clients must run registerGcMetrics
to register these metrics once the RRD is created.
data ConsolidationFunction Source
Defines how multiple primary data points (PDPs) are turned into a
consolidated data point (CDP) for storage in a RoundRobinArchive
.
Constructors
CFLast | Keep the last point only. |
CFAverage | Take the mean of the points. |
CFMin | Take the minimum point. |
CFMax | Take the maximum point. |
Instances
data RoundRobinArchive Source
A sequence of consolidated data points (CDPs).
Constructors
RoundRobinArchive | |
Fields
|
Instances
data RoundRobinDatabase Source
A round-robin database (RRD), which is a file on disk that stores time series data from a number of sources.
Constructors
RoundRobinDatabase | |
Fields
|
createRRDArgs :: RoundRobinDatabase -> [String] Source
updateRRDArgs :: RoundRobinDatabase -> HashMap Text Value -> UTCTime -> Maybe [String] Source
formatValue :: Value -> String Source
showWord64 :: Word64 -> String Source