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

InfluxDB2.0 Upgrade and In(-Flux) Language #43

Open
NielsKorschinsky opened this issue Feb 8, 2021 · 1 comment
Open

InfluxDB2.0 Upgrade and In(-Flux) Language #43

NielsKorschinsky opened this issue Feb 8, 2021 · 1 comment
Labels
enhancement New feature or request python Pull requests that update Python code SPPCheck Issues affecting SPPCheck
Milestone

Comments

@NielsKorschinsky
Copy link
Member

Partly Copied from internal git.

InfluxQL does not allow Joins - only in a very limited pattern:

Multiple SELECT statements in a subquery

InfluxQL supports multiple nested subqueries per main query:

SELECT_clause FROM ( SELECT_clause FROM ( SELECT_statement ) [...] ) [...]
                     ------------------   ----------------
                         Subquery 1          Subquery 2

InfluxQL does not support multiple SELECT statements per subquery:

SELECT_clause FROM (SELECT_statement; SELECT_statement) [...]

The system returns a parsing error if a subquery includes multiple SELECT statements.

To allow more usefull joins it would be neccecary to use the build in FLUX-Language. This one is implemented since InfluxDB1.7.4.

In the wiki it is said, that it is possible to use InfluxQL and Flux on the same Database at once.
It might be good to consider, to upgrade to InfluxDB 2.0 meanwhile, since this does support both flux and InfluxQL, leaving us with a newer version while our old Code will still work with only minor edits.
Please check out this InfluxDB2.0 Release Roadmap

Flux would mostly affect grafana, the python code could stay like it is until we rework it to support FLUX-Language.
This would require a rework of the whole influx folder and be an other issue at this time.

possibly outdated information following:

This plugin allows to manage a influxdb-datasource as flux-source. You one database saved as both Flux and InfluxQL-Souce (individually).

Links:

@NielsKorschinsky NielsKorschinsky added enhancement New feature or request Long Term Issue which isn't urgend, but should be solved sometimes. labels Feb 8, 2021
@NielsKorschinsky NielsKorschinsky changed the title In(-Flux) Language and InfluxDB2.0 Upgrade InfluxDB2.0 Upgrade and In(-Flux) Language Aug 22, 2022
@NielsKorschinsky
Copy link
Member Author

The upgrade to Influx 2.* is of high priority.
The non-enterprise version of InfluxDB 1.* did not receive security updates for a longer period.
An easier upgrade is possible using Mappings, see SPMon branch.
However, it might be more reasonable to switch to Flux, though this will require a rewrite of the whole Influx directory and associated queries.

@NielsKorschinsky NielsKorschinsky added python Pull requests that update Python code SPPCheck Issues affecting SPPCheck and removed Long Term Issue which isn't urgend, but should be solved sometimes. labels Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code SPPCheck Issues affecting SPPCheck
Projects
None yet
Development

No branches or pull requests

1 participant