Reference information regarding the ClusterCockpit component “cc-metric-store” (GitHub Repo).
This is the multi-page printable view of this section. Click here to print.
Metric Store
ClusterCockpit Metric Store References
- 1: Command Line
- 2: Configuration
- 3: REST API
1 - Command Line
ClusterCockpit Metric Store Command Line Options
This page describes the command line options for the cc-metric-store
executable.
-config <path>
Function: Specifies alternative path to application configuration file.
Default: ./config.json
Example: -config ./configfiles/configuration.json
-gops
Function: Go server listens via github.com/google/gops/agent (for debugging).
2 - Configuration
ClusterCockpit Metric Store Configuration Option References
All durations are specified as string that will be parsed like this (Allowed suffixes: s
, m
, h
, …).
metrics
: Map of metric-name to objects with the following propertiesfrequency
: Timestep/Interval/Resolution of this metricaggregation
: Can be"sum"
,"avg"
ornull
null
means aggregation across nodes is forbidden for this metric"sum"
means that values from the child levels are summed up for the parent level"avg"
means that values from the child levels are averaged for the parent level
scope
: Unused at the moment, should be something like"node"
,"socket"
or"hwthread"
nats
:address
: Url of NATS.io server, example: “nats://localhost:4222”username
andpassword
: Optional, if provided use those for the connectionsubscriptions
:subscribe-to
: Where to expect the measurements to be publishedcluster-tag
: Default value for the cluster tag
http-api
:address
: Address to bind to, for example0.0.0.0:8080
https-cert-file
andhttps-key-file
: Optional, if provided enable HTTPS using those files as certificate/key
jwt-public-key
: Base64 encoded string, use this to verify requests to the HTTP APIretention-on-memory
: Keep all values in memory for at least that amount of timecheckpoints
:interval
: Do checkpoints every X seconds/minutes/hoursdirectory
: Path to a directoryrestore
: After a restart, load the last X seconds/minutes/hours of data back into memory
archive
:interval
: Move and compress all checkpoints not needed anymore every X seconds/minutes/hoursdirectory
: Path to a directory
3 - REST API
ClusterCockpit Metric Store RESTful API Endpoint description
Open API Reference
Non-Interactive Documentation
This reference is rendered using theredoc
plugin based on the original definition file found in the ClusterCockpit Metric Store repository, but without a serving backend.This means that all interactivity (“Try It Out”) will not return actual data. However, a Curl
call and a compiled Request URL
will still be displayed, if an API endpoint is executed.