Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-3877

Implement history service calls in server (PoC for Generic Rest API)

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Team A
    • Sprint 9, Sprint 10, Sprint 11, Sprint 12, Sprint 13
    • 6

      The Zabbix server will be modified for not accessing the history database directly anymore. In particular, the access to history data will be provided by a separated service that will take care of managing requests for access to the history database through a REST API. The new work-flow for the server will be:

      • The Zabbix server will receive a new value.
      • The new value will be processed (trigger expressions evaluation, correlations etc).
      • The value will be prepared and sent to the history service.
      • If the history service is down, values will be buffered in the zabbix server.
      • After some seconds, a request with the same data that was not sent will be retried by the zabbix server until the request succeed.
      • The value will be stored in the value cache and local history cache.
      • The history service will take care of serving the received data through the new REST API.
      • Data sent from the zabbix server to the history service will also contain a TTL (time-to-live in seconds) of the value itself. This value will reflect the configuration applied in the zabbix server and used by the housekeeper process for deleting data. When the TTL of the value will expire, the value will be simply removed from the history service.

      A new series of REST APIs will be provided by the history service. The zabbix server (and also third party programs), will be able to use those APIs for retrieving history data, store new data in the history service.
      The zabbix server will heavily leverage the usage of this APIs for accessing history data and it will be treated by the history service, like any other program willing to access the data.

      Below, the list of APIs required for a successful integration with the zabbix server:

      History Description
      POST <version>/history/<value type> Store items data in the history service
      GET <version>/history/<value type>/<itemid>?count=<count>&start=<seconds>&end=<seconds> Get one or more history values for an item for a defined time-stamp or time interval

      The authentication APIs describe below are actually optional and will be reserved for future use:

      Authentication Description
      GET <version>/auth/login Authenticate a service or a request
      DELETE <version>/auth/revoke Revoke an authentication token

      Survey for feedback on proffered data storage - https://beta.doodle.com/poll/2pdv8c42z6hb3u49

            Unassigned Unassigned
            palivoda Rostislav Palivoda
            Team A
            Votes:
            7 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: