Skip to main content

kafka_mirror_maker_metrics

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

Overview​

Namekafka_mirror_maker_metrics
TypeResource
Idovh.cloud_database.kafka_mirror_maker_metrics

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringName of the metric
metricsarrayMetric values for each cluster's host
unitsstringUnit of the metric (BYTES, BYTES_PER_SECOND, GIGABYTES, GIGABYTES_PER_HOUR, MEGABYTES, MEGABYTES_PER_SECOND, MILLISECONDS, PERCENT, SCALAR, SCALAR_PER_SECOND, SECONDS, UNKNOWN)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcluster_id, metric_name, period, service_nameGet the metric values for the kafkaMirrorMaker
listselectcluster_id, service_nameextended, x_pagination_modeList available metrics for the kafkaMirrorMaker

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"}})
cluster_idstring (uuid)Cluster ID (wire: clusterId)
metric_namestringMetric name (wire: metricName)
periodstringThe period of time to query metrics for
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
extendedbooleanDisplay DB specific metrics
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get the metric values for the kafkaMirrorMaker

SELECT
name,
metrics,
units
FROM ovh.cloud_database.kafka_mirror_maker_metrics
WHERE cluster_id = '{{ cluster_id }}' -- required
AND metric_name = '{{ metric_name }}' -- required
AND period = '{{ period }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;