-
Notifications
You must be signed in to change notification settings - Fork 590
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
feat(telemetry): collect deploy mode in telemetry #17392
Conversation
proto/telemetry.proto
Outdated
TELEMETRY_CLUSTER_TYPE_SINGLE_NODE = 1; | ||
TELEMETRY_CLUSTER_TYPE_TEST = 2; | ||
TELEMETRY_CLUSTER_TYPE_DOCKER_COMPOSE = 3; | ||
TELEMETRY_CLUSTER_TYPE_KUBERNETES = 4; |
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.
I think we should differentiate kubernetes deployments with cloud deployments.
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.
Cloud use TELEMETRY_CLUSTER_TYPE_HOSTED
, setting by @arkbriar
see
const TELEMETRY_CLUSTER_TYPE_HOSTED: &str = "hosted"; // hosted on RisingWave Cloud |
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.
Not set yet.
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.
Set now.
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.
The implementation LGTM.
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
proto/telemetry.proto
Outdated
TELEMETRY_CLUSTER_TYPE_UNSPECIFIED = 0; | ||
TELEMETRY_CLUSTER_TYPE_SINGLE_NODE = 1; | ||
TELEMETRY_CLUSTER_TYPE_TEST = 2; | ||
TELEMETRY_CLUSTER_TYPE_DOCKER_COMPOSE = 3; | ||
TELEMETRY_CLUSTER_TYPE_KUBERNETES = 4; | ||
TELEMETRY_CLUSTER_TYPE_HOSTED = 5; | ||
TELEMETRY_CLUSTER_TYPE_STANDALONE = 6; |
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.
These concepts are not orthogonal. For example, the CI/CD pipeline may run tests in standalone mode, making it confusing to different people.
I tend to use 2 separated dimensions
- Is it a test or development instance? If yes, should be excluded from telemetry. I think our existing
TELEMETRY_ENABLED
is enough for this usage. - If it's a production cluster, how it is deployed? e.g. docker-compose, Kubernetes or standalone.
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.
Make sense, let's make the TELEMETRY_ENABLED
default to true.
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
aligned behavior:
|
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]> Co-authored-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]> Co-authored-by: Bohan Zhang <[email protected]> Co-authored-by: tabVersion <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.