Skip to content

Conversation

@tomwilkie
Copy link
Contributor

Signed-off-by: Tom Wilkie [email protected]

Copy link
Contributor

@bergquist bergquist left a comment

Choose a reason for hiding this comment

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

👍

Signed-off-by: Tom Wilkie <[email protected]>
@tomwilkie tomwilkie merged commit 922d0fe into master Feb 17, 2021
@tomwilkie tomwilkie deleted the all-value branch February 17, 2021 11:43
bboreham added a commit to grafana/cortex-jsonnet that referenced this pull request Aug 18, 2021
Brings in the following changes:
- Use default as a picker value for datasource variable grafana/jsonnet-libs#204
- allow table link in new tab grafana/jsonnet-libs#238
- allow setting a default datasource grafana/jsonnet-libs#301
- Add textPanel grafana/jsonnet-libs#341
- make status code label name overrideable in qpsPanel grafana/jsonnet-libs#397
- use $__rate_interval over $__interval grafana/jsonnet-libs#401
- Set shared tooltip to false by default grafana/jsonnet-libs#458
- Use custom 'all' value to avoid massive regexes in queries. grafana/jsonnet-libs#469

https://github.com/grafana/jsonnet-libs/commits/master/grafana-builder/
bboreham added a commit to grafana/cortex-jsonnet that referenced this pull request Aug 18, 2021
Brings in the following changes:
- Use default as a picker value for datasource variable grafana/jsonnet-libs#204
- allow table link in new tab grafana/jsonnet-libs#238
- allow setting a default datasource grafana/jsonnet-libs#301
- Add textPanel grafana/jsonnet-libs#341
- make status code label name overrideable in qpsPanel grafana/jsonnet-libs#397
- use $__rate_interval over $__interval grafana/jsonnet-libs#401
- Set shared tooltip to false by default grafana/jsonnet-libs#458
- Use custom 'all' value to avoid massive regexes in queries. grafana/jsonnet-libs#469

https://github.com/grafana/jsonnet-libs/commits/master/grafana-builder/
yvrhdn pushed a commit to yvrhdn/jsonnet-libs that referenced this pull request Nov 26, 2021
grafana#469 changed the default allValue for addMultiTemplate from `null` to `'.+'`. I want to make it configurable.

Reason: we use addMultiTemplate to add a namespace dropdown in the tempo-mixin:

https://github.com/grafana/tempo/blob/a1a95b35e15741061fc7119256aaeab78083dfbc/operations/tempo-mixin/dashboard-utils.libsonnet#L28
https://github.com/grafana/tempo/blob/a1a95b35e15741061fc7119256aaeab78083dfbc/operations/tempo-mixin/yamls/tempo-resources.json#L1873-L1900

This dropdown is populated with the namespaces a Tempo cluster is running in. The current behaviour (with `allValue: '.+'`) is confusing, because selecting All in the dropdown ends up querying all namespaces.
The previous behaviour (with `allValue: null`) only queries the namespaces that are returned by the query.

The reason we got confused is that in our dashboard you can select a cluster and if you know there is only 1 Tempo namespace in that cluster you kind of expect to only see data from that namespace. But with `allValue: '.+'` you get data from all namespaces in that cluster. So we're mistakenly looking at queriers from a non-Tempo cluster and wondering why CPU was so high.
tomwilkie pushed a commit that referenced this pull request Nov 26, 2021
#469 changed the default allValue for addMultiTemplate from `null` to `'.+'`. I want to make it configurable.

Reason: we use addMultiTemplate to add a namespace dropdown in the tempo-mixin:

https://github.com/grafana/tempo/blob/a1a95b35e15741061fc7119256aaeab78083dfbc/operations/tempo-mixin/dashboard-utils.libsonnet#L28
https://github.com/grafana/tempo/blob/a1a95b35e15741061fc7119256aaeab78083dfbc/operations/tempo-mixin/yamls/tempo-resources.json#L1873-L1900

This dropdown is populated with the namespaces a Tempo cluster is running in. The current behaviour (with `allValue: '.+'`) is confusing, because selecting All in the dropdown ends up querying all namespaces.
The previous behaviour (with `allValue: null`) only queries the namespaces that are returned by the query.

The reason we got confused is that in our dashboard you can select a cluster and if you know there is only 1 Tempo namespace in that cluster you kind of expect to only see data from that namespace. But with `allValue: '.+'` you get data from all namespaces in that cluster. So we're mistakenly looking at queriers from a non-Tempo cluster and wondering why CPU was so high.
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