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

Alert: labels missing for query results with named columns #1124

Open
k-meister opened this issue Jan 20, 2025 · 1 comment
Open

Alert: labels missing for query results with named columns #1124

k-meister opened this issue Jan 20, 2025 · 1 comment
Labels
datasource/ClickHouse type/bug Something isn't working

Comments

@k-meister
Copy link

k-meister commented Jan 20, 2025

What happened:
Hi guys!
When creating an Alert Rule on Clickhouse datasource, you get series named after query only.
Column names given in the query itself is missing completely.

Screenshots:

Image Image

Why is it important
It's common for us to select for multiple metrics in one query.
Having this problem, alert rule fires with just "Value" in payload, instead of the name of the metric.
Thus, engineers have to browse to dashboard panel and do a research on which metric has gone wrong.

What you expected to happen:
Series' labels to contain names given in SELECT clause.

How to reproduce it (as minimally and precisely as possible):
Just make a query as on the first screenshot.

Anything else we need to know?:
On a dashboard panel, this thing seems to work fine, it's an alert rule that's affected.

Environment:

  • Grafana version: Any 11.2+ (at least)
  • Plugin version: 4.3.2
  • OS Grafana is installed on: Dont know
  • User OS & Browser: Any
@k-meister k-meister added datasource/ClickHouse type/bug Something isn't working labels Jan 20, 2025
@SpencerTorres
Copy link
Collaborator

SpencerTorres commented Jan 23, 2025

It appears the alises are provided correctly in the query, not sure why only E is showing for both lines in your screenshot.

Perhaps the Grafana team has some ideas? @bossinc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/ClickHouse type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants