This allows to monitor cinder managed ceph volumes
to be monitored.
The second addition here allows the same for snapshots.
Change-Id: I7f045fa618e78351e05ad69bc9580e98487f0c29
Seems, that cinder changed format of notifications in rocky,
as image_id in glance_metadata is not a list anymore.
Due to this bug agent-notification get stuck and info about
volume delete was not delivered to gnocchi.
Change-Id: Id5a2b3e1fb9aed3e620c8b0e9ffb9cf1a447fea8
Closes-Bug: 1801348
This change adds launched_at/started_at/deleted_at attribute to instance.
Rely on started_at/ended_at of Gnocchi to known when the operation have
done is not precise. Nova records the exact time of this event, just
copy them to Gnocchi.
Change-Id: If7870fd525d1ef58e4c2dbbbf93525bab3623b0f
nova sends *.update events in between create.start and create.end
events and it might not have a host name (which we need). in reality
to any changes to vcpus/memory/root_gb/ephemeral_gb metrics will
either send a *.resize notification and/or require a reboot which
sends it's own notification. because of that, just ignore
*.update notifications
Change-Id: I1f975c2d73adfc19126d70bdb1ab452e37b278fd
closes-bug: #1718290
cinder sends a notification about its capacity:
https://review.openstack.org/#/c/206923
for provider pool, the name_to_id is an concatenation of host#pool_name.
Change-Id: Ica0b55658ae9ac9ec1ed4ef5ab8cda450a139c7d
Implements: cinder-capacity-notifications
do not build metrics off compute.instance.create.start as it
doesn't have enough information in it to push to Gnocchi. there is
an .end event that happens seconds later so .start event has little
value outside context of event.
we change fnmatch to regex for more useful regex comparison and it's
faster
not a complete fix as compute.instance.update also is missing host
value occasionally
Partial-Bug: #1718290
Change-Id: I2aa7045873fd740255a3be5f64b9e9f5fd94e2d4
Availability zone and name attributes were marked
as required while they are not, hence causing errors
when Gnocchi tried to create the resource.
This patch set removes the requirement over those attributes.
Availability zone has been removed, it will be shown only
when its present. Name has been replaced with share_id, which
is always present.
Other attributes has been added as well to keep track of other
relevant data.
Closes-Bug: #1706440
Change-Id: I191bcfae155278f7688c1148ad7e6994a0322fa6
process notifications as is. this should not impact upgrades as
this does not change what is outputed by notification agent in
any way, just how it does initial processing.
note, this *will* change what is stored in Events if raw field is
enabled. that said, the raw field is unqueryable from Panko pov and
it actually is storing the raw message now.
Change-Id: If79f91687c6c1bc27d906045573674b002534ab1