Alexander Zobnin
82819b20aa
Able to configure API request timeout, #1046
2020-11-10 16:39:06 +03:00
Alexander Zobnin
d2e9c2bfd0
Support basic auth for backend requests, #1048
2020-10-06 17:22:34 +03:00
Alexander Zobnin
8f70a0c4be
refine non-ok status message
2020-08-28 19:20:28 +03:00
Alexander Zobnin
9f2530d756
Use http.NewRequest() for creating requests, issue #1004
2020-08-28 19:11:29 +03:00
Alexander Zobnin
8e781da7bd
Support TLS settings, fix #1029
2020-08-28 16:52:55 +03:00
Alexander Zobnin
013fe5c37f
Refactor: use InstanceManager for managing ds instances
2020-08-28 14:40:39 +03:00
Alexander Zobnin
2dc514db3a
Refactor: move http client to the separate package
2020-08-28 11:48:06 +03:00
Alexander Zobnin
d6b8992433
Refine log messages
2020-08-25 13:36:36 +03:00
Alexander Zobnin
620c60b1f5
Add debug message in case of expired auth token
2020-06-04 18:31:09 +03:00
Alexander Zobnin
516b4f2045
fix expired token renewal
2020-06-04 17:53:10 +03:00
Alexander Zobnin
dbb4e9dfef
refactor: errors
2020-06-04 12:29:37 +03:00
Alexander Zobnin
899ecb9ec2
Resource handler description
2020-06-04 12:23:18 +03:00
Alexander Zobnin
95c8e9cfa6
move cache to datasource_cache
2020-06-04 12:10:34 +03:00
Alexander Zobnin
89dfb1e228
tidy modules
2020-06-04 11:51:05 +03:00
Alexander Zobnin
9713e7d780
remove unused
2020-06-04 11:50:54 +03:00
Alexander Zobnin
7990613e2c
reorganize packages and add tests for zabbix datasource instance methods
2020-06-04 11:43:20 +03:00
Alexander Zobnin
4bebeb4919
zabbix api tests
2020-06-03 18:03:26 +03:00
Alexander Zobnin
6f95e9f7e8
fix datasource tests
2020-06-03 17:07:29 +03:00
Alexander Zobnin
67ed44cf20
remove models tests
2020-06-03 16:21:57 +03:00
Alexander Zobnin
7872d55dbc
Fix cache tests
2020-06-03 16:21:30 +03:00
Alexander Zobnin
1e04c310df
move cache to the separate package
2020-06-03 10:24:32 +03:00
Alexander Zobnin
d8d83484af
set cached methods
2020-06-02 17:26:24 +03:00
Alexander Zobnin
ff0b8b9dff
refactor and removing unused code
2020-06-02 17:18:38 +03:00
Alexander Zobnin
a5f8eb02bb
Zabbix API refactoring
2020-06-02 15:48:33 +03:00
Alexander Zobnin
a9c96c2634
fix open password removing
2020-06-02 09:25:32 +03:00
Alexander Zobnin
3e379b01df
Handle ds init errors
2020-06-01 18:38:50 +03:00
Alexander Zobnin
48767fe479
Update datasource config editor
2020-06-01 18:05:50 +03:00
Alexander Zobnin
875e611400
use cache for alert queries
2020-06-01 14:03:57 +03:00
Alexander Zobnin
ee2cc49ba1
do not cache history requests
2020-06-01 12:50:22 +03:00
Alexander Zobnin
2c10fdf996
remove excess debug logging
2020-06-01 12:23:01 +03:00
Alexander Zobnin
55c30b5cad
remove unused
2020-06-01 12:11:12 +03:00
Alexander Zobnin
bf69d9037a
implement CheckHealth
2020-06-01 12:01:10 +03:00
Alexander Zobnin
2491ccfc27
Read ds settings and use it for trends
2020-06-01 11:43:07 +03:00
Alexander Zobnin
852bc07388
Fix multiple series handling
2020-05-29 18:20:06 +03:00
Alexander Zobnin
61fee6ea12
Data queries (alerting)
2020-05-29 17:49:18 +03:00
Alexander Zobnin
9f344cb867
Refactor API calls
2020-05-29 12:33:37 +03:00
Alexander Zobnin
efb4d41da5
Handle backend api errors
2020-05-29 11:09:43 +03:00
Alexander Zobnin
f0daa9fcb9
Migrate to new backend sdk, use /zabbix-api endpoint for API queries
2020-05-28 17:04:49 +03:00
Alexander Zobnin
fcfb237004
fix annotation queries
2020-01-14 19:00:10 +03:00
Alexander Zobnin
a7a72f5697
fix Filter param (can accept array or single value)
2020-01-14 18:39:21 +03:00
Alexander Zobnin
7653bacce9
fix linter errors
2020-01-14 17:56:44 +03:00
Alexander Zobnin
7a1743ad41
refactor: simplify API queries
2020-01-14 17:42:12 +03:00
vignesh-reddy
3f5719794a
Backend: implement alerting query ( #847 )
...
* Unit tests for backend
* minor change
* Implemented querNumericItems in backend
* Added query type
* Set alerting to true
* Return TimeSeries from History
* Updated alerting feature
* Fix params marshal error
* Fix params more
* Update zabbixAPIConnector.js
* Numbers, I guess
* Params Output Type
* Output marshaling
* Unmarshal and decoder error catch
* HistoryPoint and Unmarshal fixes
* Unmarshal to History
* Revert "Update zabbixAPIConnector.js"
This reverts commit e0ffdff859b6f920893a47a709493f8076e38ef4.
* Fix unmarshaling for real
* Time range integer
* Use more zabbix.Items
* Update response_models.go
* Update zabbix_api.go
* Update models.go
* Update zabbix_api.go
* Tests
* Adding more unit tests and cleaning up additional logging
* Make history request param a pointer
* Actually store datasource in cache
* Debug logs and timings
* Handle panics gracefully
* Updated Regex filter parsing
* Removed must compile
* Clean up regex filter
2020-01-13 10:38:24 +03:00
Alexander Zobnin
aa93e752c8
Merge branch 'multidatasource-pr' of github.com:dneth/grafana-zabbix into dneth-multidatasource-pr
2019-12-13 13:52:09 +03:00
Alexander Zobnin
5990d64bce
Merge branch 'makefile-improvements' of github.com:dneth/grafana-zabbix into dneth-makefile-improvements
2019-12-12 11:30:01 +03:00
Alexander Zobnin
31d797e36b
fix plugin crash due to result is nil
2019-12-12 11:18:01 +03:00
Alexander Zobnin
f1f911a3fa
Merge branch 'securejson' of github.com:dneth/grafana-zabbix into dneth-securejson
2019-12-12 10:57:19 +03:00
vignesh-reddy
24fd0ff9ec
Backend: renew auth token if expired ( #808 )
...
* Backend: Added logic to renew auth token if expired
* Added nil check for err
* Added case if the err is nil
* Removed the case where data source tries to login at every request
2019-12-12 10:41:53 +03:00
Alec Sears
e153473421
Finish
2019-10-18 16:21:46 -05:00
Alec Sears
ca145c9acb
Test BuildResponse
2019-10-18 16:17:50 -05:00