Dongzai1005 opened a new issue #5092:
URL: https://github.com/apache/skywalking/issues/5092


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ √] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   - skywalking version 7.0.0
   - I have a service, two instances,but the index endpoint_avg indicator does 
not follow the instance statistics,
   How do I configure it, or is this a bug
   
   1. The actual data:
   ```text
   entity_id:40, service_instance_id: 47,time_bucket:202007132359
   entity_id:40, service_instance_id: 46,time_bucket:202007132358
   ```
   ``` json
       {
           "_index" : "sw7_endpoint_avg-20200713",
           "_type" : "_doc",
           "_id" : "202007132359_40",
           "_score" : null,
           "_source" : {
             "service_id" : 20,
             "count" : 4922,
             "time_bucket" : 202007132359,
             "service_instance_id" : 47,
             "entity_id" : "40",
             "value" : 3,
             "summation" : 18902
           }
         },
         {
           "_index" : "sw7_endpoint_avg-20200713",
           "_type" : "_doc",
           "_id" : "202007132358_40",
           "_score" : null,
           "_source" : {
             "service_id" : 20,
             "count" : 4924,
             "time_bucket" : 202007132358,
             "service_instance_id" : 46,
             "entity_id" : "40",
             "value" : 3,
             "summation" : 19280
           }
         }
   ```
   Expected data results:
   ```text
   entity_id:40, service_instance_id: 46,time_bucket:202007132358
   entity_id:40, service_instance_id: 46,time_bucket:202007132359
   entity_id:40, service_instance_id: 47,time_bucket:202007132358
   entity_id:40, service_instance_id: 47,time_bucket:202007132359
   ```
   ``` json
        {
           "_index" : "sw7_endpoint_avg-20200713",
           "_type" : "_doc",
           "_id" : "202007132359_40",
           "_score" : null,
           "_source" : {
             "service_id" : 20,
             "count" : 4922,
             "time_bucket" : 202007132359,
             "service_instance_id" : 47,
             "entity_id" : "40",
             "value" : 3,
             "summation" : 18902
           }
         },
        {
           "_index" : "sw7_endpoint_avg-20200713",
           "_type" : "_doc",
           "_id" : "202007132359_40",
           "_score" : null,
           "_source" : {
             "service_id" : 20,
             "count" : 4922,
             "time_bucket" : 202007132359,
             "service_instance_id" : 46,
             "entity_id" : "40",
             "value" : 3,
             "summation" : 18902
           }
         },
         {
           "_index" : "sw7_endpoint_avg-20200713",
           "_type" : "_doc",
           "_id" : "202007132358_40",
           "_score" : null,
           "_source" : {
             "service_id" : 20,
             "count" : 4924,
             "time_bucket" : 202007132358,
             "service_instance_id" : 47,
             "entity_id" : "40",
             "value" : 3,
             "summation" : 19280
           }
         },
        {
           "_index" : "sw7_endpoint_avg-20200713",
           "_type" : "_doc",
           "_id" : "202007132358_40",
           "_score" : null,
           "_source" : {
             "service_id" : 20,
             "count" : 4924,
             "time_bucket" : 202007132358,
             "service_instance_id" : 46,
             "entity_id" : "40",
             "value" : 3,
             "summation" : 19280
           }
         }
   ```
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   
   - Which company or project?
   
   - What happen?
   If possible, provide a way for reproducing the error. e.g. demo application, 
component version.
   
   ___
   ### Requirement or improvement
   - Please describe about your requirements or improvement suggestions.


----------------------------------------------------------------
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.

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


Reply via email to