yswdqz commented on issue #9472:
URL: https://github.com/apache/skywalking/issues/9472#issuecomment-1221252055

   I had a problem about e2e.
   I write a case to verify metric:
   ```
       - query: swctl --display yaml 
--base-url=http://${oap_host}:${oap_12800}/graphql metrics multiple-linear 
--name=meter_pg_fetched_rows_rate --labels=postgres 
--service-name=postgresql::postgres:5432 |yq e 'to_entries | with(.[] ; 
.value=(.value | to_entries))' -
         expected:  expected/metrics-has-value-label.yml  
   ```
   When I run the e2e , I get the error:
   ```
   WARNING verify case failure, will continue retry, failed to execute the 
query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql 
metrics multiple-linear --name=meter_pg_fetched_rows_rate --labels=postgres 
--service-name=postgresql::postgres:5432 |yq e 'to_entries | with(.[] ; 
.value=(.value | to_entries))' -, output: , error: Error: Parsing expression: 
Lexer error: could not match text starting at 1:14 failing at 1:19.
           unmatched text: "with(" 
   ```
   But when I run the query without e2e, it will success.
   ```
   [root@VM-0-8-centos ~]#  swctl --display yaml 
--base-url=http://localhost:49155/graphql metrics multiple-linear 
--name=meter_pg_fetched_rows_rate --labels=postgres 
--service-name=postgresql::postgres:5432 |yq e 'to_entries | with(.[] ; 
.value=(.value | to_entries))' -
   - key: postgres
     value:
       - key: 2022-08-20 0635
         value: 1
       - key: 2022-08-20 0636
         value: 1
       - key: 2022-08-20 0637
         value: 1
       - key: 2022-08-20 0638
         value: 1
       - key: 2022-08-20 0639
         value: 1
       - key: 2022-08-20 0640
         value: 1
       - key: 2022-08-20 0641
         value: 1
       - key: 2022-08-20 0642
         value: 1
       - key: 2022-08-20 0643
         value: 1
       - key: 2022-08-20 0644
         value: 1
       - key: 2022-08-20 0645
         value: 1
       - key: 2022-08-20 0646
         value: 1
       - key: 2022-08-20 0647
         value: 1
       - key: 2022-08-20 0648
         value: 1
       - key: 2022-08-20 0649
         value: 1
       - key: 2022-08-20 0650
         value: 1
       - key: 2022-08-20 0651
         value: 1
       - key: 2022-08-20 0652
         value: 1
       - key: 2022-08-20 0653
         value: 1
       - key: 2022-08-20 0654
         value: 1
       - key: 2022-08-20 0655
         value: 1
       - key: 2022-08-20 0656
         value: 1
       - key: 2022-08-20 0657
         value: 1
       - key: 2022-08-20 0658
         value: 1
       - key: 2022-08-20 0659
         value: 1
       - key: 2022-08-20 0700
         value: 1
       - key: 2022-08-20 0701
         value: 1
       - key: 2022-08-20 0702
         value: 1
       - key: 2022-08-20 0703
         value: 1
       - key: 2022-08-20 0704
         value: 1
       - key: 2022-08-20 0705
         value: 1
   ```
   So I don't know why it will fail in e2e test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to