Skip to content

Conversation

@schmikei
Copy link
Contributor

@schmikei schmikei commented Nov 14, 2025

  • Renamed Alerts
  • Modernizes the Mixin (it is kind of cookie cutter so happy to maybe make some changes)
    Screenshots:

Microsoft IIS overview:
image
image

Microsoft IIS applications:
image
image

@schmikei schmikei marked this pull request as ready for review November 14, 2025 21:29
@schmikei schmikei requested a review from a team as a code owner November 14, 2025 21:29
@schmikei schmikei changed the title IIS Modernization chore: IIS Modernization Nov 14, 2025
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.

Only comment so far here is to perhaps reuse the common-lib panels a tad more, but overall I'm happy enough with this as-is.

It's cookie-cutter yes, and I remember that was something we discussed originally as well (same as some panels being "noisy" but we actually want to show 0 values in this one)

I have no real suggestions for improvements here, aside from potentially duplicating some panels as stat panels for a top row, but let's discuss in our sync


// Overview - Requests
requests:
commonlib.panels.generic.timeSeries.base.new(
Copy link
Member

Choose a reason for hiding this comment

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

Any chance this could be converted to the common requests panel? https://github.com/grafana/jsonnet-libs/tree/master/common-lib/common/panels/requests/timeSeries

+ g.panel.timeSeries.options.legend.withAsTable(true),

requestErrors:
commonlib.panels.generic.timeSeries.base.new(
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

@aalhour aalhour left a comment

Choose a reason for hiding this comment

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

I have a few requests for changes 🙏

  • There is a bug with an existing alert that you didn't touch and I added it to the issue https://github.com/grafana/cloud-onboarding/issues/9972 as an example.
  • There are a few instances of increase(...) function not using the proper interval with offset, i.e.: [$__interval:] offset $__interval
  • There are a few counter signals missing the rangeFunction but a couple of others have it
  • There is a potential issue in the config.libsonnet file
  • A few other minor comments

blockedAsyncIORequests: {
name: 'Blocked async I/O requests',
type: 'counter',
rangeFunction: 'increase',
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this one!

// Requests signals
requests: {
name: 'Requests per second',
type: 'counter',
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this counter signal need a rangeFunction as well, similar to blockedAsyncIORequests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By default counters will default to the rate(...)[$__rate_interval] function. It was intentionally not placed but can be explicitly set to rate if you'd like!


lockedErrors: {
name: 'Locked errors per second',
type: 'counter',
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this counter signal need a rangeFunction as well, similar to blockedAsyncIORequests?


notFoundErrors: {
name: 'Not found errors per second',
type: 'counter',
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this counter signal need a rangeFunction as well, similar to blockedAsyncIORequests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same comment about default counter => rate

// Data transfer signals
bytesSent: {
name: 'Bytes sent per second',
type: 'counter',
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this counter signal need a rangeFunction as well, similar to blockedAsyncIORequests?

unit: 'percent',
sources: {
prometheus: {
expr: 'increase(windows_iis_server_metadata_cache_hits_total{%(queriesSelector)s}[$__interval:]) / clamp_min(increase(windows_iis_server_metadata_cache_queries_total{%(queriesSelector)s}[$__interval:]),1) * 100',
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment about [$__interval:], it should be [$__interval:] offset $__interval

unit: 'percent',
sources: {
prometheus: {
expr: 'increase(windows_iis_server_output_cache_hits_total{%(queriesSelector)s}[$__interval:]) / clamp_min(increase(windows_iis_server_output_cache_queries_total{%(queriesSelector)s}[$__interval:]), 1) * 100',
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment about [$__interval:], it should be [$__interval:] offset $__interval

panels.uriCacheHitRatio { gridPos+: { w: 12 } },
panels.metadataCacheHitRatio { gridPos+: { w: 12 } },
panels.outputCacheHitRatio { gridPos+: { w: 12 } },
]),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this row used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah another line I missed, sincere apologies are in order 👎

+ g.panel.timeSeries.standardOptions.withUnit('requests')
+ g.panel.timeSeries.standardOptions.withMin(0)
+ g.panel.timeSeries.options.legend.withPlacement('bottom')
+ g.panel.timeSeries.options.tooltip.withMode('none'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be tooltip.withMode('multi') instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Original had it as none was the original reason that this was set as none

image

I do however think we should use the commonlib defaults here though as I see no original design decision to modify the default.

]
)
+ g.panel.timeSeries.panelOptions.withDescription('The number of current connections to an IIS site.')
+ g.panel.timeSeries.options.legend.withPlacement('bottom'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this panel also define a withMin(0) similar to the blockedAsyncIORequests panel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually think we should just drop that override from the commonlib in these cases. Will go ahead and do that as I'm not sure of the scenarios where we are using + g.panel.timeSeries.standardOptions.withMin(0) actually would benefit from the setting.

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.

Went back to this with fresh eyes and found a couple things, but overall I think structure is fine given what this mixin is

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.

LGTM, thanks @schmikei

Copy link
Contributor

@aalhour aalhour left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a bunch!

@schmikei schmikei enabled auto-merge (squash) December 16, 2025 20:23
@schmikei schmikei merged commit 133b9f2 into grafana:master Dec 17, 2025
10 of 11 checks passed
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