rally-openstack/samples/tasks/scenarios/grafana/push-metric-from-instance.yaml
Peter Razumovsky 48f895b645 Add Grafana plugin for monitoring testing
Add testing monitoring system with push acceptor Pushgateway and metric
analyzer Grafana in conjunction with nova instance. This test case is to
check how nova instance could communicate with a monitoring system, not
only for testing monitoring availability. Suchwise Openstack platform
using is justified.

However, if the issue is to check availability of monitoring system,
push_metric_locally scenario allows to push random metric locally to
Pushgateway and just check it in Grafana.

Change-Id: I00e85189b5f54c3e6fd18fa52afe7db0eda88fed
2018-05-28 14:47:02 +04:00

44 lines
1.1 KiB
YAML

{% set flavor_name = flavor_name or "grafana_test.small" %}
{% set image_name = image_name or "testVM" %}
---
GrafanaMetrics.push_metric_from_instance:
-
args:
flavor:
name: {{ flavor_name }}
image:
name: {{ image_name }}
monitor_vip: 10.0.0.5
pushgateway_port: 9091
grafana:
user: admin
password: password
port: 3000
datasource_id: 1
job_name: rally_test
sleep_time: 5
retries_total: 30
runner:
type: "constant"
times: 10
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
flavors:
-
name: {{ flavor_name }}
ram: 512
disk: 1
vcpus: 1
images:
image_name: {{ image_name }}
image_url: http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img
disk_format: qcow2
container_format: bare
visibility: public
sla:
failure_rate:
max: 0