openMetrics PMDA (OpenMetrics PMDA)
DYNAMIC METRIC NAMES
As described above, changes and new additions can be made to
files in the configuration directory without having to restart
the PMDA. These changes are detected automatically and the PCP
metric names below openmetrics
in the PMNS will be updated
accordingly, i.e. new metrics will be dynamically added and/or
existing metrics removed. In addition, pmdaopenmetrics
honors
the PMCD_NAMES_CHANGE pmFetch(3) protocol that was introduced in
PCP version 4.0. In particular, if openmetrics
metrics are being
logged by a PCP version 4.0 or later pmlogger(1), new metrics
that appear as a result of changes in the PMDA configuration
directory will automatically start to be logged, provided the
root of the openmetrics
PMDA namespace is configured for logging
in the pmlogger
configuration file. See pmlogger(1) for details.
An example of such a pmlogger
configuration file is :
log mandatory on 2 second {
# log all metrics below the root of the openmetrics namespace
openmetrics
}