-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Mshost stats #5588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Mshost stats #5588
Changes from all commits
Commits
Show all changes
130 commits
Select commit
Hold shift + click to select a range
bfe7a1c
ms stats thread added
e4b2d69
initial data collection for management server
0ce784b
empty list management server metrics command
1f039f0
bean copy into MS metrics object
1863967
ms status VO
de3b69e
further API and DB plumbing
29b93d5
minimal metrics response in API
742aa70
remove commented, refactor data collection plumbing
e78a0cd
javadocs
5d5aab5
surpress stacktrace on expected error
67ded98
update status experiment
baeb7ea
ms status publish framework added
d8ae1ed
review comment addressed
ebd4c82
static data to DB and API, /proc/ reading
d11c227
addressing review comments
7919536
ui for ms details
acac5c2
small ui adjustment
553292e
beanCopy
86d077d
agentcount response and system parameter
b271e17
labels
3de1321
package-lock
2b8f2d2
add version strings to regular list API
e500fde
add shutdown time to DB
54f46fb
add last start and last stop to regular list response
9d3fe7e
distro info in regular response/session count added
cd5b0f5
metrics as details
a5b68e9
add heap used and remove details map
0b92db3
thread-statusses
5b4697f
move db upgrade to 4.17
0b15e0f
sysmem
70c3164
procmem
267be46
ui demo comments applied
27a1589
javadoc
e772476
get conf and log file locations
2e70614
loginfo
675a4ae
cpuLoadStats
8ea7be0
no.remote
99703fd
extra spaces removed
5ef0e0f
clusterlistener
b31af5e
add unit to kb value
5b6b1e7
revert accidental rename
8f099f2
silly fqcn removed
5baab36
get mem info from bean is possible
bbaaae1
refactor long sequence for readability
caf402f
registerListener
929b905
listUsageMetrics and isDbLocal
356a3af
rats
eacda71
local usage and db or not
258b871
minimal listDbMetrics
982d1a6
db vars and stats
ee4ac6d
cleanup and #queries queried
f398bed
db stats calculation
a1a2260
rat
d111b55
remove list response wrapper from sinlge details-lists responses
227c35f
rudimentary metrics view
d45f8dc
metrics table cleanup
b9c8f97
table makeup, collection dates
e91771f
move component to appropriate location
477f9d2
capitalisation removed
076d6a7
rebase error resolved
d57f237
rename deamon to daemon
5d34448
small style comments applied
d907572
another merge issue
a6a7e0e
naming comments and boot time
d7ddf36
stop/start prefixed with server
726c03f
layout-fix
8ea08b4
listMSMetrics test and test refactor
d1f5fc5
usage metrics test
b0a4240
db metrics test
6076e9b
extra validations
b22fe87
Update ui/public/locales/en.json
DaanHoogland 3a7b3b7
descriptions of loadaverages and replica's
65b2844
collection time on top
a2c6897
cpu load on metrics overview
7b89e09
DbStatsCollection
90fe7da
some parameter description texts
87d81b5
labels adjusted
544f052
new output 'kernelversion' and log info cleanup
37c8200
labels
92dbd1f
Update api/src/main/java/com/cloud/server/ManagementServerHostStats.java
DaanHoogland 38704d1
Update plugins/metrics/src/main/java/org/apache/cloudstack/response/D…
DaanHoogland f5b3ab0
Update framework/cluster/src/main/java/com/cloud/cluster/dao/Manageme…
DaanHoogland d8b5c5b
Update framework/cluster/src/main/java/com/cloud/cluster/ClusterManag…
DaanHoogland 54192f7
Update api/src/main/java/org/apache/cloudstack/api/response/Managemen…
DaanHoogland 0ae1d43
Update api/src/main/java/org/apache/cloudstack/api/response/Managemen…
DaanHoogland 3ebcf60
Update engine/schema/src/main/java/com/cloud/host/dao/HostDao.java
DaanHoogland 42f526b
Update framework/cluster/src/main/java/com/cloud/cluster/ClusterManag…
DaanHoogland 2e4f6d8
Update framework/cluster/src/main/java/com/cloud/cluster/ClusterManag…
DaanHoogland 7362aee
Update server/src/main/java/com/cloud/server/StatsCollector.java
DaanHoogland 8088167
Update framework/cluster/src/main/java/com/cloud/cluster/ClusterManag…
DaanHoogland 469116e
Update framework/cluster/src/main/java/com/cloud/cluster/ClusterManag…
DaanHoogland 6927fd8
Update framework/cluster/src/main/java/com/cloud/cluster/dao/Manageme…
DaanHoogland 066f3fa
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 8c6df4a
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 7fbac63
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 6428310
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 65d2d3f
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 9dfed65
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 1c29f50
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 23da5f7
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 8cfa142
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland b296378
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland cfbc648
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland c445a7b
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland dc29a83
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 28af910
Update server/src/main/java/com/cloud/server/StatsCollector.java
DaanHoogland 73fbcd6
Update server/src/main/java/com/cloud/server/StatsCollector.java
DaanHoogland 9ae9174
Update server/src/main/java/com/cloud/server/StatsCollector.java
DaanHoogland 49baf8a
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland dae3d2b
Update plugins/metrics/src/main/java/org/apache/cloudstack/metrics/Me…
DaanHoogland 075ece5
some (more) refactorring suggestions applied
a527d8a
human readable memory sizes
cbe600b
rat
00d721e
actual collection time instead of query time, improved descriptions
fe6b1e5
merge errors fixed
2969924
optional metric values
3667de6
javadoc and logging
86abec3
names of jmx vars have changed
de000ed
vue3-compatibility
e42cbb0
new output parameter type
4712b5b
lower retention default
d00ec0d
vue3 fixes
c7d6441
polish comments
f81bc92
polish comments 2, the reckoning
0ce29fd
note on usage servers
207402f
merge conflict errors
40e807a
pollish
4588793
Merge remote-tracking branch 'origin/main' into mshostStats
yadvr e2b91a4
conditional assertion to deal with simulator restart
164e6b2
Merge branch 'main' into mshostStats
DaanHoogland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
113 changes: 113 additions & 0 deletions
113
api/src/main/java/com/cloud/server/ManagementServerHostStats.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| // | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| // | ||
| package com.cloud.server; | ||
|
|
||
| import java.util.Date; | ||
|
|
||
| /** | ||
| * management server related stats | ||
| */ | ||
| public interface ManagementServerHostStats { | ||
| Date getCollectionTime(); | ||
|
|
||
| Date getSystemBootTime(); | ||
|
|
||
| long getManagementServerHostId(); | ||
|
|
||
| String getManagementServerHostUuid(); | ||
|
|
||
| long getSessions(); | ||
|
|
||
| double getCpuUtilization(); | ||
|
|
||
| long getTotalJvmMemoryBytes(); | ||
|
|
||
| double getFreeJvmMemoryBytes(); | ||
|
|
||
| long getProcessJvmMemoryBytes(); | ||
|
|
||
| long getJvmUptime(); | ||
|
|
||
| long getJvmStartTime(); | ||
|
|
||
| int getAvailableProcessors(); | ||
|
|
||
| double getLoadAverage(); | ||
|
|
||
| long getTotalInit(); | ||
|
|
||
| long getTotalUsed(); | ||
|
|
||
| long getMaxJvmMemoryBytes(); | ||
|
|
||
| long getTotalCommitted(); | ||
|
|
||
| long getPid(); | ||
|
|
||
| String getJvmName(); | ||
|
|
||
| String getJvmVendor(); | ||
|
|
||
| String getJvmVersion(); | ||
|
|
||
| String getOsDistribution(); | ||
|
|
||
| int getAgentCount(); | ||
|
|
||
| long getHeapMemoryUsed(); | ||
|
|
||
| long getHeapMemoryTotal(); | ||
|
|
||
| int getThreadsBlockedCount(); | ||
|
|
||
| int getThreadsTotalCount(); | ||
|
|
||
| int getThreadsDaemonCount(); | ||
|
|
||
| int getThreadsRunnableCount(); | ||
|
|
||
| int getThreadsTerminatedCount(); | ||
|
|
||
| int getThreadsWaitingCount(); | ||
|
|
||
| long getSystemMemoryTotal(); | ||
|
|
||
| long getSystemMemoryFree(); | ||
|
|
||
| long getSystemMemoryUsed(); | ||
|
|
||
| long getSystemMemoryVirtualSize(); | ||
|
|
||
| String getLogInfo(); | ||
|
|
||
| /** | ||
| * @return in mega hertz | ||
| */ | ||
| double getSystemTotalCpuCycles(); | ||
|
|
||
| double[] getSystemLoadAverages(); | ||
|
|
||
| long[] getSystemCyclesUsage(); | ||
|
|
||
| boolean isDbLocal(); | ||
|
|
||
| boolean isUsageLocal(); | ||
|
|
||
| String getKernelVersion(); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
api/src/main/java/org/apache/cloudstack/management/ManagementServerStatus.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| package org.apache.cloudstack.management; | ||
|
|
||
| import org.apache.cloudstack.api.InternalIdentity; | ||
|
|
||
| import java.util.Date; | ||
|
|
||
| public interface ManagementServerStatus extends InternalIdentity { | ||
| long getId(); | ||
|
|
||
| String getMsId(); | ||
|
|
||
| Date getLastJvmStart(); | ||
|
|
||
| Date getLastJvmStop(); | ||
|
|
||
| Date getLastSystemBoot(); | ||
|
|
||
| String getOsDistribution(); | ||
|
|
||
| String getJavaName(); | ||
|
|
||
| String getJavaVersion(); | ||
|
|
||
| Date getUpdated(); | ||
|
|
||
| Date getCreated(); | ||
|
|
||
| Date getRemoved(); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.