Ryan McKinley
7627b55ef4
TSDB: add deprecation comments to many tsdb structs ( #33281 )
2021-04-23 03:03:11 +02:00
Arve Knudsen
b79e61656a
Introduce TSDB service ( #31520 )
...
* Introduce TSDB service
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
Co-authored-by: Will Browne <will.browne@grafana.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-03-08 07:02:49 +01:00
Kyle Brandt
c9dbf5a0d0
Graphite/SSE: update graphite to work with server side expressions ( #31455 )
...
Changes the time value of the response to be milliseconds, which I think is like the other data sources I have seen.
Also if it sees the timerange values as numbers, assumes they are unixMS (and come from expressions, or our new backend.TimeRange type). When this timerange is used, the request is sent to graphite with from and until as epoch timestamps
2021-02-24 13:16:26 -05:00
Arve Knudsen
c2cad26ca9
Chore: Disable default golangci-lint filter ( #29751 )
...
* Disable default golangci-lint filter
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Chore: Fix linter warnings
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-15 09:32:06 +01:00
Arve Knudsen
574553ec7b
Chore: Fix issues found by staticcheck ( #28802 )
...
* Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-05 11:29:39 +01:00
Arve Knudsen
a078e40238
Settings: Rename constants/variables to follow Go naming standards ( #28002 )
...
* settings: Rename constants/variables to follow Go naming standards
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-02 15:45:45 +02:00
Arve Knudsen
a5d9196a53
Chore/fix lint issues ( #27704 )
...
* Chore: Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-22 16:22:19 +02:00
Marcus Efraimsson
58cefe73ee
Datasources: Handle URL parsing error ( #25742 )
...
Adds handling of error returned from URL parsing.
Fixes #25714
2020-06-22 16:34:40 +02:00
Sofia Papagiannaki
c6829645c7
Graphite: Don't issue empty "select metric" queries ( #22699 )
...
* Don't issue empty "select metric" queries
* Update pkg/tsdb/graphite/graphite.go
Co-Authored-By: Carl Bergquist <carl.bergquist@gmail.com>
* Fix indentation
* Add missing import
Co-authored-by: Carl Bergquist <carl.bergquist@gmail.com>
2020-03-11 09:28:36 +01:00
Arve Knudsen
bb50fc5965
pkg/tsdb: Check errors ( #19837 )
...
Check errors in pkg/tsdb.
2019-10-22 16:16:53 +02:00
zhulongcheng
2fff8f77dc
move log package to /infra ( #17023 )
...
ref #14679
Signed-off-by: zhulongcheng <zhulongcheng.me@gmail.com>
2019-05-13 08:45:54 +02:00
Andrej Ocenas
66f6e16916
Security: Store datasource passwords encrypted in secureJsonData ( #16175 )
...
* Store passwords in secureJsonData
* Revert unnecessary refactors
* Fix for nil jsonSecureData value
* Remove copied encryption code from migration
* Fix wrong field reference
* Remove migration and provisioning changes
* Use password getters in datasource proxy
* Refactor password handling in datasource configs
* Add provisioning warnings
* Update documentation
* Remove migration command, moved to separate PR
* Remove unused code
* Set the upgrade version
* Remove unused code
* Remove double reference
2019-04-15 11:11:17 +02:00
bergquist
f13263eb54
reduce loglevel to debug
2019-03-13 09:01:45 +01:00
Mario Trangoni
bb12a1bc99
pkg/tsdb/graphite/graphite.go: Fix regular expression does not contain any meta characters.
...
I found this article benchmarking Replace vs Regexp,
https://medium.com/codezillas/golang-replace-vs-regexp-de4e48482f53
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=megacheck ./...
pkg/tsdb/graphite/graphite.go:167:28⚠️ regular expression does not contain any meta characters (SA6004) (megacheck)
pkg/tsdb/graphite/graphite.go:172:28⚠️ regular expression does not contain any meta characters (SA6004) (megacheck)
2018-10-23 17:26:46 +02:00
bergquist
519fd8b2ba
graphite: adds more traces for alerting
2018-03-21 13:16:59 +01:00
Andrei Kalasok
68d4211c50
grafana-10039: fix query time range ends in the past
2017-11-30 15:50:35 +01:00
bergquist
ed661767f8
follow go idiom and return error as second param
2017-09-21 18:04:16 +02:00
bergquist
a45e2ec9c3
context is reserved for go's context
2017-09-21 15:23:34 +02:00
bergquist
16b5b9f6be
make ds a param for Query
2017-09-21 15:09:14 +02:00
bergquist
7f9f388293
rename executor into tsdbqueryendpoint
2017-09-21 15:02:17 +02:00
bergquist
0229d28d64
remove unused structs
2017-09-21 15:02:17 +02:00
bergquist
55f1b36e31
refactor response flow
2017-09-21 15:02:17 +02:00
bergquist
8c8fdadb78
trace failed executions
2017-09-18 11:08:58 +02:00
bergquist
e128310045
use tags instead of logs
2017-09-18 11:08:58 +02:00
bergquist
f160ad3bc8
add trace parameters for outgoing requests
2017-09-18 11:08:58 +02:00
Carl Bergquist
2c7adccf12
Use cache for http.client in tsdb package. ( #6833 )
...
* datasource: move caching closer to datasource struct
* tsdb: use cached version of datasource http transport
closes #6825
2016-12-07 11:10:42 +01:00
Carl Bergquist
bb7f03c91e
Merge pull request #6446 from utkarshcmu/graphite_alerting_fix
...
Fixed intervalFormat for Graphite Alerting
2016-11-03 06:58:51 +01:00
utkarshcmu
fc91231104
Fixed failing tests
2016-11-02 22:31:59 -07:00
utkarshcmu
a4a2e35bb2
Verified interval format function and gofmt check
2016-11-02 02:07:08 -07:00
bergquist
d4bc92b267
feat(tsdb): default tsdb httpclient
2016-11-02 08:51:34 +01:00
utkarshcmu
1e8beb8983
Fixed intervalFormat for Graphite Alerting
2016-11-01 17:55:45 -07:00
Torkel Ödegaard
f1905a8485
fix(alerting): fixed issue with using nested queries in graphite query used in alerting rule, fixes #5996
2016-10-11 12:50:11 +02:00
Carl Bergquist
c38f6ff182
Make alerting notifcations sync ( #6158 )
...
* tech(routines): move the async logic from notification to alerting notifier
* tech(notification): reduce code dupe
* fix(notification): dont touch the response unless its an error
* feat(alerting): make alerting exeuction async but flow sync
* tech(alerting): remove commented code
* tech(alerting): remove unused code
* tech(alerting): fix typo
* tech(alerting): implement Context on EvalContext
* tech(alerting): wait for all alerts to return
* feat(alerting): dont allow alert responses to cancel
* Revert "feat(alerting): dont allow alert responses to cancel"
This reverts commit 324b006c96
.
* feat(alerting): give alerts some time to finish before closing down
2016-10-03 09:38:03 +02:00
Torkel Ödegaard
a4648607bb
feat(testdata): added csv test data scenario
2016-09-28 10:37:30 +02:00
Torkel Ödegaard
8d5857661e
refactor(tsdb): changed tsdb time series model to use null.Float instead of pointers
2016-09-28 09:15:48 +02:00
bergquist
071f2205e1
tech(tsdb): ops <o>
2016-09-27 11:13:13 +02:00
bergquist
46d4f817e3
tech(graphite): return error if statuscode is not ok
2016-09-27 10:09:56 +02:00
bergquist
8cd9225eb6
feat(alerting): increase timeout to 15s
2016-09-26 08:45:55 +02:00
bergquist
4c88db3e43
feat(prometheus): add support for legend formatting
2016-09-21 11:17:29 +02:00
bergquist
d7bf70a77b
tech(tsdb): remove skip ssl setting. should be based on datasource settings
2016-09-12 13:37:00 +02:00
bergquist
aa80b52c07
feat(alerting): make it possible to skip ssl verification for alerting https requests
2016-09-08 16:29:31 +02:00
Torkel Ödegaard
fbae6abb3c
feat(alerting): progress on handling no data in alert query, #5860
2016-09-06 20:40:12 +02:00
bergquist
eb0396ad95
chore(tsdb): remove some logging
2016-09-05 21:35:24 +02:00
bergquist
86aea89214
style(tsdb): extract some methods
2016-09-01 13:03:15 +02:00
bergquist
d73547c0dc
feat(tsdb): add missing content type and join url using path
2016-09-01 11:12:35 +02:00
bergquist
3d3365f242
tech(graphite): add more logging
2016-09-01 10:09:13 +02:00
bergquist
94389a3a44
tech(tsdb): improve logging for graphite client
2016-09-01 09:38:43 +02:00
bergquist
29b60329cc
stupid stupid stupid me
2016-09-01 09:17:57 +02:00
bergquist
4619a05f43
feat(alerting): save execution error message to annotations
2016-08-31 14:06:54 +02:00
bergquist
c0697b99d6
fix(alerting): adds support for basic auth
...
closes #5897
2016-08-29 15:50:11 +02:00