Skip to main content

kafka_prometheuses

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

Overview​

Namekafka_prometheuses
TypeResource
Idovh.public_cloud_analytics.kafka_prometheuses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
targetsarrayScraping targets
usernamestringUsername for Prometheus authentication

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_id, project_idReturns the scraping targets and the username for Prometheus authentication. The password is returned only by a credentials reset. (Beta version)
credentials_resetexecserviceId, project_idResets the Prometheus password. The previous password stops working immediately and the new credentials are returned in the response. (Beta version)

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"}})
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
serviceIdstring (uuid)Service ID
service_idstring (uuid)Service ID (wire: serviceId)

SELECT examples​

Returns the scraping targets and the username for Prometheus authentication. The password is returned only by a credentials reset. (Beta version)

SELECT
targets,
username
FROM ovh.public_cloud_analytics.kafka_prometheuses
WHERE service_id = '{{ service_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Resets the Prometheus password. The previous password stops working immediately and the new credentials are returned in the response. (Beta version)

EXEC ovh.public_cloud_analytics.kafka_prometheuses.credentials_reset
@serviceId='{{ serviceId }}' --required,
@project_id='{{ project_id }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;