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

Failing to switch from postgres to influx direct connection #783

Open
anthonysomerset opened this issue Aug 16, 2019 · 4 comments
Open

Failing to switch from postgres to influx direct connection #783

anthonysomerset opened this issue Aug 16, 2019 · 4 comments

Comments

@anthonysomerset
Copy link

anthonysomerset commented Aug 16, 2019

Describe the bug
I have been using Postgres DB for Zabbix and the grafana plugin (works well) - we are migrating to InfluxDB for the longer term storage, when i attempt to switch the zabbix plugin datasource to use influx i get a failed to get metric error in the gui and existing dashboards can't read any data. the influx datasource on its own is indeed working and i can manually pull metrics out just fine. When we enabled Influx on a previous version of the plugin it worked

Expected behavior
The data source should save and test correctly and data should return in dashboard panels

Screenshots
Screenshot 2019-08-16 06 14 07
Screenshot 2019-08-16 06 14 24

Network data
Grafana Log:
t=2019-08-16T04:09:23+0000 lvl=eror msg="Metric request error" logger=context userId=2 orgId=1 [email protected] error="type assertion to string failed"

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
6.3.3 4.2.5 3.10.4
@anthonysomerset
Copy link
Author

I've done some debugging further - it would seem that the direct db connection is perhaps not being saved properly in the Database - once i manually updated the DB table (like i did for #731) it actually saved and worked

@alexanderzobnin
Copy link
Collaborator

Hi! Can you confirm this happens in 3.11 as well?

@anthonysomerset
Copy link
Author

its happening to me still in most current release

doesn't matter if i am switching from Influx to postgres or the reverse - the json_data field in the grafana DB does not get updated properly

specifically dbConnectionDatasourceName does not get updated - the dbConnectionDatasourceId field does get updated though

Copy link

This issue has been automatically marked as stale because it has not had activity in the last 2 years. It will be closed in 60 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

@github-actions github-actions bot added the stale label Aug 13, 2024
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

2 participants