Slackbot
02/14/2023, 2:07 PMSrikanth Chekuri
02/14/2023, 2:23 PM{service_name="{{.service_name}}"}
Srikanth Chekuri
02/14/2023, 2:23 PMservice_name
is the variable and the part of metric labels.Jose Infazon
02/14/2023, 2:28 PMsum(rate(http_server_requests_seconds_count{uri=~{{.uri}}}[1m]))
And I'm getting the error:
Error: API responded with 400 - encountered multiple errors: error in query-A: parse error at char 50: unexpected character inside braces: '/'
I understand that is because the the var needs to be inside "". So no the question is how can I escape the quotes? I've tried \"
Srikanth Chekuri
02/14/2023, 2:30 PMJose Infazon
02/14/2023, 2:31 PMNo Data
But there is data, If I put "/klt/api/v1/transactions" I get resultsSrikanth Chekuri
02/14/2023, 2:32 PMJose Infazon
02/14/2023, 2:37 PMSrikanth Chekuri
02/14/2023, 2:38 PM/klt/api/v1/transactions
Jose Infazon
02/14/2023, 2:41 PMJose Infazon
02/14/2023, 2:41 PMJose Infazon
02/14/2023, 2:49 PMSrikanth Chekuri
02/14/2023, 3:00 PMSrikanth Chekuri
02/14/2023, 3:02 PM