bergquist
6372e22180
migrate handlers to new register
2017-09-14 14:26:32 +02:00
bergquist
f842265388
add custom route register
2017-09-14 14:26:32 +02:00
bergquist
bf138d1845
adds small docs page metrics
2017-09-14 14:26:32 +02:00
bergquist
c177a9a77a
make bridge prefix backwards compatible
2017-09-14 14:26:32 +02:00
bergquist
6d22a67a30
return /metrics before session middleware
2017-09-14 14:26:32 +02:00
bergquist
6b1ae1a8a8
use internal init for settings
2017-09-14 14:26:32 +02:00
bergquist
dd9d4ecfbe
update stat gauges first run to avoid gaps
2017-09-14 14:26:32 +02:00
bergquist
fca80ff525
add support for deltas in histogram and summaries
2017-09-14 14:26:32 +02:00
bergquist
2de94d6548
convert old metrics to prom metrics
2017-09-14 14:26:32 +02:00
bergquist
788f677ed7
remove old internal metrics lib
2017-09-14 14:26:32 +02:00
bergquist
d6b8c6a2d2
add graphite bridge that support delta counters
2017-09-14 14:26:32 +02:00
Brandon Arp
cffbcb504d
allow ssl renegotiation for datasources
2017-09-13 16:20:24 -07:00
William
37962216ed
get s3 url via aws-sdk-go, fix #9189
2017-09-12 21:52:40 -04:00
Torkel Ödegaard
6e344f6eea
api: tsdb api orgId fix
2017-09-12 08:01:34 +02:00
bergquist
057b8a6b2d
improve error message for timeouts
...
closes #9220
2017-09-11 20:07:57 +02:00
Daniel Lee
b1506a2b09
securejson: decrypt should not modify src
...
When decrypting a source securejson byte array, should not
modify the source and now passes back a new dest byte array.
2017-09-08 10:19:07 +02:00
Mitsuhiro Tanda
e13575eaef
add AWS/NATGateway metrics ( #9202 )
2017-09-08 09:04:15 +02:00
wangguoliang
652fce7e76
Optimize some wrong usage and spelling
...
Signed-off-by: wgliang <liangcszzu@163.com>
2017-09-07 17:50:11 +08:00
Torkel Ödegaard
2789c4f1e1
dsfix: include routes in plugin model
2017-09-04 14:09:02 +02:00
Torkel Ödegaard
2fc67da69a
Merge branch 'metrics-tab-v3'
2017-09-04 13:27:44 +02:00
Torkel Ödegaard
284cacf560
logging: write pid file path and pid during startup
2017-09-04 12:44:54 +02:00
mxlxm
c5400ffe76
mysql: use collation instead of charset ( #9156 )
...
- use charset would issue additional 'SET NAMES <VALUE>' queries, set
collation would be better. see: https://github.com/go-sql-driver/mysql#charset
2017-09-04 12:32:07 +02:00
Torkel Ödegaard
c3cffeb10c
packaging: fixed issue with pid file on systemd systems, fixes #9133
2017-09-04 10:43:04 +02:00
Joseph Weigl
185b0dcc05
Merge branch 'master' into feature/enhance_hipchat_card
2017-09-02 19:04:40 +02:00
Torkel Ödegaard
07e192ff47
change: more work on changing default group by time interval to min interval setting
2017-09-01 15:57:02 +02:00
Marcel Anacker
40c008f870
Cloudwatch Datasource: changed namespace of Web Application Firewall ( #9128 )
2017-09-01 10:43:23 +02:00
Nevins
66441650cd
changing ordering so AWS API is only called if cache has expired ( #9136 )
2017-09-01 07:24:05 +02:00
Torkel Ödegaard
84d4958a3c
plugin change: make interval, cache timeout & max data points options in plugin.json, remove query.options component feature, add help markdown feature and toggle for data sources
2017-08-31 14:05:52 +02:00
Jonathan A. Sternberg
bdfbc2453f
Use parenthesis to surround the selected tags for influxdb queries ( #9131 )
...
The generated queries when selecting multiple tags are incorrect. In
InfluxQL, `AND` has a higher precedence than `OR` so the condition:
WHERE "hostname" = 'server1' OR "hostname" = 'server2' AND time > now() - 5m
This is parsed as if it were:
WHERE "hostname" = 'server1' OR ("hostname" = 'server2' AND time > now() - 5m)
But the intention is to write a query like this:
WHERE ("hostname" = 'server1' OR "hostname" = 'server2') AND time > now() - 5m
This change modifies the generated query so it surrounds a query with
multiple conditions in parenthesis so it doesn't conflict with the time
expression in an unexpected way.
This is currently not an issue because InfluxDB doesn't actually
evaluate the condition for the time expression correctly. It just looks
through the AST for anything that looks like a time expression and then
assumes the proper format of `AND` was used rather than validating that
it was used correctly.
2017-08-31 09:33:03 +02:00
Callum Loh
74ddebc8ea
Fix spelling for Hipchat notifier ( #9112 )
2017-08-29 08:08:51 +02:00
Torkel Ödegaard
c92317bafa
fix: fixed gofmt formating for #9091
2017-08-28 13:29:24 +02:00
pdoan017
3eea5d235d
Added import for container/list
2017-08-24 15:42:54 -04:00
pdoan017
d6085755c4
Added series order according to query results
...
Raw query results would return as expected. But when appending new series to pointsBySeries map, order of keys is random. So I've added a list to keep track of series order. Should implement FIFO rules.
2017-08-24 15:38:36 -04:00
Joseph Weigl
81d3ab37c3
Add thumbnail to card
2017-08-24 14:52:23 +02:00
Joseph Weigl
9666f45e9c
Add values to the hipchat card
2017-08-24 13:40:33 +02:00
Torkel Ödegaard
47f8145246
Merge branch 'master' of github.com:grafana/grafana
2017-08-24 11:18:44 +02:00
Torkel Ödegaard
71c22fdbff
dataproxy: removed some logging, closes #9078
2017-08-24 11:18:06 +02:00
Torkel Ödegaard
71c9582944
data source with token auth is starting to work, #9078
2017-08-24 11:07:37 +02:00
Jason Stangroome
632a5e9b97
Support Azure MySQL ( #8618 )
...
Azure's MySQL implementation appears to always respond with an Authentication Method Switch Request Packet requesting `mysql_native_password` auth even though the client's initial Handshake Response already included the native password credentials.
Most MySQL client libraries support this but Golang's go-sql-driver/mysql requires the `allowNativePasswords` DSN parameter set to enable it. Without this parameter, Grafana fails to authenticate to the database with the error message "this user requires mysql native password authentication."
References:
* https://web.archive.org/web/20160814002743/http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest
* https://web.archive.org/web/20160814002743/http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::HandshakeResponse
* https://github.com/go-sql-driver/mysql#user-content-allownativepasswords
2017-08-24 10:24:10 +02:00
Torkel Ödegaard
3c9798bec9
datasource-proxy: token exchange
2017-08-23 17:18:43 +02:00
Torkel Ödegaard
4f9fbcc211
dataproxy: added caching of datasources when doing data proxy requests, #9078
2017-08-23 13:31:26 +02:00
Torkel Ödegaard
8bf49c51b9
dataproxy: refactoring data source proxy to support route templates and wrote more tests for data proxy code, #9078
2017-08-23 10:52:31 +02:00
Torkel Ödegaard
63d6ab476a
feat: data source proxy refactoring and route handling, #9078
2017-08-22 17:14:15 +02:00
Daniel Lee
5c2958023d
Merge branch 'v4.4.x'
2017-08-21 13:45:04 +02:00
Torkel Ödegaard
e3bd51e38d
fix: remove duplicate set-cookie when logging in, fixes #9013
2017-08-21 11:10:59 +02:00
Andrei Burd
3222677493
Datasource Print the received error ( #9043 )
2017-08-16 16:56:51 +02:00
Daniel Lee
43fa852cc1
mysql: change logging from into to debug for scan
2017-08-09 19:33:09 +02:00
Torkel Ödegaard
668cb3c1ef
Merge branch 'v4.4.x'
2017-08-09 10:37:06 +02:00
Torkel Ödegaard
e8a20643d6
feat: store last seen date for users and present in stats and user lists, closes #9007
2017-08-09 10:36:41 +02:00
Torkel Ödegaard
eac0d30e99
Merge branch 'v4.4.x'
2017-08-09 07:20:52 +02:00
Torkel Ödegaard
26ad025705
feat: added os to stats
2017-08-09 07:20:37 +02:00
Daniel Lee
563795245a
mysqlds: support for more column types
...
Includes integration test for most column types. Fixes #8918
2017-08-08 15:24:41 +02:00
Daniel Lee
2fb25d8fa4
mysqlds: add tests for new macros
2017-08-08 14:40:27 +02:00
Brad Lhotsky
a8ac215039
Add a few more MySQL macros:
...
* $__timeFrom() -> Returns the dashboard 'from' suitable for use querying
against a MySQL TIMESTAMP field.
* $__timeTo() -> Returns the dashboard 'to' suitable for use querying
against a MySQL TIMESTAMP field.
* $__unixEpochFiler(column) -> If you store timestamps as UNIX epoch's,
this builds: column > 'from' AND column < 'to'
* $__unixEpochFrom() -> Returns the dashboard 'from' suitable for use querying
against a MySQL integer field (UNIX epochs)
* $__unixEpochTo() -> Returns the dashboard 'to' suitable for use querying
against a MySQL integer field (UNIX epochs)
2017-08-08 14:40:27 +02:00
Torkel Ödegaard
7c14ade623
Merge branch 'v4.4.x'
2017-08-08 09:28:41 +02:00
Torkel Ödegaard
7031f7e772
fix: sqlite3 and storing/displaying dates used wrong timezone, fixes #8996
2017-08-08 09:28:16 +02:00
Alexander
35522c475f
Fix #8998 by not overriding GOMAXPROCS ( #8999 )
2017-08-07 15:02:04 +02:00
Daniel Lee
649fe7e462
Merge branch 'v4.4.x'
2017-08-07 10:47:23 +02:00
Daniel Lee
aa889e59a1
tests: fix after interface change
2017-08-07 10:20:46 +02:00
Daniel Lee
1e5778174c
login: regenerates session id on login
2017-08-07 10:00:29 +02:00
David Wittman
8f5fbb4254
Fix typo in PagerDuty notifier options template ( #8978 )
2017-08-03 08:57:59 +02:00
Torkel Ödegaard
c7ca4830a8
Merge branch 'v4.4.x'
2017-08-03 08:56:46 +02:00
Torkel Ödegaard
1372d2e517
fix: update user permissions validation was not working properly, fixes #8977
2017-08-03 08:56:34 +02:00
Torkel Ödegaard
8d7186d40d
Merge branch 'v4.4.x'
2017-08-02 17:33:19 +02:00
Torkel Ödegaard
3dc9d76b38
fix: viewer role fix, fixes #8976
2017-08-02 17:33:06 +02:00
Torkel Ödegaard
c7c5730c40
Merge branch 'v4.4.x'
2017-07-31 16:04:31 +02:00
Torkel Ödegaard
34cda65998
fix: png rendering api & timeout parameter now works as it should AND default render timeout increased from 30 to 60 seconds, fixes #8710
2017-07-31 16:04:04 +02:00
Torkel Ödegaard
61d8eb1fac
Merge branch 'v4.4.x'
2017-07-31 15:07:22 +02:00
Torkel Ödegaard
73563d087c
feat: more work on #8768
2017-07-31 14:39:33 +02:00
Torkel Ödegaard
23558c61d4
feat: wip work on #8768
2017-07-31 13:03:42 +02:00
Dave Hall
0c70d271dc
Support large github organisations ( #8846 )
...
* Add new HttpGetResponse struct type
* Modify HttpGet() return to use HttpGetResponse
* Look up _all_ the teams the user is a member of
2017-07-31 12:13:29 +02:00
Torkel Ödegaard
24a79a6bea
Merge branch 'v4.4.x'
2017-07-24 12:30:28 +02:00
Torkel Ödegaard
723f5bc9e8
fix: dsahboard_version data column type changed to MEDIUMTEXT, fixes #8813
2017-07-24 12:30:13 +02:00
Mitsuhiro Tanda
b16b649c9b
(cloudwatch) add new elb metrics ( #8894 )
2017-07-20 14:12:56 +02:00
Mitsuhiro Tanda
9d50ab8fb5
(cloudwatch) check auth type before assume role ( #8895 )
2017-07-20 14:11:51 +02:00
gomlgs
228c210379
Cloudwatch: Fix bug with obtaining IAM roles within ECS containers. ( #8766 )
...
Fixes #8750 .
2017-07-12 06:55:59 +02:00
Liang Jiameng
f8d22385ce
add a placeholder to DingTalk Url ( #8820 )
2017-07-10 16:51:03 +02:00
0x6875790d0a
a622c55b1b
(feat) Add image to LINE notify ( #8771 )
2017-07-07 11:20:27 +02:00
Daniel Lee
e6f9546a7c
api: add no cache headers for IE11
...
Adds pragma and expires headers for API calls so that IE11 does not
cache GET calls. Ref #5356
2017-07-06 18:56:22 +02:00
Daniel Lee
6d4c29ea9b
migrations: dashboard version migration handles nulls
...
If a dashboard has a null value for updated_by then the migration
for the dashboard version table fails. This change uses coalesce to
set -1 instead of null when inserting into the created_by column
which has a non-null constraint. Fixes #8783 .
2017-07-05 22:14:03 +02:00
Daniel Lee
16cda723d3
migrations: dashboard version migration handles nulls
...
If a dashboard has a null value for updated_by then the migration
for the dashboard version table fails. This change uses coalesce to
set -1 instead of null when inserting into the created_by column
which has a non-null constraint. Fixes #8783 .
2017-07-05 22:06:00 +02:00
Daniel Lee
74093c700f
api: adds no-cache header for GET requests
...
Fixes #5356 . Internet Explorer aggressively caches GET requests which
means that all API calls fetching data are cached. This fix adds a
Cache-Control header with the value no-cache to all GET requests to
the API.
2017-07-04 21:26:05 +02:00
Liang Jiameng
109fd998ed
Add a new notifier : DingTalk ( #8473 )
...
* add alerting notifier: DingDing
* add alerting notifier: DingDing
* add dingding unit test
* add dingding unit test
* delete debug code & format code style.
* fix build failed: dingding_test.go
2017-07-04 15:16:32 +02:00
Torkel Ödegaard
e269b3b2a0
Merge branch 'refactor-basic-diff' of https://github.com/walmartlabs/grafana into walmartlabs-refactor-basic-diff
2017-07-03 09:49:53 +02:00
Daniel Lee
b8aa203707
signup: fix email sent logic for tempuser
...
Fixes #8656 and properly sets the email_sent and email_sent_on fields
for a tempuser (signup user).
2017-06-30 20:21:08 +02:00
Ben Tranter
1fd7b60efe
Add more information to basic diff logic
2017-06-29 14:38:48 -04:00
Daniel Lee
8973b48f96
setting: add tests for windows
2017-06-28 09:35:33 +02:00
Denis Doria
5aac2d2078
Include user Id on the lookup api ( #8698 )
...
Implements feature request #8682
2017-06-25 14:23:03 +02:00
Torkel Ödegaard
60da730c95
mysql: fix for TIME columns, fixes #8534
2017-06-23 12:55:40 -04:00
Torkel Ödegaard
be29357d22
fix: added missing url route for annotation state history delete, fixes #8660
2017-06-23 11:48:58 -04:00
Ben Tranter
a3d22ae9c7
Document logic behind basic diff
2017-06-22 18:23:31 -04:00
Ben Tranter
b54b43a42e
Add tests for diff formatters
2017-06-22 18:08:37 -04:00
Daniel Lee
2479e51a6b
mysql: Null value should not be considered as previous value
...
fixes #8655
2017-06-20 02:02:05 +02:00
Denis Doria
41d300f69d
Fix timeInterval for mysql datasource ( #8651 )
...
* Fix timeInterval for mysql datasource
This changes the > to >= and the < to <=, so the intervals are inclusive.
This should fix the #8635
* Fix validation
2017-06-19 08:58:22 -04:00
Daniel Lee
0eb297822c
httpserver: fixes #8641
...
Changes to the http_server class meant that the TLS settings were not
getting applied anymore. This fixes so that the minimum TLS version is
1.2 again.
2017-06-17 23:10:12 +02:00
Mitsuhiro Tanda
922073a357
(cloudwatch) add new metrics ( #8569 )
2017-06-08 07:01:33 +02:00
Torkel Ödegaard
08b37186a5
fix: fixed failing sql unit test
2017-06-07 15:42:48 +02:00
Torkel Ödegaard
e7e675e471
Merge branch 'walmartlabs-master' (Dashboard History Feature, #8472 )
2017-06-07 14:30:03 +02:00
Torkel Ödegaard
391dc1e225
dasboard_history: fixed sql integration test
2017-06-07 14:25:46 +02:00
Torkel Ödegaard
46412c8475
dasboard_history: security fix, added orgId filter to dashboard version lookup
2017-06-07 14:21:40 +02:00
Torkel Ödegaard
577dfee086
dasboard_history: fixed json diff so only dashbord is compared and not the whole dashboard revision object (message and restoreFrom etc was showing up in json diff)
2017-06-07 13:36:03 +02:00
Torkel Ödegaard
8f6c9c5946
dasboard_history: some polish around styles & diff colors, and minor fixes
2017-06-07 12:39:06 +02:00
Torkel Ödegaard
ef1dfed0d8
dasboard_history: big refactoring of how the compare api looked, now a POST with a model for new & base version, refactored a simplified UI code as well, this was done to lay foundation to make it possible to do diff against current in browser unsaved version
2017-06-07 11:50:09 +02:00
Torkel Ödegaard
948e5ae74d
dashboard_history: further css & markup fixes, removing style overrides & resuing existing styles and markup components
2017-06-06 23:04:14 +02:00
Torkel Ödegaard
7b5f7ed553
dashboard_history: SQL did not work when using MySQL, fixes to dashboard version numbering, so inserts start at 1, added migration to fix old dashboards with version 0
2017-06-06 15:40:10 +02:00
Torkel Ödegaard
5409f4c0eb
dashboard_history: fixed issue with save as & overwrite
2017-06-06 14:39:57 +02:00
Torkel Ödegaard
689e366f59
refactoring: updated api url routes so they do not conflict with slug route
2017-06-06 09:51:14 +02:00
Torkel Ödegaard
e2061312f5
refactoring: moved compare dashboard version command out of sqlstore, the code in this command did not use any sql operations and was more high level, could be moved out and use existing queries to get the versions
2017-06-06 00:15:40 +02:00
Torkel Ödegaard
746d6cdc88
refactoring: changed name on compare command to make properties more explainatory
2017-06-05 23:29:25 +02:00
Torkel Ödegaard
cabbfe9adc
refactoring: moved dashboard history item formating (message) and fixed dashboard history migration issue, and removed from frontend tests that where no longer needed
2017-06-05 22:59:04 +02:00
Torkel Ödegaard
f18ebea03e
fix: dashboard save modals had double submit on enter after my refactoring this morning
2017-06-05 18:01:16 +02:00
Torkel Ödegaard
82d4d54dc5
refactoring: fixed broken unit test in last commit
2017-06-05 17:51:51 +02:00
Torkel Ödegaard
c87418d060
refactoring: Dashboard history restore operation is now reusing existing
...
operations instead of duplicating a bunch of get & save logic.
2017-06-05 17:45:27 +02:00
Torkel Ödegaard
c296ae1178
refactoring: fixing unit tests broken in last commit
2017-06-05 16:52:36 +02:00
Torkel Ödegaard
e18007153d
refactoring: Renamed dashboard version queries that wrongly had Command suffix, added missing OrgId to dashboard history commands and queries
2017-06-05 16:34:32 +02:00
Anton Yackushev
bab21c9069
misspell: Corrected some misspelled words
2017-06-05 15:20:34 +03:00
Torkel Ödegaard
f3980504e2
Merge branch 'master' into walmartlabs-master
2017-06-05 13:43:00 +02:00
Eirik Nygaard
1efdd92ae8
Update oauth2 lib ( #8524 )
...
* Update to latest oauth2 library using govendor
* Follow API changes
2017-06-05 10:09:27 +02:00
Dan Cech
f224fd8310
reduce length of dashboard columns used in compound indexes ( #8507 )
2017-06-04 14:28:03 +02:00
Tom Gardiner
4fe9935321
Add support for AWS/VPN metrics ( #8528 )
2017-06-04 14:24:04 +02:00
sanchitraizada
77c046aac6
Implement review feedback
2017-06-01 17:57:09 -04:00
Torkel Ödegaard
5e0b03928e
Merge branch 'v4.3.x'
2017-05-29 10:49:02 +02:00
Torkel Ödegaard
0d39852ef4
fix: fixed test data fake metric query, fixes #8474
2017-05-29 10:48:38 +02:00
Dan Cech
c0d5b61403
tweak column lengths for utf8mb4 support on older mysql ( #8483 )
2017-05-29 08:31:36 +02:00
Dan Cech
7004a84c30
tweak column lengths for utf8mb4 support on older mysql
2017-05-29 08:19:51 +02:00
Dan Cech
8422697199
centralize oauth http calls, validate response status ( #8470 )
2017-05-26 14:35:32 +02:00
Ricky Moorhouse
665caa8e08
Include triggering metrics to pagerduty alerts
...
Assist the person receiving the alert in identifying the cause
Based on the slack notifier fields this will include upto 4 triggering
metrics in the custom details section in the pagerduty incident
Fixes #8479
2017-05-26 12:30:56 +01:00
Ben Tranter
a927b893ae
Use DBSession for getMaxVersion
2017-05-25 23:04:00 -04:00
sanchitraizada
e6616cc551
Merge pull request #10 from walmartlabs/version-control
...
History and Version Control for Dashboard Updates
2017-05-25 14:50:47 -07:00
Ben Tranter
b6e46c9eb8
History and Version Control for Dashboard Updates
...
A simple version control system for dashboards. Closes #1504 .
Goals
1. To create a new dashboard version every time a dashboard is saved.
2. To allow users to view all versions of a given dashboard.
3. To allow users to rollback to a previous version of a dashboard.
4. To allow users to compare two versions of a dashboard.
Usage
Navigate to a dashboard, and click the settings cog. From there, click
the "Changelog" button to be brought to the Changelog view. In this
view, a table containing each version of a dashboard can be seen. Each
entry in the table represents a dashboard version. A selectable
checkbox, the version number, date created, name of the user who created
that version, and commit message is shown in the table, along with a
button that allows a user to restore to a previous version of that
dashboard. If a user wants to restore to a previous version of their
dashboard, they can do so by clicking the previously mentioned button.
If a user wants to compare two different versions of a dashboard, they
can do so by clicking the checkbox of two different dashboard versions,
then clicking the "Compare versions" button located below the dashboard.
From there, the user is brought to a view showing a summary of the
dashboard differences. Each summarized change contains a link that can
be clicked to take the user a JSON diff highlighting the changes line by
line.
Overview of Changes
Backend Changes
- A `dashboard_version` table was created to store each dashboard
version, along with a dashboard version model and structs to represent
the queries and commands necessary for the dashboard version API
methods.
- API endpoints were created to support working with dashboard
versions.
- Methods were added to create, update, read, and destroy dashboard
versions in the database.
- Logic was added to compute the diff between two versions, and
display it to the user.
- The dashboard migration logic was updated to save a "Version
1" of each existing dashboard in the database.
Frontend Changes
- New views
- Methods to pull JSON and HTML from endpoints
New API Endpoints
Each endpoint requires the authorization header to be sent in
the format,
```
Authorization: Bearer <jwt>
```
where `<jwt>` is a JSON web token obtained from the Grafana
admin panel.
`GET "/api/dashboards/db/:dashboardId/versions?orderBy=<string>&limit=<int>&start=<int>"`
Get all dashboard versions for the given dashboard ID. Accepts
three URL parameters:
- `orderBy` String to order the results by. Possible values
are `version`, `created`, `created_by`, `message`. Default
is `versions`. Ordering is always in descending order.
- `limit` Maximum number of results to return
- `start` Position in results to start from
`GET "/api/dashboards/db/:dashboardId/versions/:id"`
Get an individual dashboard version by ID, for the given
dashboard ID.
`POST "/api/dashboards/db/:dashboardId/restore"`
Restore to the given dashboard version. Post body is of
content-type `application/json`, and must contain.
```json
{
"dashboardId": <int>,
"version": <int>
}
```
`GET "/api/dashboards/db/:dashboardId/compare/:versionA...:versionB"`
Compare two dashboard versions by ID for the given
dashboard ID, returning a JSON delta formatted
representation of the diff. The URL format follows
what GitHub does. For example, visiting
[/api/dashboards/db/18/compare/22...33](http://ec2-54-80-139-44.compute-1.amazonaws.com:3000/api/dashboards/db/18/compare/22...33 )
will return the diff between versions 22 and 33 for
the dashboard ID 18.
Dependencies Added
- The Go package [gojsondiff](https://github.com/yudai/gojsondiff )
was added and vendored.
2017-05-24 19:14:39 -04:00
Dhia
ac28c4b233
add Referer header to logs. This is useful to link datasource requests to dashboard that originated it ( #8399 )
2017-05-24 13:47:29 +02:00
Torkel Ödegaard
dcf7385cc1
sensu: added input tooltip to source property
2017-05-24 13:44:38 +02:00
joe miller
090594a0bc
support setting the source and handler attribute in sensu notifications ( #8405 )
...
* support setting the handler attribute in sensu alert notifications
* allow the user to set the source attribute of Sensu notifications
2017-05-24 13:42:24 +02:00
Dan Cech
007c08f2a8
remove X-Forwarded-* headers added by nginx when proxying data source & plugin requests ( #8418 )
...
* remove X-Forwarded-* headers added by nginx when proxying data source & plugin requests
* properly handle X-Forwarded-For
2017-05-24 13:39:40 +02:00
Daniel Parks
2d29d7b3d6
Add support for AWS DMS CloudWatch metric ( #8458 )
2017-05-24 13:24:24 +02:00
Torkel Ödegaard
28bff0c1f3
Merge branch 'v4.3.x'
2017-05-24 13:22:09 +02:00
Torkel Ödegaard
b17a1ed557
playlist: fixed dashboard play ordering, fixes #7688
2017-05-24 13:21:43 +02:00
Prasanna Gautam
6541ffe045
minor change: more accurate variable name ( #8449 )
2017-05-24 08:38:13 +02:00
Torkel Ödegaard
befc15c5a1
fix: s3 image uploads to us-east-1 (us standard) did not return correct image urls so images shared to slack and other services was not correct, fixes #8444
2017-05-23 15:50:22 +02:00
Torkel Ödegaard
359421b5e8
refactor: sqlstore inTransaction consolidated to one version, fixes #8376
2017-05-23 10:56:23 +02:00
Torkel Ödegaard
c34db77f04
grafana_com: changed name of oauth grafana_net integration (old settings names still work), and updated login button look, closes #8415
2017-05-22 14:56:50 +02:00
Torkel Ödegaard
a0b9dcad4d
alert: alerting annotation improvements, fixes #8421
2017-05-22 13:02:49 +02:00
Dave Scott
f7215608e9
Update VictorOps notifier w/ auto resolve and image URL ( #8431 )
...
* Fixed newline JSON buy in VictorOps integration
* Fixed payload sent to VictorOps so that link displays correctly
* Fixed formatted to resolve go error
* Add auto resolve incidents and image URL to VictorOps notifier
2017-05-21 10:02:48 +02:00
Torkel Ödegaard
43d5525aaa
Merge branch 'master' into alert_state
2017-05-18 13:38:34 +02:00
Daniel Lee
16fb7a2e4a
Merge pull request #8394 from berghauz/master
...
Proxy support added to webdav uploader, fixes #7922
2017-05-17 14:49:22 +02:00
Dan Cech
9dc220b8e2
include error message in email notification ( #8392 )
2017-05-17 09:51:51 +02:00
berghauz
48cf58e739
Indenting fix
2017-05-17 03:58:18 +03:00
berghauz
c713bd9a9a
Proxy support added, fixes #7922
...
Well, i'm really want to see it working in 4.3.0
2017-05-17 02:50:56 +03:00
Daniel Lee
e8b798914d
mysql: adds mapping for int/long
2017-05-16 16:07:42 +02:00
Torkel Ödegaard
f84dc24fcb
alerting: improving and fixing alert history, #7257
2017-05-15 16:17:05 +02:00
Torkel Ödegaard
f697f81950
sqlite: fixed database table looked handling, now retries up to 5 times, fixes #7992
2017-05-15 12:19:19 +02:00
Daniel Lee
a9c535e551
mysql: add some more type mapping
...
Decimals mapped to floats for now. No mapping for bit or
any of the blob types. Tinyint not mapped to bool.
2017-05-12 11:37:51 +02:00
Torkel Ödegaard
4ce0bf4d16
mysql: improved mysql data source, added test feature when adding data source, fixed cache issue
2017-05-11 10:50:24 +02:00
Tiantian Gao
b2c14b858e
Fix http logging time_ms
unit is wrong ( #8342 )
...
In fact, the unit of `time_ms` int http logging is not "ms", this patch fix it.
2017-05-11 08:53:40 +02:00
Pranay Kanwar
ee8799de88
Fix dropcounter option, is called dropResets ( #8336 )
2017-05-10 15:46:19 +02:00
Daniel Lee
4a35126bf6
api: health check returns 503 if db is failing
...
ref #3302
2017-05-10 15:23:59 +02:00
Torkel Ödegaard
b042c53980
ux: updated heatmap icon
2017-05-03 08:56:51 +02:00
Dan Cech
665cf55e6e
make generic oauth provider flexible enough to handle bitbucket's oauth implementation ( #8248 )
2017-05-02 14:37:56 +02:00
rogerswingle
02455753b5
Specify region for s3 ( #8251 )
2017-05-01 19:22:20 +02:00
Mitja Z
c92d719a72
added support for listening on unix socket #4030 ( #8221 )
2017-04-27 08:54:21 +02:00
Yaron de Leeuw
d4f7a2bc99
minor code style: use strings.Replace
fourth argument in influxdb ( #8225 )
...
Remove 5 lines from the codebase and an unecessary function,
by calling `strings.Replace` with -1 for the fourth argument.
A better alternative to what was merged in #8037
2017-04-27 08:51:43 +02:00
Torkel Ödegaard
19a04b7e4a
change: minor change to health check api endpoint
2017-04-25 17:24:36 +02:00
Torkel Ödegaard
f6f2d85aa7
change: minor change to health check api endpoint
2017-04-25 17:24:06 +02:00
Daniel Lee
6538e86793
webdav: add tests + path.join for public url param
...
Fixes #7914 . Fixes #7921
2017-04-25 17:22:18 +02:00
fir4
6d9e8bd147
webdav: allow specification of a different public_url than upload url
2017-04-25 17:22:18 +02:00
Torkel Ödegaard
368e847d12
feat: added api health endpoint that does not require auth and never creates sessions, returns db status as well. #3302
2017-04-25 17:17:45 +02:00
Torkel Ödegaard
b780415f25
fix: change to remember me cookie encoding
2017-04-25 15:33:15 +02:00
Daniel Lee
aee4af2148
api: omit unused fields for /api/datasources
...
Fixes #7822
2017-04-25 15:23:36 +02:00
Torkel Ödegaard
87c978ebc9
fix: better error handling / messsage when testing email notification when stmp is not configured, fixes #8093
2017-04-25 13:16:41 +02:00
Dan Cech
b489e93d94
Config Array Syntax ( #8204 )
...
* refactor util encryption library so it doesn't have to import log
* add util.SplitString to handle space and/or comma-separated config lines
* go fmt
2017-04-25 09:14:29 +02:00
Torkel Ödegaard
ae5e004b69
mysql: time filter macro updated
2017-04-24 14:55:43 +02:00
Daniel Lee
7784e4e24b
mysql: add datetime type to table data
2017-04-23 21:56:58 +02:00
Daniel Lee
413ee33d5d
mysql: fix go vet error
2017-04-23 20:07:20 +02:00
Torkel Ödegaard
b22b3e5bb9
mysql: added default query template
2017-04-21 16:28:01 +02:00
Torkel Ödegaard
97e2d75f51
mysql: added support for tables in mysql queries
2017-04-21 15:07:43 +02:00
Torkel Ödegaard
c78c460f79
mysql: worked on mysql data soruce
2017-04-20 17:10:23 +02:00
Daniel Lee
6ec1d16327
fix: cli admin reset-password fixes cmd args
...
Fixes the homepath and config command line args. This allows the
command to be used even when the homepath is different from the
default.
Fixes #7730
2017-04-20 13:30:17 +02:00
Torkel Ödegaard
50e70cf3db
build: fixed unit test
2017-04-20 13:04:42 +02:00
Torkel Ödegaard
fc878bc8ad
build: fixed order
2017-04-20 11:59:11 +02:00
Torkel Ödegaard
11806dfa78
mysql: progress
2017-04-19 17:26:37 +02:00
Daniel Lee
ee3a553800
Merge pull request #8163 from bashgeek/telegram_metrics
...
Add metrics/matches to Telegram notifications (proposed fix for #8110 )
2017-04-19 15:03:03 +02:00
Daniel Schmitz
d123b951e9
Fixed parsing error
2017-04-19 17:02:52 +08:00
Torkel Ödegaard
e164eba677
mysql: began work on backend macro engine
2017-04-19 10:10:08 +02:00
Daniel Schmitz
7078d5d524
Added metrics/matches to telegram notifications; Added some HTML to beautify
2017-04-19 15:53:23 +08:00
Torkel Ödegaard
0bae7212f6
annotations: removed category stuff, my mistake, we need tags
2017-04-18 17:15:22 +02:00
Alexander Zobnin
7aa992bde4
initial category types
2017-04-17 18:56:39 +03:00
Alexander Zobnin
f0816b37bd
rename annotation_category to category
2017-04-17 18:53:10 +03:00
Torkel Ödegaard
60ef7d8768
Merge branch 'master' into create-annotations
2017-04-14 22:36:34 +02:00
Dan Cech
f490c5f12c
use X-Grafana-Org-Id header to ensure backend uses correct org ( #8122 )
2017-04-14 15:47:39 +02:00
Torkel Ödegaard
dbe5480edc
create annotations work
2017-04-14 11:41:02 +02:00
Torkel Ödegaard
2fce88ee62
ux: popover forms
2017-04-14 10:18:49 +02:00
Dan Cech
3a607f96a3
fix bug in log sprintf calls ( #8124 )
2017-04-14 07:45:36 +02:00
Torkel Ödegaard
dbeeb32ab6
Merge branch 'master' into popover-forms
2017-04-13 16:22:08 +02:00
Alexander Zobnin
ab99a7c1c7
graph(create annotation): add initial annotation_category table
2017-04-13 16:57:22 +03:00
Torkel Ödegaard
593b2ef866
annotation: added region support to annoations
2017-04-12 16:26:34 +02:00
Torkel Ödegaard
0156a94a49
annotations: you can now read annoations via manually created annoation query
2017-04-12 15:46:41 +02:00
Torkel Ödegaard
8eb112d119
plugins: refactoring builtIn data source concept, now means data source plugins that you do not need to add via data sources page, that is automatically added as selectable data source, #8095
2017-04-12 08:23:44 +02:00
Torkel Ödegaard
e80494390a
Merge branch 'always_displayed_datasources' of https://github.com/ctide/grafana into ctide-always_displayed_datasources
2017-04-12 07:44:59 +02:00
Torkel Ödegaard
b3df1aa9bd
org: fixed issue with orgId query param redirect handling when grafana is under subpath and reverse proxy, fixes #8089
2017-04-12 07:11:08 +02:00
Mitsuhiro Tanda
d2bf2e86ed
upgrade to aws-sdk-go v1.8.11 ( #8091 )
...
* upgrade to aws-sdk-go v1.8.11
* fix test
2017-04-12 06:40:44 +02:00
Chris Burkhart
d12dc2bfa7
Add alwaysDisplayed option to datasource plugins, this will allow it to show up as an option to select when adding queries to a panel without actually adding it as a datasource.
2017-04-11 13:47:53 -07:00
Torkel Ödegaard
07466b6725
security: fixed returning info on weither user exists or not in password reset call, fixes #7619
2017-04-11 16:50:16 +02:00
Torkel Ödegaard
83e0f69cde
Merge branch 'master' of github.com:grafana/grafana
2017-04-11 14:43:40 +02:00
Torkel Ödegaard
9bdcc4ec5f
influxdb: holt winters edits
2017-04-11 14:40:08 +02:00
Daniel Lee
3ca3c96226
profiling: adds profiling and tracing
...
If grafana-server binary is started with the -profile flag then
tracing will create a trace.out file and pprof data can be accessed
on the 6060 port.
A custom port for pprof profiling can be set with the -profile-port
flag.
2017-04-11 10:32:18 +02:00
Alexander Zobnin
f42202e665
Merge branch 'master' into graph-annotations
2017-04-11 10:27:37 +03:00
Alexander Zobnin
d553498a33
graph(add annotation): initial backend implementation #1286
2017-04-10 20:22:58 +03:00
Torkel Ödegaard
0384eecf5c
fix: minor fix for bug when saving alert with empty message, fixes #7927
2017-04-10 15:26:05 +02:00
Alfred Krohmer
41171f8a5c
Add a link to a graph image in Pushover notifications ( #8075 )
2017-04-10 09:17:37 +02:00
Torkel Ödegaard
1cd632cc43
plugins: added state property to plugins
2017-04-07 12:00:03 +02:00
Torkel Ödegaard
26804d630f
Merge branch 'master' into sql-proxy
2017-04-07 10:34:51 +02:00
Torkel Ödegaard
f5f0d94ad4
fix: temp/testing fix for hanging issue, #8033
2017-04-06 13:18:50 +02:00
Alexander Zobnin
2b81bfe9bf
alerting: fix $timeFilter cannot be used twice ( #7969 ) ( #8037 )
2017-04-05 17:17:55 +02:00
Torkel Ödegaard
95e0010a5b
fix: sqlite3 and concurrent write requests caused database locked error some times, depending on how many concurrent requests and speed of disk drive. Fixed by reducign the number of concurrent db connections to 1 for sqlite3, fixes #7992
2017-04-03 09:42:11 +02:00
Torkel Ödegaard
5af81b974e
mysql: graph showing
2017-03-31 13:57:10 +02:00
Torkel Ödegaard
a7babfb7cf
tech: updated xorm libs
2017-03-31 12:54:39 +02:00
Torkel Ödegaard
e5a5bef200
mysql: minor update
2017-03-31 12:49:05 +02:00
Torkel Ödegaard
d6d2080f11
mysql: minor progress on response processing
2017-03-31 11:45:25 +02:00
Torkel Ödegaard
bd4f073425
mysql: minor update
2017-03-30 20:23:40 +02:00
Torkel Ödegaard
998f04e1e8
mysql: testdata
2017-03-30 20:01:04 +02:00
Torkel Ödegaard
34d92b0e79
mysql: starting work on test data
2017-03-30 18:03:50 +02:00
Torkel Ödegaard
080d2a2054
mysql: reading arbitrary SQL data in go is really strange, data is only in strings?
2017-03-30 13:46:46 +02:00
Torkel Ödegaard
00fcaaf171
mysql: commented out old code from old PR
2017-03-29 22:55:37 +02:00
Torkel Ödegaard
8f90c6115d
mysql: progress on mysql data source
2017-03-29 22:54:18 +02:00
Torkel Ödegaard
6965064ea9
Merge branch 'master' into sql-proxy
2017-03-29 16:40:14 +02:00
Seuf
319b8d8fca
Configurable signout menu activation ( #7968 )
2017-03-29 11:33:28 +02:00
Dan Cech
24d4e50343
utf8mb4 encoding ( #7959 )
...
* use utf8mb4 character set for connections to mysql
* use utf8mb4 character set for tables, shorten varchar fields used in unique indexes
* migration type to update table character set
* update table character sets
* set charset for temp_user.status
* gofmt
2017-03-28 14:34:53 +02:00
Jaroslav Hanslík
e91a078105
Slack notification should contain fallback text ( #7961 )
2017-03-28 10:05:44 +02:00
Dan Cech
dde8583db8
xorm engine.SetMaxConns is a deprecated alias for engine.SetMaxOpenConns
2017-03-27 18:04:03 -04:00
Daniel Lee
f45d637025
auth: fix warning in test
2017-03-23 15:52:08 +01:00
Daniel Lee
beb85f413a
oauth: delete session key instead of set to empty
...
Adds the Delete function to the Session wrapper so that the Macaron
function for deleting keys from a Session can be used.
https://go-macaron.com/docs/middlewares/session#implement-provider-interface
2017-03-23 15:26:13 +01:00
Daniel Lee
79cef75fed
Merge pull request #7426 from Altoros/altoros/authorization-errors
...
Add common type for oauth authorization errors
2017-03-23 15:25:35 +01:00
gomlgs
e99137598e
Cloudwatch: Correctly obtain IAM roles within ECS container tasks. ( #7892 )
...
We now obtain credentials based on the container task's role
rather than just relying on the credentials of the enclosing
container instance.
Fixes #6700 .
2017-03-22 07:15:19 +01:00
Daniel Lee
69bec98962
chore: update all grafana.org urls to .com
2017-03-21 15:37:55 +01:00
Torkel Ödegaard
be5c4f47a6
s3: support for alternative s3 bucket url syntax, closes #7871
2017-03-20 14:10:44 +01:00
Torkel Ödegaard
970619ed52
Merge branch 'disable-login'
2017-03-20 11:18:41 +01:00
Torkel Ödegaard
4d4e165be7
links: updated links from grafana.net to grafana.com
2017-03-20 10:20:32 +01:00
Mitsuhiro Tanda
a67497e679
add new s3 metrics ( #7846 )
2017-03-20 09:09:08 +01:00
Dan Cech
737c29ec8c
disable inviting new users to orgs if login form is disabled
2017-03-17 16:35:05 -04:00
Pandurang Waghulde
f3cce7efc9
typo fix for OpsGenie
2017-03-17 12:57:52 +05:30
Daniel Lee
9efb6e76e9
users: adds search and pagination ( #7753 )
...
ref #7469 . Follow up change that adds proper paging with 50 results
per page as well as a search box to search by name, login or email.
2017-03-07 16:03:54 +01:00
Wouter Smit
125ee865b6
Spelling mistake ( #7739 )
2017-03-06 21:08:45 +01:00
Mitsuhiro Tanda
b387a8759e
use session.NewSession() ( #7745 )
2017-03-06 21:08:16 +01:00
Pranay Kanwar
6ab90425c4
Pass dropcounter rate option if no max counter and no reset value or reset value as 0 is specified ( #7743 )
2017-03-06 16:19:37 +01:00
Torkel Ödegaard
c3202d3f99
sessions: start session gc at startup but only after between 10 - 180 seconds
2017-03-06 12:23:28 +01:00
Torkel Ödegaard
9f1c6a73f0
tech: added sql logger to log all sql statements sent to sql server
2017-03-06 11:51:35 +01:00
Carl Bergquist
f185c2c953
Merge pull request #7676 from dbrgn/threema-emoji
...
feat(alerting): Add emoji to Threema alert notifications
2017-03-03 11:04:49 +01:00
bergquist
412b8998a8
webhooks: get proxy settings from ini file
...
closes #7710
2017-03-02 13:57:28 +01:00
Danilo Bargen
1422655e97
feat(alerting): Add emoji to Threema alert notifications
...
This commit prepends emoji to Threema alert notifications to make it
easier to discern various notification types (e.g. alert, no data, ok).
2017-02-27 17:10:52 +01:00
bergquist
05952688c5
tech: avoid using http.DefaultClient
2017-02-24 17:22:12 +01:00