-
Notifications
You must be signed in to change notification settings - Fork 463
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
t.replace is not a function #661
Comments
Hello, I have the same problem, all my existing dashboard function correctly, but I can't create neam items. Regards |
I don't know what is the problem, which I mean can't solve this. So I just add zabbix datasource to another Grafana server and it worked but, I want to figure it out what's the problem and its solution |
I had this issue as well when I went to convert a pre-existing panel from using a MySQL datasource to using a Zabbix API datasource. I was able to delete the panel and create a new one using a Zabbix API datasource from the start and it seemed to work fine. |
The same issue! Moved from: grafana/grafana#15319 What Grafana version are you using?It was Grafana v5.4.2 (commit: d812109) but updating to Grafana v5.4.3 (commit: 6539180) didn't fix the issue What datasource are you using?Zabbix api (Zabbix plugin by Alexander Zobnin, Version 3.9.1) @alexanderzobnin What OS are you running grafana on?CentOS Linux release 7.6.1810 (Core) What did you do?I try to create new dashboard with widget or add new widget (Table for example) in existing board. What was the expected result?Creating new board and adding new widget What happened instead?I get an arror after choosing "zabbix api" in Data Source section: t.replace is not a function Pic 1: normal situation with "Grafana" datasource: Pic 2: error after switching to "zabbix api" source Pic 3: try to create Graph widget and getting the same error. Adding more queries after that: Pic 4: Open already existing widget with zabbix source, made ~3 mouths ago, all is OK: Pic 5: Zabbix datasource config: Include raw network request & response: get by opening Chrome Dev Tools (F12, Ctrl+Shift+I on windows, Cmd+Opt+I on Mac), go the network tab. |
Yes, looks like a bug, maybe related to default metric template change in grafana. |
@mammuthus thanks for the detailed report! Unfortunately, I can't replicate this issue doing the same steps. If I change |
Got it. It seems it caused by MySQL and Postgres datasource editor. It sets default |
Guess, this appears if you have MySQL or Postgres datasource set as default. Can you confirm this? |
Ok, seems, it's a reason. |
I used well zabbix in Grafana, I needed to add some more graphs.
I tried to add a Zabbix datasource but it didn't work
Another datasources still work, also if I add the same zabbix datasource in the other Grafana server that works well as a datasource.
What's the problem?
I tried but t.replace is not a function came out
I tried it as a $datasource but same errors came out
Error messages
Software versions
Zabbix 4.0
Grafana 5.4.0
plugin 3.9.1
I'll wait for your help.
The text was updated successfully, but these errors were encountered: