Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add right lib and added jquery
  • Loading branch information
Diego Pacheco committed May 2, 2016
commit bfe4ecb2dba210e265bf6395d0c25a5ba70cf9ff
2 changes: 1 addition & 1 deletion hystrix-dashboard/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies {
compile 'org.apache.httpcomponents:httpclient:4.2.1'
compile 'log4j:log4j:1.2.17'
compile 'org.slf4j:slf4j-log4j12:1.7.0'
compile 'com.squareup.retrofit:retrofit:2.0.2'
compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
compile 'com.squareup.retrofit2:converter-simplexml:2.0.2'
compile 'com.squareup.retrofit2:converter-jackson:2.0.2'
testCompile 'junit:junit:4.12'
Expand Down
17 changes: 17 additions & 0 deletions hystrix-dashboard/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@
}
});
});

$.get( "http://127.0.0.1:8080/eureka/v2/apps", function( data ) {
$.each(data, function(i, item){
$('#eurekaApp').append($("<option></option>")
.attr("value",item.name)
.text(item.name));

$('#repos').bind('change',function(item){
var $this = $(this),
$value = $this.val();
$('#eurekaApp').text($value)
});

});
});

</script>
</head>
<body>
Expand All @@ -57,6 +73,7 @@
<br>

<h2>Hystrix Dashboard</h2>
<select id="eurekaApp" name="eurekaApp"class="eurekaApp"></select>
<input id="stream" type="textfield" size="120" placeholder="http://hostname:port/turbine/turbine.stream"></input>
<br><br>
<i>Cluster via Turbine (default cluster):</i> http://turbine-hostname:port/turbine.stream
Expand Down