43 Commits

Author SHA1 Message Date
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
81be4e2612 Update codebox (#9430)
* updated the codeboxes in docs

* codebox change from json to http
2017-10-05 19:01:03 +02:00
337fb9bdfa fixed some images (#9237) 2017-09-14 11:04:01 +02:00
a76f3fba2e docs: minor fixes to images 2017-09-13 17:11:10 +02:00
d71456b96f Docs image updates (#9225)
* replaced old images and gifs with new ones

* replaced images, changed some text especially for column styles

* replaced and added images and gifs
2017-09-13 16:29:53 +02:00
a7b0a01b13 replaced old images and gifs with new ones (#9217) 2017-09-12 09:07:36 +02:00
167995776f docs: update to tag alias
ref #9024
2017-08-11 11:30:30 +02:00
b716a2595a mysqlds: add support for key/value template variables
If the template variable query has two columns named __text and __value
then return a list of key values. The value is used when the variable is
interpolated in the query. Allows mapping of texts to ids.
2017-08-10 14:42:27 +02:00
1105bb371f mysqlds: adds support for template variables
Fixes #8855
2017-08-09 19:32:53 +02:00
5d2054323b Merge branch 'aws-instance-attribute-tags' of https://github.com/paco3346/grafana into paco3346-aws-instance-attribute-tags 2017-08-01 09:38:58 +02:00
417c5163dd Fix typos (#8954)
Some being user visible.
2017-07-31 12:12:28 +02:00
17d57ab074 docs(testdata): add missing word (#8856) 2017-07-13 19:52:59 +02:00
4844bf9be3 docs(prometheus): updates invalid template example 2017-07-12 07:37:44 +02:00
fbff905c57 Fix broken table row in prometheus.md (#8779)
"Metric Lookup" row in Query editor was broken :(
2017-07-05 22:14:03 +02:00
fb99ddf295 influxdb: tweak to help text 2017-06-29 13:58:54 +02:00
10127e8ac9 docs: small updates 2017-06-26 17:42:50 +02:00
aa3a737fea Updated cloudwatch doc to be more clear on ec2_instance_attribute usage and added Tag selection example 2017-06-07 16:58:01 -04:00
09267bbfe8 docs: elasticsearch, added info about size property in templating query 2017-05-25 20:11:53 +02:00
17198807c9 docs: updated mysql docs 2017-05-12 11:04:54 +02:00
88672389f3 docs: minor docs fix 2017-05-11 14:16:05 +02:00
2c5563442f docs: added initial mysql docs 2017-05-11 12:59:49 +02:00
acff78d421 Merge branch 'master' into heatmap-refactoring2 2017-05-09 12:41:11 +02:00
e2f0b42d90 docs: updated cloudwatch docs, closes #8315 2017-05-08 06:49:55 +02:00
dd5a426911 heatmap: refactoring heatmap 2017-05-05 16:15:08 +02:00
dbcd19bbce docs: minor update to OpenTSDB docs 2017-05-04 12:12:55 +02:00
cbba692962 docs: influxdb docs update 2017-05-04 11:15:48 +02:00
e80e0c044b docs: updated elasticsearch docs 2017-05-04 10:19:00 +02:00
287cd83e76 docs: grammarly fixes 2017-05-03 16:34:51 +02:00
59fdda6559 docs: minor update to prometheus docs 2017-05-03 15:53:31 +02:00
ed8d284715 docs: updated prometheus docs 2017-05-03 15:50:38 +02:00
e6c29391c6 docs: improved Graphite templating docs 2017-05-03 14:20:59 +02:00
88dd8af4ce docs: Updates to screencasts & sharing docs 2017-04-28 13:43:00 +02:00
4f9f186575 docs: overhauled annotation docs and moved some of the data source specific annotation docs to the respective data source doc pages, closes #1111 2017-04-28 12:51:21 +02:00
4d4e165be7 links: updated links from grafana.net to grafana.com 2017-03-20 10:20:32 +01:00
50718b592c docs: added aliases 2017-03-18 08:25:26 +01:00
e97cab9964 docs: removes version selector from influxdb 2017-02-14 12:02:31 +01:00
abd9233f86 Docs for developing plugins (#7475)
* docs(plugins): new developing plugins section

Creates new section called Developing Plugins in
the plugin section of the docs.

1. Some changes to the Development guide page
2. Converted defaults/editor mode blog post
to new page
3. Converted snapshots blog post to new page
4. Adds new code styleguide page
5. Updates to apps and datasources pages
6. Adds plugin.json schema

* docs(links): fixes broken links

Fixes broken links to other pages as
well as broken image links.
2017-02-07 07:48:01 +01:00
3398c28ab2 docs(): fixing redirects for moved doc pages, updating links to point to new urls 2017-02-06 18:04:53 +01:00
2fdb47ae97 docs(prometheus): rewrote and shorten the note about templates 2017-01-16 11:50:12 +01:00
2696d6cd3f Merge branch 'master' of https://github.com/andrewhowdencom/grafana into andrewhowdencom-master 2017-01-16 11:47:13 +01:00
c73e86e557 docs(testdata): some minor changes 2017-01-16 11:21:23 +01:00
ae08386ce3 docs(testdata): adds docs page about test datasource 2017-01-16 11:13:52 +01:00
92f0a22fd7 docs: moves datsources pages to feature folder 2017-01-16 11:13:27 +01:00