I need two metrics from the K8s API server:
- The total number of requests
- The times for each request
So far I've tried using these two commands:
curl -s -G "http://10.192.248.10:30000/api/v1/query" --data-urlencode "query=apiserver_delegated_authn_request_total" | jq
curl -s -G "http://10.192.248.10:30000/api/v1/query" --data-urlencode "query=apiserver_delegated_authn_request_duration_seconds_count" | jq
But they are both returning the same value with the time (first value) varying slightly:
"value": [1685677578.133, "7380"]
I believe the value from the response is for the apiserver_delegated_authn_request_total metric. Am I querying this incorrectly? Why are they both returning the same value from the reponse?