Get Counter Time Series
Get counter time series.
GET
/
v1
/
telemetry
/
counters
/
{metric_name}
/
time_series
Get Counter Time Series
curl --request GET \
--url https://api.example.com/v1/telemetry/counters/{metric_name}/time_seriesimport requests
url = "https://api.example.com/v1/telemetry/counters/{metric_name}/time_series"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/telemetry/counters/{metric_name}/time_series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/telemetry/counters/{metric_name}/time_series"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"metric": "<string>",
"series": [
{
"points": [
{
"timestamp": 123,
"value": 123
}
],
"labels": {
"agent_id": "<string>",
"deployment_environment": "<string>",
"exported_job": "<string>",
"job": "<string>",
"service_name": "<string>",
"service_namespace": "<string>",
"service_version": "<string>",
"team_id": "<string>",
"user_id": "<string>",
"evaluation_id": "<string>"
}
}
],
"labels": {
"agent_id": "<string>",
"deployment_environment": "<string>",
"exported_job": "<string>",
"job": "<string>",
"service_name": "<string>",
"service_namespace": "<string>",
"service_version": "<string>",
"team_id": "<string>",
"user_id": "<string>",
"evaluation_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Query Parameters
Response
Successful Response
List of time series data
Hide child attributes
Hide child attributes
Structured metric labels for this series
Hide child attributes
Hide child attributes
Structured metric labels
Hide child attributes
Hide child attributes
Was this page helpful?
⌘I
Get Counter Time Series
curl --request GET \
--url https://api.example.com/v1/telemetry/counters/{metric_name}/time_seriesimport requests
url = "https://api.example.com/v1/telemetry/counters/{metric_name}/time_series"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/telemetry/counters/{metric_name}/time_series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/telemetry/counters/{metric_name}/time_series"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"metric": "<string>",
"series": [
{
"points": [
{
"timestamp": 123,
"value": 123
}
],
"labels": {
"agent_id": "<string>",
"deployment_environment": "<string>",
"exported_job": "<string>",
"job": "<string>",
"service_name": "<string>",
"service_namespace": "<string>",
"service_version": "<string>",
"team_id": "<string>",
"user_id": "<string>",
"evaluation_id": "<string>"
}
}
],
"labels": {
"agent_id": "<string>",
"deployment_environment": "<string>",
"exported_job": "<string>",
"job": "<string>",
"service_name": "<string>",
"service_namespace": "<string>",
"service_version": "<string>",
"team_id": "<string>",
"user_id": "<string>",
"evaluation_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}