From 231f848d1a1140415fda02105d7f663be9acc71b Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Mon, 24 Jul 2017 23:24:50 +0300 Subject: [PATCH] docs: add data flow chart for direct DB connection --- .../img/reference-direct-db-connection.svg | 1404 +++++++++++++++++ .../sources/reference/direct-db-connection.md | 8 + 2 files changed, 1412 insertions(+) create mode 100644 docs/sources/img/reference-direct-db-connection.svg diff --git a/docs/sources/img/reference-direct-db-connection.svg b/docs/sources/img/reference-direct-db-connection.svg new file mode 100644 index 0000000..cea8b69 --- /dev/null +++ b/docs/sources/img/reference-direct-db-connection.svg @@ -0,0 +1,1404 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/sources/reference/direct-db-connection.md b/docs/sources/reference/direct-db-connection.md index 71d9bb7..3d9aaea 100644 --- a/docs/sources/reference/direct-db-connection.md +++ b/docs/sources/reference/direct-db-connection.md @@ -13,6 +13,14 @@ size. Data loads faster and client doesn't spend time for data processing. Also, many users point better performance of direct database queries versus API calls. This caused by several reasons, such as additional PHP layer and additional SQL queries (user permissions checks). +## Data Flow + +This chart illustrates how plugin uses both Zabbix API and MySQL data source for querying different types +of data from Zabbix. MySQL data source is used only for pulling history and trend data instead of `history.get` +and `trend.get` API calls. + +[![Direct DB Connection](../img/reference-direct-db-connection.svg)](../img/reference-direct-db-connection.svg) + ## Query structure Grafana-Zabbix uses queries like this for getting history: