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

InfluxDB: Add custom metadata to first frame #87601

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

itsmylife
Copy link
Contributor

@itsmylife itsmylife commented May 10, 2024

What is this feature?

Some users use proxy between influxdb and grafana and want to return custom metadata to grafana frontend so that can be seen in "Query Inspector". We introduced "influx_response" field for this custom data. The data will be read and add to the first frame metadata field if it is present in the influxdb response.

Example JSON:

{
  "results": [
    {
      "series": [
        {
          "name": "cpu.upc",
          "columns": [
            "time",
            "mean",
            "sum"
          ],
          "tags": {
            "datacenter": "America",
            "dc.region.name": "Northeast",
            "cluster-name": "Cluster",
            "/cluster/name/": "Cluster/",
            "@cluster@name@": "Cluster@"
          },
          "values": [
            [
              111,
              222,
              333
            ]
          ]
        }
      ]
    }
  ],
  "influx_response": {
    "server": "some-server",
    "status": 200,
    "eggs": "over-easy"
  }
}

Why do we need this feature?

Providing some more flexibility for users wants to share custom metadata

Who is this feature for?

InfluxDB influxql users

@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.1.x milestone May 10, 2024
@itsmylife itsmylife changed the title Ismail/influxdb custom metadata InfluxDB: Add custom metadata to first frame May 10, 2024
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.

None yet

1 participant