2bf964c61e 
								
							 
						 
						
							
							
								
								Chore: Fix linting issues caught by ruleguard ( #28799 )  
							
							... 
							
							
							
							* Chore: Fix linting issues caught by ruleguard
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve error check
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> 
							
						 
						
							2020-11-17 11:27:45 +01:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								e5bf3027fc 
								
							 
						 
						
							
							
								
								Refactor: Move sql_engine to sub package of tsdb ( #18991 )  
							
							... 
							
							
							
							this way importing the tsdb package does not come with xorm dependencies 
							
						 
						
							2019-09-10 15:50:04 -04:00  
				
					
						
							
							
								 
						
							
								a0bb01103e 
								
							 
						 
						
							
							
								
								MySQL/Postgres/MSSQL: Add parsing for day, weeks and year intervals in macros ( #13086 )  
							
							... 
							
							
							
							closes  #11431  
						
							2019-05-30 09:58:29 +02:00  
				
					
						
							
							
								 
						
							
								3801a75131 
								
							 
						 
						
							
							
								
								FIxed syntaxis mistake unixEpochNanoFrom and unixEpochNanoTo  
							
							
							
						 
						
							2019-01-03 22:25:10 +01:00  
				
					
						
							
							
								 
						
							
								b4eac406d5 
								
							 
						 
						
							
							
								
								Added previous macros to mssql  
							
							
							
						 
						
							2019-01-03 21:43:08 +01:00  
				
					
						
							
							
								 
						
							
								624e5e5b3d 
								
							 
						 
						
							
							
								
								let each sql datasource handle timeFrom and timeTo macros  
							
							
							
						 
						
							2018-11-30 14:30:02 +01:00  
				
					
						
							
							
								 
						
							
								94d6d51726 
								
							 
						 
						
							
							
								
								move timeFrom, timeTo, unixEpochFrom and unixEpochTo macros to sql_engine  
							
							
							
						 
						
							2018-10-02 20:19:34 +02:00  
				
					
						
							
							
								 
						
							
								0254a29e35 
								
							 
						 
						
							
							
								
								Interpolate $__interval in backend for alerting with sql datasources ( #13156 )  
							
							... 
							
							
							
							add support for interpolate $__interval and  $__interval_ms in sql datasources 
							
						 
						
							2018-09-13 16:51:00 +02:00  
				
					
						
							
							
								 
						
							
								8c4d59363e 
								
							 
						 
						
							
							
								
								add $__unixEpochGroup to mssql datasource  
							
							
							
						 
						
							2018-08-13 12:23:42 +02:00  
				
					
						
							
							
								 
						
							
								d81a23becf 
								
							 
						 
						
							
							
								
								Refactor setting fillmode  
							
							... 
							
							
							
							This adds SetupFillmode to the tsdb package to be used by the sql
datasources. 
							
						 
						
							2018-08-12 10:51:58 +02:00  
				
					
						
							
							
								 
						
							
								ee7602ec1f 
								
							 
						 
						
							
							
								
								change fillmode from last to previous  
							
							
							
						 
						
							2018-08-07 21:01:41 +02:00  
				
					
						
							
							
								 
						
							
								bfc66a7ed0 
								
							 
						 
						
							
							
								
								add fillmode "last" to sql datasource  
							
							... 
							
							
							
							This adds a new fill mode last (last observation carried forward) for grafana
to the sql datasources. This fill mode will fill in the last seen value in a
series when a timepoint is missing or NULL if no value for that series has
been seen yet. 
							
						 
						
							2018-08-02 20:35:09 +02:00  
				
					
						
							
							
								 
						
							
								b71d10a7a4 
								
							 
						 
						
							
							
								
								add $__timeGroupAlias to mysql and mssql  
							
							
							
						 
						
							2018-08-01 20:58:51 +02:00  
				
					
						
							
							
								 
						
							
								4f7882cda2 
								
							 
						 
						
							
							
								
								mssql: use new sql engine  
							
							
							
						 
						
							2018-07-26 18:11:10 +02:00  
				
					
						
							
							
								 
						
							
								d90d4ce55d 
								
							 
						 
						
							
							
								
								Merge pull request  #12402  from AustinWinstanley/macros/sql  
							
							... 
							
							
							
							mysql,mssql: improve $__timeFilter, $__timeFrom, $__timeTo macros
The $__timeFilter macro now uses a BETWEEN with timestamps instead of 
comparing epochs
The $__timeFrom and $__timeTo macros now return strings of format 
YYYY-MM-DDThh:mm:ssZ instead of epoch 
							
						 
						
							2018-07-04 20:01:43 +02:00  
				
					
						
							
							
								 
						
							
								f017c04a65 
								
							 
						 
						
							
							
								
								[mssql] fix $__timeGroup rounding ( #12470 )  
							
							... 
							
							
							
							* fix $__timeGroup rounding for mssql
* revert enabling of mssql integration tests 
							
						 
						
							2018-07-01 06:57:02 -07:00  
				
					
						
							
							
								 
						
							
								a0e8437f8f 
								
							 
						 
						
							
							
								
								Used PostgreSQL TSDB as a model the set up the __timeFilter, __timeFrom, and __timeTo macros for Microsoft SQL and MySQL  
							
							
							
						 
						
							2018-06-29 03:48:14 +00:00  
				
					
						
							
							
								 
						
							
								105b3d6804 
								
							 
						 
						
							
							
								
								Switched MySQL and MSSQL macros for timeFilter and related to use BETWEEN and calculate UNIX time server side instead of database side.  Fixes   #11618   #11619  
							
							
							
						 
						
							2018-06-25 20:11:58 +00:00  
				
					
						
							
							
								 
						
							
								a86ee304ff 
								
							 
						 
						
							
							
								
								tsdb: remove unnecessary type casts in sql data sources macro engines  
							
							
							
						 
						
							2018-04-12 19:08:35 +02:00  
				
					
						
							
							
								 
						
							
								f5586b1270 
								
							 
						 
						
							
							
								
								tsdb: sql data sources should handle time ranges before epoch start correctly  
							
							
							
						 
						
							2018-04-12 18:53:12 +02:00  
				
					
						
							
							
								 
						
							
								920a0c4fec 
								
							 
						 
						
							
							
								
								skip mssql fix  
							
							
							
						 
						
							2018-04-09 13:49:13 +02:00  
				
					
						
							
							
								 
						
							
								7d6c8aa612 
								
							 
						 
						
							
							
								
								add mssql and mysql  
							
							
							
						 
						
							2018-04-09 13:34:35 +02:00  
				
					
						
							
							
								 
						
							
								b0076d4f65 
								
							 
						 
						
							
							
								
								mssql: remove UTC conversion in macro functions  
							
							... 
							
							
							
							Removes the macro function . Macro functions should not do UTC/timezone conversion - they should
work in the same way as postgres and mysql datasource implementations.
Grafana and Microsft SQL Server should be run on servers with UTC timezones. 
							
						 
						
							2018-03-22 14:55:44 +01:00  
				
					
						
							
							
								 
						
							
								3ccadff800 
								
							 
						 
						
							
							
								
								mssql: fix timeGroup macro so that it properly creates correct groups  
							
							... 
							
							
							
							Earlier the division of interval was done using whole numbers resulting in that important information
was lost/too many time series merged to the same group. Now using division of floating point and rounding
up to solve the problem 
							
						 
						
							2018-03-22 14:49:40 +01:00  
				
					
						
							
							
								 
						
							
								d14946a135 
								
							 
						 
						
							
							
								
								mssql: cleanup and minor refactor  
							
							
							
						 
						
							2018-03-19 13:32:04 +01:00  
				
					
						
							
							
								 
						
							
								571556e1d8 
								
							 
						 
						
							
							
								
								mssql: adds fill to timeGroup macro.  
							
							
							
						 
						
							2018-03-15 13:11:26 +01:00  
				
					
						
							
							
								 
						
							
								c87752102a 
								
							 
						 
						
							
							
								
								mssql datasource: support for timeGroup macro function  
							
							
							
						 
						
							2018-03-13 22:49:49 +01:00  
				
					
						
							
							
								 
						
							
								d4beee2bb0 
								
							 
						 
						
							
							
								
								Merge branch 'master' into mssql_datasource  
							
							
							
						 
						
							2018-03-13 16:03:02 +01:00  
				
					
						
							
							
								 
						
							
								6e7a067857 
								
							 
						 
						
							
							
								
								adding support for sgl native time datatypes  
							
							
							
						 
						
							2017-12-12 23:43:24 +03:00  
				
					
						
							
							
								 
						
							
								c75f9a1923 
								
							 
						 
						
							
							
								
								MSSQL Data Source  
							
							
							
						 
						
							2017-12-02 14:40:12 +03:00