1. 11 Oct, 2017 4 commits
  2. 10 Oct, 2017 7 commits
    • Postgres Data Source (#9475) · d1c9760f
      * 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
      Daniel Lee committed
    • Fix NaN handling (#9469) · 3184942a
      * graph: fix NaN formatting, #9012
      
      * singlestat: prevent null value coloring, #9012, #8404
      
      * timeseries: add tests for #9012 and move test file to TS
      Alexander Zobnin committed
    • snapshots: improve snapshot listing performance, #9314 (#9477) · 473c47cd
      exclude dashboard field from snapshot list search
      Alexander Zobnin committed
  3. 09 Oct, 2017 8 commits
  4. 08 Oct, 2017 2 commits
  5. 07 Oct, 2017 3 commits
    • testing: fixing tests · b228c23d
      Torkel Ödegaard committed
    • Create annotations (#8197) · 25aa9df2
      * annotations: add 25px space for events section
      
      * annotations: restored create annotation action
      
      * annotations: able to use fa icons as event markers
      
      * annotations: initial emoji support from twemoji lib
      
      * annotations: adjust fa icon position
      
      * annotations: initial emoji picker
      
      * annotation: include user info into annotation requests
      
      * annotation: add icon info
      
      * annotation: display user info in tooltip
      
      * annotation: fix region saving
      
      * annotation: initial region markers
      
      * annotation: fix region clearing (add flot-temp-elem class)
      
      * annotation: adjust styles a bit
      
      * annotations: minor fixes
      
      * annoations: removed userId look in loop, need a sql join or a user cache for this
      
      * annotation: fix invisible events
      
      * lib: changed twitter emoij lib to be npm dependency
      
      * annotation: add icon picker to Add Annotation dialog
      
      * annotation: save icon to annotation table
      
      * annotation: able to set custom icon for annotation added by user
      
      * annotations: fix emoji after library upgrade (switch to 72px)
      
      * emoji: temporary remove bad code points
      
      * annotations: improve icon picker
      
      * annotations: icon show icon picker at the top
      
      * annotations: use svg for emoji
      
      * annotations: fix region drawing when add annotation editor opened
      
      * annotations: use flot lib for drawing region fill
      
      * annotations: move regions building into event_manager
      
      * annotations: don't draw additional space if no events are got
      
      * annotations: deduplicate events
      
      * annotations: properly render cut regions
      
      * annotations: fix cut region building
      
      * annotations: refactor
      
      * annotations: adjust event section size
      
      * add-annotations: fix undefined default icon
      
      * create-annotations:  edit event (frontend part)
      
      * fixed bug causes error when hover event marker
      
      * create-annotations:  update event (backend)
      
      * ignore grafana-server debug binary in git (created VS Code)
      
      * create-annotations: use PUT request for updating annotation.
      
      * create-annotations: fixed time format when editing existing event
      
      * create-annotations: support for region update
      
      * create-annotations: fix bug with limit and event type
      
      * create-annotations: delete annotation
      
      * create-annotations: show only selected icon in edit mode
      
      * create-annotations: show event editor only for users with at least Editor role
      
      * create-annotations: handle double-sized emoji codepoints
      
      * create-annotations: refactor
      
      use CP_SEPARATOR from emojiDef
      
      * create-annotations: update emoji list, add categories.
      
      * create-annotations: copy SVG emoji into public/vendor/npm and use it as a base path
      
      * create-annotations: initial tabs for emoji picker
      
      * emoji-picker: adjust styles
      
      * emoji-picker: minor refactor
      
      * emoji-picker: refactor - rename and move into one directory
      
      * emoji-picker: build emoji elements on app load, not on picker open
      
      * emoji-picker: fix emoji searching
      
      * emoji-picker: refactor
      
      * emoji-picker: capitalize category name
      
      * emoji-picker: refactor
      
      move buildEmojiElem() into emoji_converter.ts for future reuse.
      
      * jquery.flot.events: refactor
      
      use buildEmojiElem() for making emojis, remove unused code for font awesome based icons.
      
      * emoji_converter: handle converting error
      
      * tech: updated
      
      * merged with master
      
      * shore: clean up some stuff
      
      * annotation: wip tags
      
      * annotation: filtering by tags
      
      * tags: parse out spaces etc. from a tags string
      
      * annotations: use tagsinput component for tag filtering
      
      * annotation: wip work on how we query alert & panel annotations
      
      * annotations: support for updating tags in an annotation
      
      * linting
      
      * annotations: work on unifying how alert history annotations and manual panel annotations are created
      
      * tslint: fixes
      
      * tags: create tag on blur as well
      
      Currently, the tags directive only creates the tag when the
      user presses enter. This change means the tag is created on
      blur as well (when the user clicks outside the input field).
      
      * annotations: fix update after refactoring
      
      * annotations: progress on how alert annotations are fetched
      
      * annotations: minor progress
      
      * annotations: progress
      
      * annotation: minor progress
      
      * annotations: move tag parsing from tooltip to ds
      
      Instead of parsing a tag string into an array in the annotation_tooltip
      class, this moves the parsing to the datasources. InfluxDB ds already
      does that parsing. Graphite now has it.
      
      * annotations: more work on querying
      
      * annotations: change from tags as string to array
      
      when saving in the db and in the api.
      
      * annotations: delete tag link if removed on edit
      
      * annotation: more work on depricating annotation title
      
      * annotations: delete tag links on delete
      
      * annotations: fix for find
      
      * annotation: added user to annotation tooltip and added alertName to annoation dto
      
      * annotations: use id from route instead from cmd for updating
      
      * annotations: http api docs
      
      * create annotation: last edits
      
      * annotations: minor fix for querying annotations before dashboard saved
      
      * annotations: fix for popover placement when legend is on the side (and doubel render pass is causing original marker to be removed)
      
      * annotations: changing how the built in query gets added
      
      * annotation: added time to header in edit mode
      
      * tests: fixed jshint built issue
      Torkel Ödegaard committed
  6. 06 Oct, 2017 2 commits
  7. 05 Oct, 2017 14 commits