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

Ignored values not considered on Instance restart #423

Open
tipp88 opened this issue Dec 12, 2024 · 6 comments
Open

Ignored values not considered on Instance restart #423

tipp88 opened this issue Dec 12, 2024 · 6 comments

Comments

@tipp88
Copy link

tipp88 commented Dec 12, 2024

Describe the bug
When a DP is set with values to ignore:
image

The value is basically ignored when the DP is updated by any other adapter BUT
If the DP has a value out of the defined range and you restart influxDB instance, it will write the value to database even if it is not in the range.

SEE all those values has been written to DB by the influxDB adapter on its restart:

image

To reproduce
Create any DP and define values to ignore like seen in schreenshot above. Apply a value out of the limit manually (adapter will now ignore the value as expected), restart InfluxDB instance, it writes the value to DP even if it is a value which should be ignored.

Expected behavior
No value should be stored to DB on adapter restart.

@Marc-Berg
Copy link
Contributor

Have you set the "Log the last value again on startup" option check box?

@tipp88
Copy link
Author

tipp88 commented Dec 12, 2024

Have you set the "Log the last value again on startup" option check box?

Yes, but that should also consider the values to ignore?

@Marc-Berg
Copy link
Contributor

Marc-Berg commented Dec 13, 2024

There is no additional complexity around handling certain values, also: no.

I do not know of any use case where this option (Log the last value again on startup) would make sense.

@tipp88
Copy link
Author

tipp88 commented Dec 13, 2024

I do not know of any use case where this option (Log the last value again on startup) would make sense.

I don't know either and to be honest, I can't remember having this set by intention. I will just deactivate it and hopefully my problem will be solved by this.

@tipp88 tipp88 closed this as completed Dec 13, 2024
@Apollon77 Apollon77 reopened this Jan 3, 2025
@Apollon77
Copy link
Contributor

I tend to reopen ... But the main question is ... what should the adapter log when "log on startup" is enabled AND the value is out of range ... But yes I see this as a "enhancement"

@tipp88
Copy link
Author

tipp88 commented Jan 3, 2025

what should the adapter log when "log on startup" is enabled AND the value is out of range

For me that is clear, same logic as a normal log. If out of range, nothing.

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

No branches or pull requests

3 participants