{"action":"created","issue":{"url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/148","repository_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix","labels_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/148/comments","events_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/148/events","html_url":"https://github.com/alexanderzobnin/grafana-zabbix/issues/148","id":129413267,"number":148,"title":"Performance issue when having a lot of metrics","user":{"login":"Krazylee","id":557165,"avatar_url":"https://avatars.githubusercontent.com/u/557165?v=3","gravatar_id":"","url":"https://api.github.com/users/Krazylee","html_url":"https://github.com/Krazylee","followers_url":"https://api.github.com/users/Krazylee/followers","following_url":"https://api.github.com/users/Krazylee/following{/other_user}","gists_url":"https://api.github.com/users/Krazylee/gists{/gist_id}","starred_url":"https://api.github.com/users/Krazylee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krazylee/subscriptions","organizations_url":"https://api.github.com/users/Krazylee/orgs","repos_url":"https://api.github.com/users/Krazylee/repos","events_url":"https://api.github.com/users/Krazylee/events{/privacy}","received_events_url":"https://api.github.com/users/Krazylee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/labels/performance","name":"performance","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/milestones/4","html_url":"https://github.com/alexanderzobnin/grafana-zabbix/milestones/Grafana-Zabbix%203.0","labels_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/milestones/4/labels","id":1267832,"number":4,"title":"Grafana-Zabbix 3.0","description":"","creator":{"login":"alexanderzobnin","id":4932851,"avatar_url":"https://avatars.githubusercontent.com/u/4932851?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderzobnin","html_url":"https://github.com/alexanderzobnin","followers_url":"https://api.github.com/users/alexanderzobnin/followers","following_url":"https://api.github.com/users/alexanderzobnin/following{/other_user}","gists_url":"https://api.github.com/users/alexanderzobnin/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderzobnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderzobnin/subscriptions","organizations_url":"https://api.github.com/users/alexanderzobnin/orgs","repos_url":"https://api.github.com/users/alexanderzobnin/repos","events_url":"https://api.github.com/users/alexanderzobnin/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderzobnin/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":10,"state":"open","created_at":"2015-08-23T06:50:05Z","updated_at":"2016-02-10T18:16:26Z","due_on":"2016-02-28T21:00:00Z","closed_at":null},"comments":13,"created_at":"2016-01-28T10:41:13Z","updated_at":"2016-02-11T13:54:44Z","closed_at":null,"body":"Hi, I configured a dashboard with 9 panels and each panel has 8 metrics(8 nodes).\r\nI think that's not very much compared to the example screenshot.\r\nBut the load speed is quite slow.\r\n\r\nLooking around the requests and the datasource code, I find that every metric requires at least four requests:\r\n1. get host data\r\n2. get application data\r\n3. get item id\r\n4. use item id to get history data\r\n\r\nSo if we want to monitor 9 metrics of 8 nodes, we will send 9 * 8 * 4 = 288 requests, plus the user.login requests, we may reach 300, a lot of requests will be queued.\r\n\r\nI think we can cache the first 3 request data into local storage, host/application/item data are quite static, we use 3 requests to get the item id, this is a big waste.\r\n\r\nAny suggestions?"},"comment":{"url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/comments/182874983","html_url":"https://github.com/alexanderzobnin/grafana-zabbix/issues/148#issuecomment-182874983","issue_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/148","id":182874983,"user":{"login":"alexanderzobnin","id":4932851,"avatar_url":"https://avatars.githubusercontent.com/u/4932851?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderzobnin","html_url":"https://github.com/alexanderzobnin","followers_url":"https://api.github.com/users/alexanderzobnin/followers","following_url":"https://api.github.com/users/alexanderzobnin/following{/other_user}","gists_url":"https://api.github.com/users/alexanderzobnin/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderzobnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderzobnin/subscriptions","organizations_url":"https://api.github.com/users/alexanderzobnin/orgs","repos_url":"https://api.github.com/users/alexanderzobnin/repos","events_url":"https://api.github.com/users/alexanderzobnin/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderzobnin/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T13:54:44Z","updated_at":"2016-02-11T13:54:44Z","body":"@clems94 try develop branch, not grafana-3.0"}}