Eureka REST API:

https://github.com/Netflix/eureka/wiki/Eureka-REST-operations


we just need `GET /eureka/v2/apps`, and its output:


{
    "applications": {
        "versions__delta": "1",
        "apps__hashcode": "UP_1_",
        "application": [
            {
                "name": "APISIX-EUREKA",
                "instance": [
                    {
                      
  "instanceId": "192.168.1.100:8761",
                      
  "hostName": "192.168.1.100",
                      
  "app": "APISIX-EUREKA",
                      
  "ipAddr": "192.168.1.100",
                      
  "status": "UP",
                      
  "overriddenStatus": "UNKNOWN",
                      
  "port": {
                      
      "$": 8761,
                      
      "@enabled": "true"
                      
  },
                      
  "securePort": {
                      
      "$": 443,
                      
      "@enabled": "false"
                      
  },
                      
  "countryId": 1,
                      
  "dataCenterInfo": {
                      
      "@class": 
"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo",
                      
      "name": "MyOwn"
                      
  },
                      
  "leaseInfo": {
                      
      "renewalIntervalInSecs": 30,
                      
      "durationInSecs": 90,
                      
      "registrationTimestamp": 1585205921502,
                      
      "lastRenewalTimestamp": 1585206281274,
                      
      "evictionTimestamp": 0,
                      
      "serviceUpTimestamp": 1585205921502
                      
  },
                      
  "metadata": {
                      
      "management.port": "8761"
                      
  },
                      
  "homePageUrl": "http://192.168.1.100:8761/";,
                      
  "statusPageUrl": "http://192.168.1.100:8761/actuator/info";,
                      
  "healthCheckUrl": "http://192.168.1.100:8761/actuator/health";,
                      
  "vipAddress": "apisix-eureka",
                      
  "secureVipAddress": "apisix-eureka",
                      
  "isCoordinatingDiscoveryServer": "true",
                      
  "lastUpdatedTimestamp": "1585205921502",
                      
  "lastDirtyTimestamp": "1585205921295",
                      
  "actionType": "ADDED"
                    }
                ]
            }
        ]
    }
}


tansform to the nodes of upstream:


{
  "192.168.1.100:8761" = 1,
}


others data (type, retries, timeout Etc.) of upstream are from configuration.





------------------ ???????? ------------------
??????:&nbsp;"suo zhang"<coolsoul0...@gmail.com&gt;;
????????:&nbsp;2020??3??26??(??????) ????12:54
??????:&nbsp;"dev"<dev@apisix.apache.org&gt;;

????:&nbsp;Re: [DISCUSS] how about the design of APISIX eureka integration?



hello. maybe you should give a example and descripte how fetch the data
from eureka and tansform to the data in the upstream.
&nbsp;maybe you should show the APIs of eureka and&nbsp; their??s output.


Ming Wen <wenm...@apache.org&gt; ??2020??3??26?????? ????12:10??????

&gt; that will be great, and you can also post the design here instead of PR
&gt;
&gt; ~Jarvis.Qiu <qiu...@foxmail.com&gt;??2020??3??26?? ????????11:57??????
&gt;
&gt; &gt; just&amp;nbsp; Chinese version now.
&gt; &gt;
&gt; &gt;
&gt; &gt; I need to spend some time translating it??
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; ------------------&amp;nbsp;????????&amp;nbsp;------------------
&gt; &gt; ??????:&amp;nbsp;"Ming Wen"<wenm...@apache.org&amp;gt;;
&gt; &gt; ????????:&amp;nbsp;2020??3??26??(??????) ????11:54
&gt; &gt; ??????:&amp;nbsp;"dev"<dev@apisix.apache.org&amp;gt;;
&gt; &gt;
&gt; &gt; ????:&amp;nbsp;Re: [DISCUSS] how about the design of APISIX eureka 
integration?
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; Do you have the English version?
&gt; &gt;
&gt; &gt; Thanks,
&gt; &gt; Ming Wen, Apache APISIX &amp;amp; Apache SkyWalking
&gt; &gt; Twitter: _WenMing
&gt; &gt;
&gt; &gt;
&gt; &gt; ~Jarvis.Qiu <qiu...@foxmail.com&amp;gt; ??2020??3??26?????? 
????11:53??????
&gt; &gt;
&gt; &gt; &amp;gt; the doc url is :&amp;amp;nbsp;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt;
&gt; 
https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md
&gt; &gt; &amp;gt
&gt; &gt; <
&gt; 
https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md&amp;gt
&gt; &gt;
&gt; &gt; ;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt; 
------------------&amp;amp;nbsp;????????&amp;amp;nbsp;------------------
&gt; &gt; &amp;gt; ??????:&amp;amp;nbsp;"Ming 
Wen"<wenm...@apache.org&amp;amp;gt;;
&gt; &gt; &amp;gt; ????????:&amp;amp;nbsp;2020??3??26??(??????) ????11:49
&gt; &gt; &amp;gt; ??????:&amp;amp;nbsp;"dev"<dev@apisix.apache.org&amp;amp;gt;;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt; ????:&amp;amp;nbsp;Re: [DISCUSS] how about the design of 
APISIX eureka
&gt; &gt; integration?
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt; bad link, return 404.
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt; Thanks,
&gt; &gt; &amp;gt; Ming Wen, Apache APISIX &amp;amp;amp; Apache SkyWalking
&gt; &gt; &amp;gt; Twitter: _WenMing
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt; ~Jarvis.Qiu <qiu...@foxmail.com&amp;amp;gt; 
??2020??3??26?????? ????11:48??????
&gt; &gt; &amp;gt;
&gt; &gt; &amp;gt; &amp;amp;gt; Hi:
&gt; &gt; &amp;gt; &amp;amp;gt;
&gt; &gt; &amp;gt; &amp;amp;gt;
&gt; &gt; &amp;gt; &amp;amp;gt; here is a doc :
&gt; &gt; &amp;gt; &amp;amp;gt;
&gt; &gt; &amp;gt;
&gt; &gt;
&gt; 
https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md&amp;amp;amp;nbsp;for&amp;amp;amp;nbsp;the
&gt; &gt; &amp;gt
&gt; &gt; <
&gt; 
https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md&amp;amp;amp;nbsp;for&amp;amp;amp;nbsp;the&amp;gt
&gt; &gt;;
&gt; &gt; &amp;amp;gt
&gt; &gt; &amp;gt; <
&gt; &gt;
&gt; 
https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md&amp;amp;amp;nbsp;for&amp;amp;amp;nbsp;the&amp;amp;gt&amp;gt
&gt; &gt; ;;
&gt; &gt; &amp;gt; design of APISIX eureka integration.&amp;amp;amp;nbsp;
&gt; &gt; &amp;gt; &amp;amp;gt;
&gt; &gt; &amp;gt; &amp;amp;gt;
&gt; &gt; &amp;gt; &amp;amp;gt; I hope you can give me some advice.
&gt; &gt; &amp;gt; &amp;amp;gt;
&gt; &gt; &amp;gt; &amp;amp;gt;
&gt; &gt; &amp;gt; &amp;amp;gt; the PR:&amp;amp;amp;nbsp;
&gt; &gt; https://github.com/apache/incubator-apisix/pull/1281
&gt;
&gt; --
&gt; Thanks,
&gt; Ming Wen, Apache APISIX &amp; Apache SkyWalking
&gt; Twitter: _WenMing
&gt;

Reply via email to