Gnocchi 是通过一个可扩展性和弹性的方式来管理资源并且储存相关矩阵的服务。它的功能会在 HTTP REST API 上展露出来。
示例代码:
HTTP/1.1 201 Created Location: http://localhost/v1/metric/5d1d9fe6-11ce-4661-bd93-fc1e295c8ba6 Content-Length: 505Content-Type: application/json; charset=UTF-8{ "archive_policy": { "aggregation_methods": [ "mean", "95pct", "median", "min", "sum", "count", "max", "std" ], "back_window": 0, "definition": [ { "granularity": "0:00:01", "points": 3600, "timespan": "1:00:00" }, { "granularity": "0:30:00", "points": 48, "timespan": "1 day, 0:00:00" } ], "name": "low" }, "created_by_project_id": "45da4163-2390-43dd-b37a-df365ef37e2d", "created_by_user_id": "a4098136-e02a-4a18-8c50-334ea6dce58d", "id": "5d1d9fe6-11ce-4661-bd93-fc1e295c8ba6", "name": null, "resource_id": null}