Files
grafana-zabbix/docs/sources/configuration/provisioning.md
2024-11-19 09:52:28 +00:00

2.4 KiB
Raw Permalink Blame History

title, menuTitle, description, aliases, keywords, labels, weight
title menuTitle description aliases keywords labels weight
Provisioning Grafana-Zabbix plugin Provisioning Grafana-Zabbix plugin Grafana-Zabbix plugin provisioning instructions.
data source
zabbix
products
oss
grafana cloud
320

Provisioning Grafana-Zabbix plugin

Its now possible to configure datasources using config files with Grafanas provisioning system. You can read more about how it works and all the settings you can set for datasources on the provisioning docs page

Example Datasource Config File

apiVersion: 1
datasources:
  - name: Zabbix
    type: alexanderzobnin-zabbix-datasource
    url: http://localhost/zabbix/api_jsonrpc.php
    jsonData:
      # Zabbix API credentials
      username: zabbix
      # Trends options
      trends: true
      trendsFrom: '7d'
      trendsRange: '4d'
      # Cache update interval
      cacheTTL: '1h'
      # Alerting options
      alerting: true
      addThresholds: false
      alertingMinSeverity: 3
      # Direct DB Connection options
      dbConnectionEnable: true
      # Name of existing datasource for Direct DB Connection
      dbConnectionDatasourceName: MySQL Zabbix
      # Retention policy name (InfluxDB only) for fetching long-term stored data.
      # Leave it blank if only default retention policy used.
      dbConnectionRetentionPolicy: one_year
      # Disable acknowledges for read-only users
      disableReadOnlyUsersAck: true
      # Disable time series data alignment
      disableDataAlignment: false
      # Use value mapping from Zabbix
      useZabbixValueMapping: true
    secureJsonData:
      password: zabbix
    version: 1
    editable: false

  - name: MySQL Zabbix
    type: mysql
    url: localhost:3306
    user: grafana
    jsonData:
      database: zabbix
    secureJsonData:
      password: password

  - name: PostgreSQL Zabbix
    type: grafana-postgresql-datasource
    url: localhost:5432
    user: grafana
    jsonData:
      database: zabbix
    secureJsonData:
      password: password

For detailed provisioning configuration for mysql / postgres in direct db connection mode, refer mysql plugin documentation / postgresql plugin documentation.