Skip to main content

metrics_etcd_usages

Creates, updates, deletes, gets or lists a metrics_etcd_usages resource.

Overview​

Namemetrics_etcd_usages
TypeResource
Idovh.cloud_kube.metrics_etcd_usages

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
quotaintegerMaximum allowed size of etcd data for the cluster (bytes)
usageintegerSize of etcd data used by the cluster (bytes)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectkube_id, service_nameList available metrics for this cluster

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
kube_idstringKube ID (wire: kubeId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

List available metrics for this cluster

SELECT
quota,
usage
FROM ovh.cloud_kube.metrics_etcd_usages
WHERE kube_id = '{{ kube_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;