-
Notifications
You must be signed in to change notification settings - Fork 147
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
K8SPSMDB-1174: Improve telemetry requests #1725
Conversation
Before these changes, operator was only sending telemetry requests to version service while cluster is newly deployed. This makes it impossible for us to track usage of new features in long running clusters. With these changes, operator will configure a cronjob to send telemetry requests every hour at a random minute. Also, I added some fields that we're missing: 1. VolumeExpansionEnabled 2. MCSEnabled 3. UserManagementEnabled 4. RoleManagementEnabled
for the version service apply operation. | ||
|
||
Typically these are written to a http.Request. | ||
/*VersionServiceApplyParams contains all the parameters to send to the API endpoint |
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.
[gofmt] reported by reviewdog 🐶
/*VersionServiceApplyParams contains all the parameters to send to the API endpoint | |
/* | |
VersionServiceApplyParams contains all the parameters to send to the API endpoint |
@@ -46,8 +46,7 @@ func NewVersionServiceApplyOK() *VersionServiceApplyOK { | |||
return &VersionServiceApplyOK{} | |||
} | |||
|
|||
/* | |||
VersionServiceApplyOK describes a response with status code 200, with default header values. | |||
/*VersionServiceApplyOK handles this case with default header values. |
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.
[gofmt] reported by reviewdog 🐶
/*VersionServiceApplyOK handles this case with default header values. | |
/* | |
VersionServiceApplyOK handles this case with default header values. |
@@ -81,10 +81,9 @@ | |||
} | |||
} | |||
|
|||
/* | |||
VersionServiceApplyDefault describes a response with status code -1, with default header values. | |||
/*VersionServiceApplyDefault handles this case with default header values. |
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.
[gofmt] reported by reviewdog 🐶
/*VersionServiceApplyDefault handles this case with default header values. | |
/* | |
VersionServiceApplyDefault handles this case with default header values. |
|
||
SetTransport(transport runtime.ClientTransport) | ||
} | ||
|
||
/* | ||
VersionServiceApply specifics version | ||
VersionServiceApply specifics version |
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.
[gofmt] reported by reviewdog 🐶
VersionServiceApply specifics version | |
VersionServiceApply specifics version |
|
||
Return specific product version | ||
Return specific product version |
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.
[gofmt] reported by reviewdog 🐶
Return specific product version | |
Return specific product version |
@@ -46,8 +46,7 @@ func NewVersionServiceOperatorOK() *VersionServiceOperatorOK { | |||
return &VersionServiceOperatorOK{} | |||
} | |||
|
|||
/* | |||
VersionServiceOperatorOK describes a response with status code 200, with default header values. | |||
/*VersionServiceOperatorOK handles this case with default header values. |
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.
[gofmt] reported by reviewdog 🐶
/*VersionServiceOperatorOK handles this case with default header values. | |
/* | |
VersionServiceOperatorOK handles this case with default header values. |
@@ -81,10 +81,9 @@ | |||
} | |||
} | |||
|
|||
/* | |||
VersionServiceOperatorDefault describes a response with status code -1, with default header values. | |||
/*VersionServiceOperatorDefault handles this case with default header values. |
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.
[gofmt] reported by reviewdog 🐶
/*VersionServiceOperatorDefault handles this case with default header values. | |
/* | |
VersionServiceOperatorDefault handles this case with default header values. |
for the version service product operation. | ||
|
||
Typically these are written to a http.Request. | ||
/*VersionServiceProductParams contains all the parameters to send to the API endpoint |
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.
[gofmt] reported by reviewdog 🐶
/*VersionServiceProductParams contains all the parameters to send to the API endpoint | |
/* | |
VersionServiceProductParams contains all the parameters to send to the API endpoint |
@@ -46,8 +46,7 @@ func NewVersionServiceProductOK() *VersionServiceProductOK { | |||
return &VersionServiceProductOK{} | |||
} | |||
|
|||
/* | |||
VersionServiceProductOK describes a response with status code 200, with default header values. | |||
/*VersionServiceProductOK handles this case with default header values. |
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.
[gofmt] reported by reviewdog 🐶
/*VersionServiceProductOK handles this case with default header values. | |
/* | |
VersionServiceProductOK handles this case with default header values. |
@@ -81,10 +81,9 @@ | |||
} | |||
} | |||
|
|||
/* | |||
VersionServiceProductDefault describes a response with status code -1, with default header values. | |||
/*VersionServiceProductDefault handles this case with default header values. |
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.
[gofmt] reported by reviewdog 🐶
/*VersionServiceProductDefault handles this case with default header values. | |
/* | |
VersionServiceProductDefault handles this case with default header values. |
CHANGE DESCRIPTION
Before these changes, operator was only sending telemetry requests to version service while cluster is newly deployed. This makes it impossible for us to track usage of new features in long running clusters.
With these changes, operator will configure a cronjob to send telemetry requests every hour at a random minute.
Also, I added some fields that we're missing:
version-service PR: Percona-Lab/percona-version-service#334
CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
compare/*-oc.yml
)?Config/Logging/Testability