Created
May 29, 2020 19:56
-
-
Save geekodour/ad06d86e223ccc0e3787097932295e47 to your computer and use it in GitHub Desktop.
instant vector with time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- QUERY: prometheus_http_requests_total | |
- REQ: http://localhost:9090/api/v1/query?query=prometheus_http_requests_total&time=1590782145.245 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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