Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
7cfce4a0
Commit
7cfce4a0
authored
Feb 25, 2018
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken cache charts after micrometer change
parent
f75efd3c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
pom.xml
pom.xml
+1
-1
details-cache.vue
...c/main/frontend/views/instances/details/details-cache.vue
+15
-5
details-caches.vue
.../main/frontend/views/instances/details/details-caches.vue
+1
-1
index.vue
...er-ui/src/main/frontend/views/instances/details/index.vue
+1
-1
No files found.
pom.xml
View file @
7cfce4a0
...
...
@@ -27,7 +27,7 @@
<url>
https://github.com/codecentric/spring-boot-admin/
</url>
<properties>
<revision>
2.0.0-SNAPSHOT
</revision>
<spring-boot.version>
2.0.0.
BUILD-SNAPSHOT
</spring-boot.version>
<spring-boot.version>
2.0.0.
RC2
</spring-boot.version>
<spring-cloud.version>
Finchley.BUILD-SNAPSHOT
</spring-cloud.version>
<hazelcast-tests.version>
3.9.2
</hazelcast-tests.version>
<java.version>
1.8
</java.version>
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-cache.vue
View file @
7cfce4a0
...
...
@@ -35,8 +35,8 @@
</div>
<div
class=
"level-item has-text-centered"
>
<div>
<p
class=
"heading has-bullet has-bullet-warning"
>
Total
</p>
<p
v-text=
"current.
total
"
/>
<p
class=
"heading has-bullet has-bullet-warning"
>
Misses
</p>
<p
v-text=
"current.
miss
"
/>
</div>
</div>
<div
class=
"level-item has-text-centered"
>
...
...
@@ -45,6 +45,12 @@
<p
v-text=
"ratio"
/>
</div>
</div>
<div
class=
"level-item has-text-centered"
>
<div>
<p
class=
"heading"
>
Size
</p>
<p
v-text=
"current.size"
/>
</div>
</div>
</div>
<cache-chart
v-if=
"chartData.length > 0"
:data=
"chartData"
/>
</div>
...
...
@@ -93,14 +99,17 @@
},
methods
:
{
async
fetchMetrics
()
{
const
responseHit
=
this
.
instance
.
fetchMetric
(
'cache.requests'
,
{
name
:
this
.
cacheName
,
result
:
'hit'
});
const
responseMiss
=
this
.
instance
.
fetchMetric
(
'cache.requests'
,
{
name
:
this
.
cacheName
,
result
:
'miss'
});
const
responseHit
=
this
.
instance
.
fetchMetric
(
'cache.gets'
,
{
name
:
this
.
cacheName
,
result
:
'hit'
});
const
responseMiss
=
this
.
instance
.
fetchMetric
(
'cache.gets'
,
{
name
:
this
.
cacheName
,
result
:
'miss'
});
const
responsSize
=
this
.
instance
.
fetchMetric
(
'cache.size'
,
{
name
:
this
.
cacheName
});
const
hit
=
(
await
responseHit
).
data
.
measurements
[
0
].
value
;
const
miss
=
(
await
responseMiss
).
data
.
measurements
[
0
].
value
;
const
size
=
(
await
responsSize
).
data
.
measurements
[
0
].
value
;
return
{
hit
,
miss
,
total
:
hit
+
miss
total
:
hit
+
miss
,
size
};
},
createSubscription
()
{
...
...
@@ -110,6 +119,7 @@
.
concatMap
(
vm
.
fetchMetrics
)
.
subscribe
({
next
:
data
=>
{
vm
.
hasLoaded
=
true
;
vm
.
current
=
data
;
vm
.
chartData
.
push
({...
data
,
timestamp
:
moment
.
now
().
valueOf
()});
},
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-caches.vue
View file @
7cfce4a0
...
...
@@ -43,7 +43,7 @@
methods
:
{
async
fetchcaches
()
{
if
(
this
.
instance
)
{
const
response
=
await
this
.
instance
.
fetchMetric
(
'cache.
reques
ts'
);
const
response
=
await
this
.
instance
.
fetchMetric
(
'cache.
ge
ts'
);
return
_
.
uniq
(
response
.
data
.
availableTags
.
filter
(
tag
=>
tag
.
tag
===
'name'
)[
0
].
values
);
}
},
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/details/index.vue
View file @
7cfce4a0
...
...
@@ -101,7 +101,7 @@
}),
computed
:
{
hasCaches
()
{
return
this
.
metrics
.
indexOf
(
'cache.
reques
ts'
)
>=
0
;
return
this
.
metrics
.
indexOf
(
'cache.
ge
ts'
)
>=
0
;
},
hasDatasources
()
{
return
this
.
metrics
.
indexOf
(
'data.source.active.connections'
)
>=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment