Skip to content

MSSQL Modernization #1450

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

schmikei
Copy link
Contributor

@schmikei schmikei commented Jun 11, 2025

  • Utilizing common-lib, logs-lib and grafonnet for most of the mixin generation
  • Following inspiration for more recently updated mixins like Vsphere

This involves separating out the MSSQL Overview dashboard to separate logs and metrics. This would require some new screenshots.

image image image

@schmikei schmikei marked this pull request as ready for review June 11, 2025 18:34
@schmikei schmikei requested a review from a team as a code owner June 11, 2025 18:34
Comment on lines 6 to 16
database:
[
g.panel.row.new('Database'),
this.grafana.panels.databaseWriteStallDurationPanel
+ g.panel.timeSeries.gridPos.withW(12),
this.grafana.panels.databaseReadStallDurationPanel
+ g.panel.timeSeries.gridPos.withW(12),
this.grafana.panels.transactionLogExpansionsPanel
+ g.panel.timeSeries.gridPos.withW(24),
],
},
Copy link
Contributor

Choose a reason for hiding this comment

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

best if row panels are added not as array but inside
g.panel.row.withPanels() function. This way it is possible to toggle rows collapsed/uncollapsed.

example:
https://github.com/grafana/jsonnet-libs/blob/master/kafka-observ-lib/rows.libsonnet#L25-L33.
and then:
https://github.com/grafana/jsonnet-libs/blob/master/kafka-observ-lib/dashboards.libsonnet#L33-L52

Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

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

Couple minor comments but overall this looks great to me!
Admittedly a bit rusty on this what with PTO and all so leaving final approval up to @v-zhuravlev

Copy link
Member

Choose a reason for hiding this comment

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

Missing .json filetype on this and the mssql_overview files

"keepTime": true,
"title": "MSSQL Overview",
"type": "link",
"url": "/d/mssql_mssql_overview"
Copy link
Member

Choose a reason for hiding this comment

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

I know this is generated, but it feels like a weird change to have mssql twice in the URL?

@schmikei
Copy link
Contributor Author

schmikei commented Jul 1, 2025

@v-zhuravlev just curious, do you think we should just default to using signals for this PR as well? I think the API is nice to use and gives us more flexibility probably moving forward.

@v-zhuravlev
Copy link
Contributor

@v-zhuravlev just curious, do you think we should just default to using signals for this PR as well? I think the API is nice to use and gives us more flexibility probably moving forward.

yes, it would be great using Signals where possible.

I also see asTarget() as first transitional step for easier migration,

using asTimeSeries() and asPanelMixin(), asTable(), asTableRow() (which propogate units, value mappings from signals) are even better for panel constructions from signals, I encourage you take a look in README or other observ-libs, like kafka, jvm etc.

But let's finish off Clickhouse first.

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

Successfully merging this pull request may close these issues.

3 participants