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 Influxdb #147

Open
lohrm-stabl opened this issue Nov 8, 2023 · 1 comment
Open

Support Influxdb #147

lohrm-stabl opened this issue Nov 8, 2023 · 1 comment
Labels
plugin Support for plugins

Comments

@lohrm-stabl
Copy link

Currently, there are no query target helpers/functions (not sure what the correct terminology is) for InfluxDB InfluxQL nor InfluxDB Flux.
It would be great to have them at least for InfluxQL, as this data source is quite popular.

The way it has to be done right now:

+ g.panel.timeSeries.queryOptions.withTargets([
        time.queryOptions.withDatasource('influxdb', influxFluxDataSource)
        + {
          alias: 'Frequency',
          groupBy: [
            {
              params: [
                '$__interval',
              ],
              type: 'time',
            },
            {
              params: [
                'none',
              ],
              type: 'fill',
            },
          ],
          measurement: 'telemetry_v2',
          orderByTime: 'ASC',
          policy: 'default',
          query: '',
          refId: 'A',
          resultFormat: 'time_series',
          select: [
            [
              {
                params: [
                  'system_frequency_freq_hz',
                ],
                type: 'field',
              },
              {
                params: [],
                type: 'mean',
              },
            ],
          ],
          tags: [
            {
              key: 'device_id',
              operator: '=~',
              value: '/^$device$/',
            },
          ],
        },
      ])
@Duologic Duologic added the plugin Support for plugins label Nov 21, 2023
@Duologic
Copy link
Member

This would be a nice library but currently we haven't figured out the flow to create libraries for plugins, we'll keep this open as we're looking for possible solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin Support for plugins
Projects
None yet
Development

No branches or pull requests

2 participants