Skip to content

Instantly share code, notes, and snippets.

@geekodour
Created May 29, 2020 19:56
Show Gist options
  • Save geekodour/ad06d86e223ccc0e3787097932295e47 to your computer and use it in GitHub Desktop.
Save geekodour/ad06d86e223ccc0e3787097932295e47 to your computer and use it in GitHub Desktop.
instant vector with time
- QUERY: prometheus_http_requests_total
- REQ: http://localhost:9090/api/v1/query?query=prometheus_http_requests_total&time=1590782145.245
{
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "200",
"handler": "/api/v1/label/:name/values",
"instance": "localhost:9090",
"job": "prometheus"
},
"value": [
1590782145.245,
"6"
]
},
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "200",
"handler": "/api/v1/query",
"instance": "localhost:9090",
"job": "prometheus"
},
"value": [
1590782145.245,
"34"
]
},
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "200",
"handler": "/graph",
"instance": "localhost:9090",
"job": "prometheus"
},
"value": [
1590782145.245,
"6"
]
},
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "200",
"handler": "/static/*filepath",
"instance": "localhost:9090",
"job": "prometheus"
},
"value": [
1590782145.245,
"9"
]
},
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "200",
"handler": "/api/v1/query_range",
"instance": "localhost:9090",
"job": "prometheus"
},
"value": [
1590782145.245,
"2"
]
},
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "200",
"handler": "/metrics",
"instance": "localhost:9090",
"job": "prometheus"
},
"value": [
1590782145.245,
"47"
]
},
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "304",
"handler": "/static/*filepath",
"instance": "localhost:9090",
"job": "prometheus"
},
"value": [
1590782145.245,
"42"
]
},
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "400",
"handler": "/api/v1/query_range",
"instance": "localhost:9090",
"job": "prometheus"
},
"value": [
1590782145.245,
"1"
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment