List label names
GET
/v1/prometheus/labels
const url = 'https://example.com/v1/prometheus/labels';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/prometheus/labels \ --header 'Authorization: Bearer <token>'Return all Prometheus label names matching the given selectors.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”No response body