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

retentionPolicyConfiguration is not working #328

Open
alirezaafkar opened this issue Apr 16, 2022 · 3 comments
Open

retentionPolicyConfiguration is not working #328

alirezaafkar opened this issue Apr 16, 2022 · 3 comments

Comments

@alirezaafkar
Copy link

Hi, Do you have any idea why with the following configuration, my reports are still stored with roTalaiot?!

talaiot {
    publishers {
        influxDbPublisher {
            dbName = "tracking"
            taskMetricName = "task"
            buildMetricName = "build"
            url = System.getenv("INFLUX_URL")
            password = System.getenv("INFLUX_PASSWORD")
            retentionPolicyConfiguration {
                name = "customRp"
                duration = "4w"
                shardDuration = "30m"
                replicationFactor = 1
                isDefault = true
            }
        }
    }
}
@cdsap
Copy link
Owner

cdsap commented Apr 16, 2022

Hi, thanks for the report.
I think that you are hitting the edge case where the data first was reported without Retention Policy, and then using the same dbname it tried to report using different rp.
Can you test please if you can use the customRp with a different dbName?
If works we need to check which data was stored with the default rp.
Let me know

@alirezaafkar
Copy link
Author

I tried different dbNames, still not working.

@cdsap
Copy link
Owner

cdsap commented Apr 17, 2022

Sorry to hear that, I just tested one local instance and verify that worked. Do you have access to the data in influxdb? I would remove the wrong Retention Public.

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

No branches or pull requests

2 participants