grafana/vendor/github.com
Daniel Lee d1c9760fa8 Postgres Data Source (#9475)
* add postgresql datasource

* add rest of files for postgres datasource

* fix timeseries query, remove unused code

* consistent naming, refactoring

* s/mysql/postgres/

* s/mysql/postgres/

* couple more tests

* tests for more datatypes

* fix macros for postgres

* add __timeSec macro

* add frontend for postgres datasource

* adjust documentation

* fix formatting

* add proper plugin description

* merge editor changes from mysql

* port changes from mysql datasource

* set proper defaultQuery for postgres

* add time_sec to timeseries query
accept int for value for timeseries query

* revert allowing time_sec and handle int or float values as unix
timestamp for "time" column

* fix tslint error

* handle decimal values in timeseries query

* allow setting sslmode for postgres datasource

* use type switch for handling data types

* fix value for timeseries query

* refactor timeseries queries to make them more flexible

* remove debug statement from inner loop in type conversion

* use plain for loop in getTypedRowData

* fix timeseries queries

* adjust postgres datasource to tsdb refactoring

* adjust postgres datasource to frontend changes

* update lib/pq to latest version

* move type conversion to getTypedRowData

* handle address types cidr, inet and macaddr

* adjust response parser and docs for annotations

* convert unknown types to string

* add documentation for postgres datasource

* add another example query with metric column

* set more helpful default query

* update help text in query editor

* handle NULL in value column of timeseries query

* add __timeGroup macro

* add test for __timeGroup macro

* document __timeGroup and set proper default query for annotations

* fix typos in docs

* add postgres to list of datasources

* add postgres to builtInPlugins

* mysql: refactoring as prep for merging postgres

Refactors out the initialization of the xorm engine and the query logic
for an sql data source.

* mysql: rename refactoring + test update

* postgres:refactor to use SqlEngine(same as mysql)

Refactored to use a common base class with the MySql data source.

Other changes from the original PR:
- Changed time column to be time_sec to allow other time units in the
future and to be the same as MySQL
- Changed integration test to test the main Query method rather than
the private transformToTable method
- Changed the __timeSec macro name to __timeEpoch
- Renamed PostgresExecutor to PostgresQueryEndpoint

Fixes #9209 (the original PR)

* postgres: encrypt password on config page

With some other cosmetic changes to the config page:
- placeholder texts
- reset button for the password after it has been encrypted.
- default value for the sslmode field.

* postgres: change back col name to time from time_sec

* postgres mysql: remove annotation title

Title has been removed from annotations

* postgres: fix images for docs page

* postgres mysql: fix specs
2017-10-10 15:19:14 +02:00
..
apache/thrift adds basic traces using open traces 2017-09-18 11:08:58 +02:00
aws/aws-sdk-go (cloudwatch) high resolution custom metrics (#8958) 2017-07-31 21:19:19 +02:00
benbjohnson/clock tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
beorn7/perks add graphite bridge that support delta counters 2017-09-14 14:26:32 +02:00
bmizerany/assert tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
bradfitz/gomemcache tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
BurntSushi/toml tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
codahale/hdrhistogram adds codahale to vendor 2017-09-18 11:08:58 +02:00
codegangsta/cli tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
davecgh/go-spew/spew tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
fatih/color tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
go-ini/ini (cloudwatch) update aws-sdk-go to v1.5.8 (#6658) 2016-11-22 13:38:11 +01:00
go-ldap/ldap tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
go-macaron fix: fixed crash when gzip was enabled 2017-05-22 14:09:54 +02:00
go-sql-driver/mysql mysql: added support for tables in mysql queries 2017-04-21 15:07:43 +02:00
go-stack/stack tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
go-xorm tech: updated xorm libs 2017-03-31 12:54:39 +02:00
golang/protobuf add graphite bridge that support delta counters 2017-09-14 14:26:32 +02:00
gorilla/websocket updated websocket lib 2016-12-20 11:36:11 +01:00
gosimple/slug tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
hashicorp/go-version tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
inconshreveable/log15 tech: updates log15 vendor packages 2017-05-02 12:47:32 +02:00
jmespath/go-jmespath tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
jtolds/gls tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
klauspost lib: updated dependency, fixes #7579 2017-03-20 13:30:22 +01:00
kr tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
lib/pq Postgres Data Source (#9475) 2017-10-10 15:19:14 +02:00
mattn tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
matttproud/golang_protobuf_extensions add graphite bridge that support delta counters 2017-09-14 14:26:32 +02:00
opentracing/opentracing-go adds basic traces using open traces 2017-09-18 11:08:58 +02:00
patrickmn/go-cache dataproxy: added caching of datasources when doing data proxy requests, #9078 2017-08-23 13:31:26 +02:00
prometheus add graphite bridge that support delta counters 2017-09-14 14:26:32 +02:00
rainycape/unidecode tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
sergi/go-diff History and Version Control for Dashboard Updates 2017-05-24 19:14:39 -04:00
smartystreets fix: add goconvey to vendor 2016-09-19 16:22:39 +02:00
streadway/amqp tech(build): move dependencies to vendor folder 2016-09-14 16:14:27 +02:00
uber adds basic traces using open traces 2017-09-18 11:08:58 +02:00
Unknwon/com tech: upgraded macaron & macaron inject, binding, session 2017-04-25 15:16:32 +02:00
yudai History and Version Control for Dashboard Updates 2017-05-24 19:14:39 -04:00