Merge "Update delete_metrics.sh tool"
This commit is contained in:
commit
eee3f46efc
|
@ -1,8 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "All gnocchi plugin metrics are being deleted. This may take a few minutes.."
|
echo "Gnocchi plugin metrics are being deleted. This may take a few minutes.."
|
||||||
for metric in `openstack metric metric list | awk 'NR > 2 {print $2}'`;
|
|
||||||
do
|
openstack metric delete $(openstack metric list | awk '{if (NR>3) {print $2}}')
|
||||||
openstack metric metric delete $metric
|
|
||||||
done
|
echo "Done deleting metrics created by the collectd-gnocchi-plugin"
|
||||||
echo "All metrics created by the collectd-gnocchi-plugin have been deleted"
|
|
||||||
|
|
Loading…
Reference in New Issue