Docs: rename image paths (#1774)
This commit is contained in:
@@ -20,7 +20,7 @@ weight: 300
|
|||||||
Go to the plugins in Grafana side panel, select _Apps_ tab, then select _Zabbix_, open _Config_
|
Go to the plugins in Grafana side panel, select _Apps_ tab, then select _Zabbix_, open _Config_
|
||||||
tab and enable plugin.
|
tab and enable plugin.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Configure Zabbix data source
|
## Configure Zabbix data source
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ After enabling plugin you can add Zabbix data source.
|
|||||||
|
|
||||||
To add new Zabbix data source open _Data Sources_ in side panel, click _Add data source_ and select _Zabbix_ from dropdown list.
|
To add new Zabbix data source open _Data Sources_ in side panel, click _Add data source_ and select _Zabbix_ from dropdown list.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### HTTP settings
|
### HTTP settings
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ Then click _Add_ - data source will be added and you can check connection using
|
|||||||
|
|
||||||
You can import dashboard examples from _Dashboards_ tab in the data source config.
|
You can import dashboard examples from _Dashboards_ tab in the data source config.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Note about Browser Cache
|
## Note about Browser Cache
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ GRANT SELECT ON zabbix.* TO 'grafana'@'grafana-host' identified by 'password';
|
|||||||
|
|
||||||
In order to use _Direct DB Connection_ feature you should configure SQL data source first.
|
In order to use _Direct DB Connection_ feature you should configure SQL data source first.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Select _MySQL_ data source type and provide your database host address and port (3306 is default for MySQL). Fill
|
Select _MySQL_ data source type and provide your database host address and port (3306 is default for MySQL). Fill
|
||||||
database name (usually, `zabbix`) and specify credentials.
|
database name (usually, `zabbix`) and specify credentials.
|
||||||
@@ -38,11 +38,11 @@ database name (usually, `zabbix`) and specify credentials.
|
|||||||
Select _PostgreSQL_ data source type and provide your database host address and port (5432 is default). Fill
|
Select _PostgreSQL_ data source type and provide your database host address and port (5432 is default). Fill
|
||||||
database name (usually, `zabbix`) and specify credentials.
|
database name (usually, `zabbix`) and specify credentials.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## InfluxDB
|
## InfluxDB
|
||||||
|
|
||||||
Select _InfluxDB_ data source type and provide your InfluxDB instance host address and port (8086 is default). Fill
|
Select _InfluxDB_ data source type and provide your InfluxDB instance host address and port (8086 is default). Fill
|
||||||
database name you configured in the [effluence](https://github.com/i-ky/effluence) module config (usually, `zabbix`) and specify credentials.
|
database name you configured in the [effluence](https://github.com/i-ky/effluence) module config (usually, `zabbix`) and specify credentials.
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -23,11 +23,11 @@ create a simple dashboard.
|
|||||||
Add new Graph panel to dashboard.
|
Add new Graph panel to dashboard.
|
||||||
Select metrics from dropdown or start to type to filter results
|
Select metrics from dropdown or start to type to filter results
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Let's create _15 min avg processor load_ graph. Select Host Group, Host, Application (optional - you can leave it blank) and Item.
|
Let's create _15 min avg processor load_ graph. Select Host Group, Host, Application (optional - you can leave it blank) and Item.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Multiple Items On One Graph
|
## Multiple Items On One Graph
|
||||||
|
|
||||||
@@ -37,25 +37,25 @@ You can build graphs with lots of items using Regular Expressions inside metric
|
|||||||
/CPU (?!idle).* time/;
|
/CPU (?!idle).* time/;
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Another case to use regex is comparing the same metrics for different hosts. Use `/.*/` regex for showing all metrics or write your own filter. For example, I want to show _CPU system time_ for all hosts which name started with _backend_ from all host groups. I use `/.*/` for Group, `/^backend/` for Host and `CPU system time` for Item.
|
Another case to use regex is comparing the same metrics for different hosts. Use `/.*/` regex for showing all metrics or write your own filter. For example, I want to show _CPU system time_ for all hosts which name started with _backend_ from all host groups. I use `/.*/` for Group, `/^backend/` for Host and `CPU system time` for Item.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Bar Chart
|
## Bar Chart
|
||||||
|
|
||||||
Let's create a graph which show queries stats for MySQL database. Select Group, Host, Application (_MySQL_ in my case) and Items. I use `/MySQL .* operations/` regex for filtering different types of operations.
|
Let's create a graph which show queries stats for MySQL database. Select Group, Host, Application (_MySQL_ in my case) and Items. I use `/MySQL .* operations/` regex for filtering different types of operations.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
To show graph as Bar Chart, go to the **Display** tab, uncheck **Lines** and set **Bars**. Also, enable **Stack** checkbox for showing stacked bars.
|
To show graph as Bar Chart, go to the **Display** tab, uncheck **Lines** and set **Bars**. Also, enable **Stack** checkbox for showing stacked bars.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
But this graph doesn't look good because it contains too many bars. We can fix it by using **Max data points** parameter. Go to the **Metrics** tab and set **Max data points** to 50 for example.
|
But this graph doesn't look good because it contains too many bars. We can fix it by using **Max data points** parameter. Go to the **Metrics** tab and set **Max data points** to 50 for example.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Ok, looks pretty!
|
Ok, looks pretty!
|
||||||
|
|
||||||
@@ -63,14 +63,14 @@ Ok, looks pretty!
|
|||||||
|
|
||||||
Sometimes you may need to show just a big single value for particular metric. Use Grafana's **Singlestat** panel in this case. Let's create panel which shows _CPU user time_ metric.
|
Sometimes you may need to show just a big single value for particular metric. Use Grafana's **Singlestat** panel in this case. Let's create panel which shows _CPU user time_ metric.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Suppose that you want to set units as percents and show **Gauge** for this value. Go to the **Options** tab and set units to _percent (0-100)_. Then enable _Show_ option for _Gauge_ and set Min and Max values for your metric (0-100 in our case). Set thresholds if you want to see it on Gauge (`50,80` for example).
|
Suppose that you want to set units as percents and show **Gauge** for this value. Go to the **Options** tab and set units to _percent (0-100)_. Then enable _Show_ option for _Gauge_ and set Min and Max values for your metric (0-100 in our case). Set thresholds if you want to see it on Gauge (`50,80` for example).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Great, looks cool. Read more about Singlestat panel in [Grafana docs](http://docs.grafana.org/reference/singlestat/).
|
Great, looks cool. Read more about Singlestat panel in [Grafana docs](http://docs.grafana.org/reference/singlestat/).
|
||||||
|
|
||||||
And all together:
|
And all together:
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -21,11 +21,11 @@ You can use template variables for creating highly reusable and interactive dash
|
|||||||
|
|
||||||
To create template variable click the cog icon on the top navigation bar and choose _Templating_.
|
To create template variable click the cog icon on the top navigation bar and choose _Templating_.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
When you click _New_ button, you'll see template variable editor. It contains these sections:
|
When you click _New_ button, you'll see template variable editor. It contains these sections:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Variable
|
### Variable
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ host groups and want to use it for querying hosts in selected group only. Here's
|
|||||||
|
|
||||||
When you create a variable, you can use it as a part of data source query. Grafana also supports variables in different places like panel's and row's titles, Text panel's content, etc.
|
When you create a variable, you can use it as a part of data source query. Grafana also supports variables in different places like panel's and row's titles, Text panel's content, etc.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
> Note, that you should add `$` sign before variable's name (**$host** for _host_ variable).
|
> Note, that you should add `$` sign before variable's name (**$host** for _host_ variable).
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ This chart illustrates how the plugin uses both Zabbix API and the MySQL data so
|
|||||||
of data from Zabbix. MySQL data source is used only for pulling history and trend data instead of `history.get`
|
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.
|
and `trend.get` API calls.
|
||||||
|
|
||||||
[](https://raw.githubusercontent.com/grafana/alexanderzobnin-zabbix-app/main/docs/images/reference-direct-db-connection.svg)
|
[](https://raw.githubusercontent.com/grafana/grafana-zabbix/main/docs/images/reference-direct-db-connection.svg)
|
||||||
|
|
||||||
## Query structure
|
## Query structure
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user