Metric Messages¶
Metrics are extracted from several sources:
- Data received from collectd.
- Log messages processed by the collector service.
- OpenStack notifications processed by the collector service.
Metric Messages Format¶
In addition to the common Common Message Format, metric messages have additional properties.
Attributes in bold are always present in the messages while attributes in italic are optional.
- Logger (string), the datasource from the Heka’s standpoint, it can be
collectd,notification_processororhttp_log_parser. - Type (string)
metricorheka.sandbox.metricfor the single-value metrics.heka.sandbox.multivalue_metricfor the multi-valued metrics (eg annotations).heka.sandbox.bulk_metricfor the metrics sent by bulk.heka.sandbox.afd_service_metricfor the AFD service metrics.heka.sandbox.afd_node_metricfor the AFD node metrics.heka.sandbox.gse_service_cluster_metricfor the GSE service cluster metrics.heka.sandbox.gse_node_cluster_metricfor the GSE node cluster metrics.heka.sandbox.gse_cluster_metricfor the GSE global cluster metrics.
- Severity (number), it is always equal to 6 (INFO).
- Fields
- name (string), the name of the metric. See the User Documentation for the current metric names that are emitted.
- value (number), the value associated to the metric.
- type (string), the metric’s type, either
gauge(a value that can go up or down),counter(an always increasing value) orderive(a per-second rate).- source (string), the source from where the metric comes from, it can be the name of the collectd plugin,
<service>-apifor HTTP response metrics.- hostname (string), the name of the host to which the metric applies. It may be different from the
Hostnamevalue. For instance when the metric is extracted from an OpenStack notification,Hostnameis the host that captured the notification andFields[hostname]is the host that emitted the notification.- interval (number), the interval at which the metric is emitted (for the
collectdmetrics).- tenant_id (string), the UUID of the OpenStack tenant to which the metric applies.
- user_id (string), the UUID of the OpenStack user to which the metric applies.
Metric messages may include additional fields to specify the scope of the measurement. Refer to the User Documentation for more details.