COA Monitoring & Reporting Tools 3 — Questions and Answers
Question 1: In Aodh, which alarm type triggers when a Gnocchi metric crosses a defined threshold?
- event
- composite
- gnocchi_resources_threshold (Correct answer)
- loadbalancer_member_health
Correct answer: gnocchi_resources_threshold
The 'gnocchi_resources_threshold' alarm type in Aodh evaluates Gnocchi metric values against a threshold to trigger alarms.
Question 2: Which OpenStack CLI command creates an Aodh alarm that fires when CPU utilization exceeds 80%?
- openstack alarm create --type gnocchi_resources_threshold --metric cpu_util --threshold 80 (Correct answer)
- ceilometer alarm-threshold-create --meter-name cpu_util --threshold 80
- aodh alarm set --cpu-threshold 80 --action notify
- openstack alarm threshold --resource cpu --value 80
Correct answer: openstack alarm create --type gnocchi_resources_threshold --metric cpu_util --threshold 80
The 'openstack alarm create --type gnocchi_resources_threshold' command with --metric and --threshold flags creates a CPU utilization alarm in Aodh.
Question 3: What does the 'openstack metric resource list' command display?
- All Ceilometer polling targets
- All resources tracked in Gnocchi with their associated metrics (Correct answer)
- Active Aodh alarms and their states
- Panko event types available in the system
Correct answer: All resources tracked in Gnocchi with their associated metrics
The 'openstack metric resource list' command shows all resources registered in Gnocchi along with the metrics associated with each.
Question 4: Which Ceilometer pipeline configuration file defines how samples are transformed and published?
- ceilometer.conf
- pipeline.yaml (Correct answer)
- policy.json
- meters.yaml
Correct answer: pipeline.yaml
The pipeline.yaml file defines Ceilometer's sources, sinks, transformers, and publishers for processing collected samples.
Question 5: What is the role of 'Monasca' in an OpenStack environment compared to Ceilometer?
- Monasca replaces Gnocchi for event storage
- Monasca is a monitoring-as-a-service solution designed for high-scale, multi-tenant metric collection (Correct answer)
- Monasca only monitors Neutron network resources
- Monasca is Ceilometer's alarm subsystem
Correct answer: Monasca is a monitoring-as-a-service solution designed for high-scale, multi-tenant metric collection
Monasca is a high-performance, multi-tenant monitoring-as-a-service solution that can complement or replace Ceilometer in large-scale OpenStack deployments.
Question 6: Which command shows the alarm history for a specific Aodh alarm?
- openstack alarm show <alarm-id>
- openstack alarm-history search --alarm-id <id>
- aodh alarm-history list <alarm-id> (Correct answer)
- openstack alarm list --history <alarm-id>
Correct answer: aodh alarm-history list <alarm-id>
The 'aodh alarm-history list <alarm-id>' command retrieves the state transition history for a specified Aodh alarm.
Question 7: What happens to an Aodh alarm when its state changes from 'ok' to 'alarm'?
- The associated resource is automatically suspended
- The configured alarm action (e.g., webhook URL or Heat scaling policy) is triggered (Correct answer)
- Ceilometer stops collecting metrics for that resource
- Gnocchi deletes the metric archive for that resource
Correct answer: The configured alarm action (e.g., webhook URL or Heat scaling policy) is triggered
When an Aodh alarm transitions to the 'alarm' state, it executes its configured alarm actions such as calling a webhook URL or triggering a Heat auto-scaling policy.
In Aodh, which alarm type triggers when a Gnocchi metric crosses a defined threshold?