Commit Graph

51 Commits (382fcca5301ae2f00fa8b63f10c503bd6cffed98)

Author SHA1 Message Date
Marcus Efraimsson dd0ba96d7c
Postgres: Fix time group macro when TimescaleDB is enabled and interval is less than a second (#33153) 4 years ago
Arve Knudsen b79e61656a
Introduce TSDB service (#31520) 4 years ago
Ricky Putra d56c5285e2
Postgres: Fix timeGroup macro converts long intervals to invalid numbers when TimescaleDB is enabled (#31179) 4 years ago
Arve Knudsen f55818ca70
Chore: Enable exhaustive linter (#29458) 5 years ago
Arve Knudsen 2bf964c61e
Chore: Fix linting issues caught by ruleguard (#28799) 5 years ago
Arve Knudsen 574553ec7b
Chore: Fix issues found by staticcheck (#28802) 5 years ago
Arve Knudsen 4b1eb6e5c7
Chore: Enable gocyclo linter (#26395) 5 years ago
Arve Knudsen 41d432b5ae
Chore: Enable whitespace linter (#25903) 5 years ago
Kyle Brandt e5bf3027fc
Refactor: Move sql_engine to sub package of tsdb (#18991) 6 years ago
Bernard Duggan a0bb01103e MySQL/Postgres/MSSQL: Add parsing for day, weeks and year intervals in macros (#13086) 6 years ago
Oleg Gaidarenko 54c1bf0cc9
Chore: a bit of spring cleaning (#16710) 6 years ago
Ander Arguiñano 3801a75131 FIxed syntaxis mistake unixEpochNanoFrom and unixEpochNanoTo 7 years ago
Ander Arguiñano 9105625f24 Added unixEpochNanoTo and unixEpochNanoFrom macros to postgresql 7 years ago
Ander Arguiñano 4d8d2a9690 Renamed unixEpochFilterNano to unixEpochNanoFilter 7 years ago
Sven Klemm 4c51e8df20 Don't cut off subsecond precision for postgres macros 7 years ago
Ander Arguiñano 1a67a8db80 Nanosecond timestamp support postgresql 7 years ago
Marcus Efraimsson 624e5e5b3d
let each sql datasource handle timeFrom and timeTo macros 7 years ago
Sven Klemm 94d6d51726 move timeFrom, timeTo, unixEpochFrom and unixEpochTo macros to sql_engine 7 years ago
Sven Klemm 0254a29e35 Interpolate $__interval in backend for alerting with sql datasources (#13156) 7 years ago
Sven Klemm 3955133f7e Don't pass datasource to newPostgresMacroEngine 7 years ago
Sven Klemm 3552a4cb86 refactor timescaledb handling in MacroEngine 7 years ago
Sven Klemm bfe28ee061 Add $__unixEpochGroup macro to postgres datasource 7 years ago
Sven Klemm d81a23becf Refactor setting fillmode 7 years ago
Sven Klemm d2984f3b0f fix rebase error 7 years ago
Sven Klemm c3aad10047 change timescaledb to checkbox instead of select 7 years ago
Sven Klemm b987aee7cf add timescaledb option to postgres datasource 7 years ago
Sven Klemm ee7602ec1f change fillmode from last to previous 7 years ago
Sven Klemm bfc66a7ed0 add fillmode "last" to sql datasource 7 years ago
Sven Klemm dc22e24642 add compatibility code to handle pre 5.3 usage 7 years ago
Sven Klemm 42f1892826 Add $__timeGroupAlias to postgres macros 7 years ago
Sven Klemm 43295f9c18 remove alias from postgres $__timeGroup macro 7 years ago
Marcus Efraimsson 2f3851b915
postgres: use new sql engine 7 years ago
Sven Klemm c2c22c142b [postgres] fix timeGroup macro rounding (#12468) 7 years ago
Sven Klemm 5dc36afe71 calculate datetime for timeFrom and timeTo macro in go 7 years ago
Sven Klemm a2a7d3d436 add GetFromAsTimeUTC and GetToAsTimeUTC and use them in timeFilter macro 7 years ago
Sven Klemm 6d3da9a73d remove postgresversion and convert unix timestamp in go 7 years ago
Sven Klemm 9b61ffb48a make timefilter macro aware of pg version 7 years ago
Mario Trangoni 91fb2e07ce pkg: fix codespell issues 7 years ago
Marcus Efraimsson a86ee304ff
tsdb: remove unnecessary type casts in sql data sources macro engines 7 years ago
Marcus Efraimsson f5586b1270
tsdb: sql data sources should handle time ranges before epoch start correctly 7 years ago
ryan 113bfb3d3e don't convert to uint64 7 years ago
Sven Klemm f1ba9137c0 remove spaces around arguments before calling macro expansion 7 years ago
Sven Klemm e2a3590d8b allow optional 3rd argument to timeGroup to control filling missing 8 years ago
Sven Klemm b6df91d56b pass Query to MacroEngine Interpolate 8 years ago
Sven Klemm ce809de1ed postgres: change $__timeGroup macro to include "AS time" column alias (#10119) 8 years ago
Sven Klemm 108f582ec4 sync documentation, add remark about to_timestamp and redshift (#9841) 8 years ago
Sven Klemm 34da0711ab add __timeGroup macro for mysql (#9596) 8 years ago
Sven Klemm b2d880c6de modify $__timeGroup macro so it can be used in select clause (#9527) 8 years ago
Daniel Lee d1c9760fa8 Postgres Data Source (#9475) 8 years ago
Brad Lhotsky a8ac215039 Add a few more MySQL macros: 8 years ago