Package io.deephaven.status.dashboard
Class StatusDashboardConfiguration
java.lang.Object
io.deephaven.status.dashboard.StatusDashboardConfiguration
Class to parse and contain status dashboard JSON configuration files. Multiple configuration files are allowed, specified by the property
StatusDashboard.configuration.files. By default the status dashboard process retrieves the files from the configuration server, but
two override properties are supported.
- If
READ_FROM_DISK_PROPis specified, then the JSON files will be read directly from disk. - If
USE_ETCD_DIRECT_PROPis specified, then etcd will be directly used to read the JSON files.
ROOT_NODE. Under this, three different node types are allowed.
PQ_MONITORS_NODEspecifies persistent queries to be monitored for status.DATA_MONITORS_NODEspecifies tables to be monitored for data lag.MONITORED_CERTIFICATES_NODEspecifies certificates to be monitored for expiration dates.
PQ_OWNERS_NODEspecifies the owner of persistent queries to be monitored.PQ_NAMES_NODEspecifies the name of a persistent query to be monitored.PQ_NAME_MATCHES_NODEspecifies a regular expression that will be matched against persistent query names.
TABLE_NAMES_NODEspecifies the name of the table to be monitored.TABLE_NAMES_MATCH_NODEspecifies a regular expression to be matched against the tables the persistent query is publishing.
- The
PROMETHEUS_PUBLISHER_PREFIX_NODEnode may be specified to append a prefix to the published Prometheus persistent query gauges, in an individual PQ or data monitor node definition. - For table monitoring, the
WATCHER_JOB_INTERVAL_MILLIS_NODEnode specifies the time in milliseconds between Prometheus gauge updates (since many updates could be received for every table every second, it's better not to overwhelm the prometheus gauges). If not specified it defaults toWATCHER_JOB_INTERVAL_MILLIS_DEFAULT.
CERTIFICATES_NODE node. Under this node:
- The
MONITORED_CERTIFICATES_NODEshould include the certificates, in the format"Prometheus gauge name": "certificate property prefix". - The
CERTIFICATE_JOB_INTERVAL_HOURS_NODEspecifies the time in hours between certification expiration date checks. The default value isCERTIFICATE_JOB_INTERVAL_HOURS_DEFAULT.
-
Method Details
-
getDataWatchers
public List<io.deephaven.status.dashboard.StatusDashboardConfiguration.WatcherDetails> getDataWatchers() -
getPqWatchers
public List<io.deephaven.status.dashboard.StatusDashboardConfiguration.WatcherDetails> getPqWatchers() -
getCertificateDetails
public io.deephaven.status.dashboard.StatusDashboardConfiguration.CertificateDetails getCertificateDetails() -
getCertJobIntervalMillis
public long getCertJobIntervalMillis()
-