Skip to content

Allow options_limit for variables to set in plutono.ini to allow for more than 1000 entries#106

Open
TorstenGangUS wants to merge 1 commit intocredativ:mainfrom
TorstenGangUS:main
Open

Allow options_limit for variables to set in plutono.ini to allow for more than 1000 entries#106
TorstenGangUS wants to merge 1 commit intocredativ:mainfrom
TorstenGangUS:main

Conversation

@TorstenGangUS
Copy link

Currently, plutono doesn't allow variables to have more than 1000 entries.

this pull request would allow that limit to be specified under via an entry in plutono.ini.datasources.options_limit

Not sure if that is the best path/name in plutono.ini for it to be specified. I am open to moving it/renaming anyway that makes sense inside of plutono.ini.

This will also have the side effect of also affect the max number of entries returned by all queries,
specifically because of,
metrics.go:62 MaxDataPoints: query.Get("maxDataPoints").MustInt64(hs.Cfg.MaxDataPoints) (assuming the query doesn't specify maxDataPoints)
this line was also the hardest part of figuring out how to not limit the items to 1000. Also, for some reason the way this limit works is it returns maxDataPoints * 10. This is noted in comment.
I have tested only tested this while using influxdb as that is my use case for needing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments