Difference between revisions of "Ceilometer/blueprints/monitoring-metrics-object"
< Ceilometer | blueprints
Shengjie min (talk | contribs) (→Meters) |
Shengjie min (talk | contribs) (→Monitoring Metrics) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Meters == | == Meters == | ||
In Ceilometer, the meters are polled in the form of Counter(namedtuple) as below, do we need two different peer objects or a common lower level object for both meters and metrics? | In Ceilometer, the meters are polled in the form of Counter(namedtuple) as below, do we need two different peer objects or a common lower level object for both meters and metrics? | ||
− | + | <pre> | |
− | + | Counter = collections.namedtuple('Counter', | |
− | + | ' '.join([ | |
− | + | 'name', | |
− | + | 'type', | |
− | + | 'unit', | |
− | + | 'volume', | |
− | + | 'user_id', | |
− | + | 'project_id', | |
− | + | 'resource_id', | |
− | + | 'timestamp', | |
− | + | 'resource_metadata', | |
+ | ])) | ||
+ | </pre> | ||
== Monitoring Metrics == | == Monitoring Metrics == | ||
As the monitoring metrics, take ganglia metric as an example(Gmetad XML dump): | As the monitoring metrics, take ganglia metric as an example(Gmetad XML dump): | ||
− | + | <pre> | |
− | + | -Host | |
− | + | -Cluster Name | |
− | + | -METRIC NAME="swap_free" | |
− | + | -VAL="2097148" | |
− | + | -TYPE="float" | |
− | + | -UNITS="KB" | |
− | + | -TN="138" - timestamp | |
− | + | -TMAX="180" (like a leasetime - freshness) | |
− | + | -DMAX="0" (how long to retain old records) | |
− | + | -SLOPE="both" (+ = counter, others = gauge) | |
+ | </pre> | ||
== Mapping == | == Mapping == |
Latest revision as of 08:57, 7 April 2013
Meters
In Ceilometer, the meters are polled in the form of Counter(namedtuple) as below, do we need two different peer objects or a common lower level object for both meters and metrics?
Counter = collections.namedtuple('Counter', ' '.join([ 'name', 'type', 'unit', 'volume', 'user_id', 'project_id', 'resource_id', 'timestamp', 'resource_metadata', ]))
Monitoring Metrics
As the monitoring metrics, take ganglia metric as an example(Gmetad XML dump):
-Host -Cluster Name -METRIC NAME="swap_free" -VAL="2097148" -TYPE="float" -UNITS="KB" -TN="138" - timestamp -TMAX="180" (like a leasetime - freshness) -DMAX="0" (how long to retain old records) -SLOPE="both" (+ = counter, others = gauge)
Mapping
Ceilometer Counter | Ganglia Metric |
---|---|
name | METRICNAME |
delta|cumulative) | positive|negative|both) more from metadata |
unit | UNITS |
volume | VAL |
user_id | None (appropriate for a meter, not monitor) |
project_id | None (appropriate for a meter, not monitor) |
resource_id(swift: tenant_id, compute:instance_id, glance:image_id) | Host (FQDN) |
timestamp | Ganglia TN (current time - TN = timestamp when metric published) |
resource_metadata | NONE |