# Classify metrics by request ## Base helm chart **values.yaml**: ```yaml= metrics: # Only GET requests to exact '/reviews' an - name: ListReviews path: exact: "/reviews" method: "GET" # Only GET requests to path that matches regex for single review - name: GetReview path: regex: "^/reviews/[[:alnum:]]*$" method: "GET" # All reviews request and every method - name: AllReviews path: regex: "^/reviews" ``` **Expected output**: ```json { "attributes": [ { "output_attribute": "istio_operationId", "match": [ { "value": "ListReviews", "condition": "request.url_path == '/reviews' && request.method == 'GET'" }, { "value": "GetReview", "condition": "request.url_path.matches('^/reviews/[[:alnum:]]*$') && request.method == 'GET'" }, { "value": "AllReviews", "condition": "request.url_path.matches == '^/reviews'" } ] } ] } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up