-
Notifications
You must be signed in to change notification settings - Fork 18
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
add system uptime capability #210
Conversation
@guangyee don't we need a config option in suseconnect to enable the uptime collection? What's the planned way for customers to turn the collection on/off? |
Per my understanding, in the short term, by installing and enabling the |
I don't think it's a good idea to assume customer agreement on collecting system uptime data by presence of a specific package. The package could already be installed on the image, or get pulled in unintentionally. |
Sorry I wasn't clear earlier. It's not just the presence of the |
I think that needs to get decided in the project planning regarding what is the desired UX enabling that feature. |
my understanding is the feedback is to have configurations for both connect-ng and the uptime tracker... I'm not sure why we want to require the customer to enable it twice, in addition to having the required packages and services configured. If we put a config option in suseconnect-ng, then for the tracker service itself, the presence of the package and the service running should be sufficient... That would look something like:
|
@digitaltom @jeremy-moffitt I will add a flag |
f56e490
to
a7548bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per my understanding, we will not be exposing this option in CLI as it is meant to control whether keepalive heartbeat will send the system uptime log. Sending system uptime log is only meaningful when working in conjunction with keepalive. |
I agree on this. We spoke about this in one of the MSP syncs and all agreed there is no need for a CLI option. Maybe you can provide test instructions how to test this pull request? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guangyee this PR is good to merge but need to do 2 things:
- Rebase/merge from/unto
main
- add an entry into changelog for release 1.9.0 (
suseconnect-ng.changes
)
a7548bb
to
75fdd55
Compare
Done. Thanks for the suggestion. |
We have created some preliminary instructions for the MSPs on how to enable the feature. We can use that for our testing. https://confluence.suse.com/display/CloudSolutions/White+paper+documentation |
6ed6e5c
to
35f6eee
Compare
35f6eee
to
dc8d503
Compare
Performed the end to end testing along with SCC latest PR https://github.com/SUSE/happy-customer/pull/7339 and RMT PR SUSE/rmt#1091 and verified following scenarios
Also Validated backward and forward compatibility tests
|
774f254
to
33e9720
Compare
33e9720
to
f4e9550
Compare
f71755f
to
c82e931
Compare
90efcc6
to
978fd8d
Compare
Add the ability to upload the system uptime logs, produced by the suse-uptime-tracker daemon, to SCC/RMT as part of daily heartbeat report. We need to ability to track system uptime to hourly granularity so MSPs can utility that data accordingly (i.e. billing). This feature is optionally enabled by installing the suse-uptime-tracker package, enabling the suse-uptime-tracker.timer service, and setting the `enable_system_uptime_tracking` flag to `true` in `/etc/SUSEConnect` configuration file.
Add the ability to upload the system uptime logs, produced by the suse-uptime-tracker daemon, to SCC/RMT as part of daily heartbeat report. We need to ability to track system uptime to hourly granularity so MSPs can utility that data accordingly (i.e. billing). This feature is optionally enabled by installing the suse-uptime-tracker package, enabling the suse-uptime-tracker.timer service, and setting the `enable_system_uptime_tracking` flag to `true` in `/etc/SUSEConnect` configuration file.
978fd8d
to
b71f3d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Add the ability to upload the system uptime logs, produced by the suse-uptime-tracker daemon, to SCC/RMT as part of daily heartbeat report. We need to ability to track system uptime to hourly granularity so MSPs can utility that data accordingly (i.e. billing).
This feature is optionally enabled by installing the suse-uptime-tracker package and enabling the suse-uptime-tracker.timer service.