API: Add API stats

Registered by Georgy Okrokvertskhov

Performance monitoring is essential part of operations and service monitoring. Murano API service should collect usage and performance statistics. API should provide per tenant and overall stats like:
for success and errors:
 * requests per second
 * requests last hour
 * requests last day
 * requests total
 * average request processing time
 * max request processing time

I suggest 1 minute or 5 minute refresh period.

Blueprint information

Status:
Complete
Approver:
ruhe
Priority:
Low
Drafter:
Georgy Okrokvertskhov
Direction:
Approved
Assignee:
Georgy Okrokvertskhov
Definition:
New
Series goal:
Accepted for 0.x
Implementation:
Implemented
Milestone target:
milestone icon 0.5
Started by
ruhe
Completed by
Serg Melikyan

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/api-request-stats,n,z

Addressed by: https://review.openstack.org/77335
    Add Statistics Collection loop

Addressed by: https://review.openstack.org/77342
    Add per API call statistics

Addressed by: https://review.openstack.org/79209
    Add hostname to stats

Addressed by: https://review.openstack.org/79215
    Add DB model for stats

Addressed by: https://review.openstack.org/79218
    Fix stats update to save data to DB

Addressed by: https://review.openstack.org/79224
    Add CPU information to the stats

Addressed by: https://review.openstack.org/79255
    Add Stats page to UI

Addressed by: https://review.openstack.org/80753
    Add stats GET API method

Addressed by: https://review.openstack.org/80754
    Add Stats List method

Addressed by: https://review.openstack.org/80755
    Add real API call to Stats model

Addressed by: https://review.openstack.org/88127
    Enable actual API call for stats

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.