Skip to content
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

demo: Add telemetry about usage of new demo features. #40883

Merged
merged 1 commit into from
Sep 18, 2019

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Sep 18, 2019

This PR adds telemetry for some of the new features added to cockroach
demo (nodes, with-load, localities, geo-partitioned-replicas).

It isn't straight forward how to test this, as there seems to be a race
between the background thread that flushes telemetry and actually
querying for the counter's values on startup.

Work towards #228.

Release justification: Low risk monitoring improvement.

Release note: None

@rohany rohany requested review from rafiss and a team September 18, 2019 19:28
@rohany rohany requested a review from a team as a code owner September 18, 2019 19:28
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @rafiss and @rohany)


pkg/cli/demo_telemetry.go, line 21 at r1 (raw file):

type demoTelemetry int

const (

Add comments to this stuff even though it's kind of trivial. Just mention that it corresponds to the flags to demo.

This PR adds telemetry for some of the new features added to cockroach
demo (nodes, with-load, localities, geo-partitioned-replicas).

It isn't straight forward how to test this, as there seems to be a race
between the background thread that flushes telemetry and actually
querying for the counter's values on startup.

Work towards cockroachdb#228.

Release justification: Low risk monitoring improvement.

Release note: None
Copy link
Contributor Author

@rohany rohany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jordanlewis and @rafiss)


pkg/cli/demo_telemetry.go, line 21 at r1 (raw file):

Previously, jordanlewis (Jordan Lewis) wrote…

Add comments to this stuff even though it's kind of trivial. Just mention that it corresponds to the flags to demo.

Done.

@rohany rohany requested review from a team and jordanlewis September 18, 2019 21:23
@rohany
Copy link
Contributor Author

rohany commented Sep 18, 2019

bors r=jordanlewis

craig bot pushed a commit that referenced this pull request Sep 18, 2019
40883: demo: Add telemetry about usage of new demo features. r=jordanlewis a=rohany

This PR adds telemetry for some of the new features added to cockroach
demo (nodes, with-load, localities, geo-partitioned-replicas).

It isn't straight forward how to test this, as there seems to be a race
between the background thread that flushes telemetry and actually
querying for the counter's values on startup.

Work towards #228.

Release justification: Low risk monitoring improvement.

Release note: None

Co-authored-by: Rohan Yadav <rohany@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Sep 18, 2019

Build succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants