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

Support pulling Units, and other metadata from PostgreSQL datasource #27345

Open
Tracked by #72612
markfarnan opened this issue Sep 2, 2020 · 4 comments
Open
Tracked by #72612
Labels
datasource/Postgres needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc type/feature-request

Comments

@markfarnan
Copy link

markfarnan commented Sep 2, 2020

What would you like to be added:

Allow PostgreSQL / Timescale plugin to pull panel metadata from the data-source. Specifically units and metric display name at a minimum, though other parameters may be useful to some panels.

Why is this needed:

A major feature of Timeseries datastores based on relational database (like Timescale) is they contain both the series, and all metadata relevant to that series. In complex IIOT use cases there can be hundreds of different units and quantity kinds in play.

For efficient dashboard creation, it is better to be able to pull this metadata (or 'overrides') from the data-source, than it is to require users to have to manually set it within the panels.

A manual approach is:

  • Time consuming for operations and end users
  • Error prone
  • Duplicates information
  • Limits highly dynamic dashboarding.

Based on chat in Slack, believe this feature requires upgrading the PostgreSQL plugin to support Data frames, which can carry this metadata, and relevant UI changes to allow for its selection.

Refer: #22918

@hugohaggmark
Copy link
Contributor

@markfarnan I guess there will not be any work on this until #22918 has finished Postgres work

@marefr marefr removed this from Features in Backend Platform Backlog Sep 29, 2020
@markfarnan
Copy link
Author

Looks like #22918 was completed, so any chance this functionality could now be looked at ?

I'm back looking at Grafana for a serious IoT project. Being able to pull metadata from the DB is required.

@mdvictor
Copy link
Contributor

mdvictor commented Jun 2, 2023

Hey @markfarnan, I understand the need for this. We need to further discuss it internally and plan for it accordingly. I cannot give you an estimate yet but I can tell you that we have this under our radar.

@gabor
Copy link
Contributor

gabor commented Oct 23, 2023

hi @markfarnan , to avoid potential misunderstandings, could you give a specific example of this behavior that you'd like to have?

for example, describe a timescaledb schema, and how it should be visible in grafana.

thanks!

@gabor gabor added pr/awaiting-info Awaiting external input needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc and removed pr/awaiting-info Awaiting external input labels Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/Postgres needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc type/feature-request
Projects
Status: Backlog
Development

No branches or pull requests

4 participants