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

sqltelemetry: make SQL telemetry more uniform, w/ linter #35647

Merged
merged 1 commit into from
Mar 12, 2019

Conversation

knz
Copy link
Contributor

@knz knz commented Mar 12, 2019

This patch groups the telemetry counters for the SQL layer into a
single package sqltelemetry. The package aims to document the
telemetry counter in a way that's easily understandable / discoverable
without having to read code.

This also introduces the pattern required by @dt: that telemetry
counter names generated dynamically to be generated in a way that's
regular, subject to later formalization via a new API
telemetry.GetCounterf() (so that we can automate the inventorization
of all telemetry counters). This patch ensures that all the dynamic
counter names go to GetCounter(fmt.Sprintf(...)), which we'll be
able to re-structure at a later point.

Finally it introduces the prefix sql.plan, in anticipation of a
further split between sql.parse, sql.plan, sql.exec.

Release note: None

@knz knz requested review from dt, bobvawter and BramGruneir March 12, 2019 15:41
@knz knz requested review from a team March 12, 2019 15:41
@cockroach-teamcity
Copy link
Member

This change is Reviewable

This patch groups the telemetry counters for the SQL layer into a
single package `sqltelemetry`. The package aims to document the
telemetry counter in a way that's easily understandable / discoverable
without having to read code.

This also introduces the pattern required by @dt: that telemetry
counter names generated dynamically to be generated in a way that's
regular, subject to later formalization via a new API
`telemetry.GetCounterf()` (so that we can automate the inventorization
of all telemetry counters). This patch ensures that all the dynamic
counter names go to `GetCounter(fmt.Sprintf(...))`, which we'll be
able to re-structure at a later point.

Finally it introduces the prefix `sql.plan`, in anticipation of a
further split between `sql.parse`, `sql.plan`, `sql.exec`.

Release note: None
@knz knz force-pushed the 20190312-extra-telemetry branch from 5497249 to df6bba0 Compare March 12, 2019 16:03
@knz knz requested a review from maddyblue March 12, 2019 17:32
@knz
Copy link
Contributor Author

knz commented Mar 12, 2019

thank you!

bors r+

craig bot pushed a commit that referenced this pull request Mar 12, 2019
35517: build: Upgrade base image for deployment dockerfile r=mberhault a=bdarnell

Debian 8.x has unpatched security vulnerabilities in the glibc
package (even though it's supposed to be in its LTS period?), so
upgrade to the current 9.x.

https://security-tracker.debian.org/tracker/source-package/glibc

Release note (build change): Release Docker images are now built on
Debian 9.8.

35647: sqltelemetry: make SQL telemetry more uniform, w/ linter r=knz a=knz

This patch groups the telemetry counters for the SQL layer into a
single package `sqltelemetry`. The package aims to document the
telemetry counter in a way that's easily understandable / discoverable
without having to read code.

This also introduces the pattern required by @dt: that telemetry
counter names generated dynamically to be generated in a way that's
regular, subject to later formalization via a new API
`telemetry.GetCounterf()` (so that we can automate the inventorization
of all telemetry counters). This patch ensures that all the dynamic
counter names go to `GetCounter(fmt.Sprintf(...))`, which we'll be
able to re-structure at a later point.

Finally it introduces the prefix `sql.plan`, in anticipation of a
further split between `sql.parse`, `sql.plan`, `sql.exec`.

Release note: None

35656: sql: add telemetry for SERIAL expansions r=knz a=knz

First commit from  #35647.
Informs https://github.com/cockroachlabs/registration/issues/203

This adds telemetry for the SERIAL expansion strategies.

Counter format: `sql.schema.serial.<normtype>.<coltype>`

For example: `sql.schema.serial.rowid.SERIAL2`

Release note (sql change): CockroachDB will now report how the SERIAL
pseudo-type is expanded in table column definitions, when telemetry is
enabled.


Co-authored-by: Ben Darnell <[email protected]>
Co-authored-by: Raphael 'kena' Poss <[email protected]>
@craig
Copy link
Contributor

craig bot commented Mar 12, 2019

Build succeeded

@craig craig bot merged commit df6bba0 into cockroachdb:master Mar 12, 2019
@knz knz deleted the 20190312-extra-telemetry branch March 12, 2019 18:19
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