docs: add data flow chart for direct DB connection

This commit is contained in:
Alexander Zobnin
2017-07-24 23:24:50 +03:00
parent 2a1c3a86b0
commit 231f848d1a
2 changed files with 1412 additions and 0 deletions

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 178 KiB

View File

@@ -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: