artdaq_pcp_mmv_plugin
v1_00_05a
|
An instance of the MetricPlugin class that sends metric data to PCPMMV. More...
Public Member Functions | |
PCPMMVMetric (fhicl::ParameterSet const &pset, std::string const &app_name) | |
Construct an instance of the PCPMMV metric. More... | |
std::string | getLibName () const override |
Gets the unique library name of this plugin. More... | |
void | stopMetrics_ () override |
PCPMMV does not need any specific action on stop. | |
void | startMetrics_ () override |
PCPMMV does not need any specific action on start. | |
void | sendMetric_ (const std::string &name, const std::string &value, const std::string &unit) override |
Send a string metric to PCPMMV. More... | |
void | sendMetric_ (const std::string &name, const int &value, const std::string &unit) override |
Send a integer metric to PCPMMV. More... | |
void | sendMetric_ (const std::string &name, const double &value, const std::string &unit) override |
Send a double metric to PCPMMV. More... | |
void | sendMetric_ (const std::string &name, const float &value, const std::string &unit) override |
Send a float metric to PCPMMV. More... | |
void | sendMetric_ (const std::string &name, const uint64_t &value, const std::string &unit) override |
Send an unsigned long metric to PCPMMV. More... | |
An instance of the MetricPlugin class that sends metric data to PCPMMV.
pmlogger must be configured to log the artdaq metrics so that the web display will retrieve them. Run artdaq, and ensure that the metrics are now available through pminfo -f mmv
. Then, run (as root) cd /var/lib/pcp/pmlogger;pmlogconf -r config.default
and restart pmlogger.
Definition at line 34 of file pcpmmv_metric.cc.
|
inlineexplicit |
Construct an instance of the PCPMMV metric.
pset | Parameter set with which to configure the MetricPlugin. |
app_name | Name of the application sending metrics |
pcp_domain_number can be used to change the domain parameter seconds_before_init determines how long the metric will wait, collecting metric names before starting to log metrics (to reduce the number of stop/init cycles)
Definition at line 189 of file pcpmmv_metric.cc.
|
inlineoverride |
Gets the unique library name of this plugin.
Definition at line 202 of file pcpmmv_metric.cc.
|
inlineoverride |
Send a string metric to PCPMMV.
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
Definition at line 220 of file pcpmmv_metric.cc.
|
inlineoverride |
Send a integer metric to PCPMMV.
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
Definition at line 272 of file pcpmmv_metric.cc.
|
inlineoverride |
Send a double metric to PCPMMV.
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
Definition at line 318 of file pcpmmv_metric.cc.
|
inlineoverride |
Send a float metric to PCPMMV.
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
Definition at line 364 of file pcpmmv_metric.cc.
|
inlineoverride |
Send an unsigned long metric to PCPMMV.
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
Definition at line 410 of file pcpmmv_metric.cc.