Skip to main content

CEEMS Tool

Flags

FlagDescription
--helpShow context-sensitive help (also try --help-long and --help-man).
--versionShow application version.

Commands

CommandDescription
checkCheck the resources for validity
configConfiguration related tooling
tsdbTSDB related commands

ceems_tool check

Check the resources for validity.

ceems_tool check api-healthy

Check if the CEEMS API server is healthy.

FlagDescriptionDefault
--http.config.fileHTTP client configuration file for ceems_tool to connect to CEEMS API server.
--urlThe URL for the CEEMS API server.http://localhost:9020

ceems_tool check lb-healthy

Check if the CEEMS LB server is healthy.

FlagDescriptionDefault
--http.config.fileHTTP client configuration file for ceems_tool to connect to CEEMS LB server.
--urlThe URL for the CEEMS LB server.http://localhost:9030

ceems_tool check web-config

Check if the web config files are valid or not.

ArgumentDescription
web-config-filesWeb configuration files.

ceems_config create-web-config

Create web config file for CEEMS components.

FlagDescriptionDefault
--basic-authCreate web config file with basic auth.true
--tlsCreate web config file with self signed TLS certificates.false
--tls.hostHostnames and/or IPs to generate a certificate for.
--tls.validityValidity for TLS certificates.1 year
--output-dirOutput directory to place config files.config

ceems_tool tsdb create-recording-rules

Create Prometheus recording rules.

FlagDescriptionDefault
--http.config.fileHTTP client configuration file for ceems_tool to connect to Prometheus server.true
--urlThe URL for the Prometheus server.http://localhost:9090
--startThe time to start querying for metrics. Must be a RFC3339 formatted date or Unix timestamp.current time - 3 hr
--endThe time to end querying for metrics. Must be a RFC3339 formatted date or Unix timestamp.current time
--puePower Usage Effectiveness (PUE) value to use in power estimation rules.1
--emission-factorStatic emission factor in gCO2/kWh value to use in equivalent emission estimation rules.0
--country-codeISO-2 code of the country to use in emissions estimation rules.
--eval-intervalEvaluation interval for the rules. If not set, default will be used.
--output-dirOutput directory to place config files.rules

ceems_tool tsdb create-relabel-configs

Create Prometheus relabel configs.

FlagDescriptionDefault
--http.config.fileHTTP client configuration file for ceems_tool to connect to Prometheus server.true
--urlThe URL for the Prometheus server.http://localhost:9090
--startThe time to start querying for metrics. Must be a RFC3339 formatted date or Unix timestamp.current time - 3 hr
--endThe time to end querying for metrics. Must be a RFC3339 formatted date or Unix timestamp.current time

ceems_tool tsdb create-ceems-tsdb-updater-queries

Create CEEMS API TSDB updater queries.

FlagDescriptionDefault
--http.config.fileHTTP client configuration file for ceems_tool to connect to Prometheus server.true
--urlThe URL for the Prometheus server.http://localhost:9090
--startThe time to start querying for metrics. Must be a RFC3339 formatted date or Unix timestamp.current time - 3 hr
--endThe time to end querying for metrics. Must be a RFC3339 formatted date or Unix timestamp.current time