Hugo Häggmark
d3642a3e91
Moved Server Admin and children to separate menu item on Side Menu ( #15592 )
...
* Moved Server Admin and children to separate menu item on Side Menu
* Removed style guide after PR comments
2019-03-05 13:02:41 +01:00
Johannes Schill
a81d5486b0
Viewers with viewers_can_edit should be able to access /explore ( #15787 )
...
* fix: Viewers with viewers_can_edit should be able to access /explore #15773
* refactoring initial PR a bit to simplify function and reduce duplication
2019-03-05 12:41:01 +01:00
Torkel Ödegaard
b787811da8
Merge pull request #15761 from grafana/15708_access
...
fix: limit access to org admin and alerting pages
2019-03-05 09:17:20 +01:00
Marcus Efraimsson
5638c67be8
org admins should only be able to access org admin pages
2019-03-04 15:51:18 +01:00
Marcus Efraimsson
a29b99b96b
only editor/admin should have access to alert list/notifications pages
2019-03-04 15:48:07 +01:00
Bryan T. Richardson
ae23773db3
Added MaximumUsedTransactionIDs metric to list of AWS RDS metrics.
2019-03-04 07:38:36 -07:00
Torkel Ödegaard
b4df0e73cd
Merge pull request #15706 from grafana/15656-playlists-with-tags-rebased
...
wip: Fix playlists "by tags"
2019-03-04 09:00:28 +00:00
sandeep
e04218e550
Fix : #14706 Incorrect index pattern padding in alerting queries
...
When weekly index pattern is used, indices names contain single digit week number for week 1-9
This fix makes sure indice names always contain 2 digit week number for weekly pattern
2019-03-03 18:10:38 +05:30
Marcus Efraimsson
d49f0bedd3
fix: prevent datasource json data stored as nil ( #15508 )
...
prevent datasource json data stored as nil
closes #14239
2019-03-02 21:18:26 +01:00
Samuel
41024c29bb
Return 404 on user not found ( #15606 )
...
Return 404 on user not found
closes #10506
2019-03-02 20:34:48 +01:00
Johannes Schill
8d5ccc7831
fix: Return url when query dashboards by tag
2019-02-28 10:44:39 +01:00
utkarshcmu
37033080b7
Removed commented code
2019-02-27 00:33:40 -08:00
utkarshcmu
8ef3aebc29
Fixed alias in Cloudwatch Expressions
2019-02-27 00:20:29 -08:00
Leonard Gram
36788183d8
service: fix for disabled internal metrics.
...
Update of the internal metrics for Grafana was
disabled by mistake when refactoring the code.
Fixes #15651
2019-02-26 11:41:55 +01:00
Carl Bergquist
369aa2d5dd
Merge pull request #15628 from bergquist/move_tracing_infra
...
moves tracing packge into /infra
2019-02-25 16:16:45 +01:00
bergquist
60fef31748
moves social package to /login
...
ref #14679
2019-02-25 15:30:40 +01:00
bergquist
0c67194b45
moves tracing packge into /infra
2019-02-25 15:29:25 +01:00
Carl Bergquist
0aa61c8e12
Merge pull request #15629 from bergquist/moves_metrics_to_infra
...
moves metric package to /infra
2019-02-25 02:44:09 +01:00
bergquist
8a3a3cccc3
moves metric package to /infra
...
ref #14679
2019-02-24 21:12:51 +01:00
Daniel Lee
d1e249a803
stackdriver: fix for float64 bounds for distribution metrics
...
Adds support for explicit distribution metrics and float64 bounds
Fixes #14509
2019-02-24 17:37:26 +01:00
Hugo Häggmark
769ad21e16
Moved variable to config struct after PR comments
2019-02-22 14:39:22 +01:00
Hugo Häggmark
9c9691f7af
Added feature toggle editors_can_own
2019-02-22 14:39:22 +01:00
Maddin-619
09cd173e92
updates all cols except created so user and password
...
of the database can be chaned to no user and password
2019-02-22 14:19:15 +01:00
Hugo Häggmark
dafcfd70a7
Fixed bug with getting teams for user
2019-02-22 14:07:18 +01:00
Peter Holmberg
5f56a07a23
Merge branch 'master' into bar-gauge-poc
2019-02-19 15:43:08 +01:00
bergquist
7754c37a1f
reduce loglevel to debug
2019-02-19 08:22:33 +01:00
Torkel Ödegaard
9d78960c5e
Merge pull request #15503 from grafana/explore-icon
...
Updated explore icon and style tweaks
2019-02-18 18:37:51 +01:00
Torkel Ödegaard
df170aee16
Updated explore icon and style tweaks
...
Lowered icon size and improved paddings, tried to align placement between dashboard and explore
2019-02-18 18:26:24 +01:00
Daniel Lee
56c965e5df
cli: chmod 755 for backend plugin binaries
...
Fixes #15500 . Does a simple filename check if the binary names ends
with _linux_amd64 or _darwin_amd64 then sets the file mode to 755.
2019-02-18 15:05:34 +01:00
Torkel Ödegaard
3dae915b23
Bar gauge icon updated
2019-02-16 15:47:35 +01:00
Torkel Ödegaard
1adc1a6097
Merge pull request #15455 from grafana/fixed-handling-of-alert-urls
...
Fixed handling of alert urls with true flags
2019-02-15 16:27:23 +01:00
Torkel Ödegaard
4c28ec83b3
Merge pull request #15444 from max-neverov/percent_diff_null
...
Fix percent_diff calculation when points are nulls
2019-02-15 13:03:19 +01:00
Torkel Ödegaard
7699706e65
fixed handling of alert urls with true flags, fixes #15454
2019-02-15 11:23:31 +01:00
Maxim Neverov
28eaac3a9c
Extracted common code for diff calculation
2019-02-14 21:52:59 +01:00
Torkel Ödegaard
0256a4dd47
Merge pull request #15417 from kiran3394/master
...
added support for influxdb non_negative_difference function in tsdb
2019-02-14 18:49:32 +01:00
Torkel Ödegaard
cd8f5835ec
Merge pull request #15395 from briangann/20190212_adjust_notifier_render_timeout
...
allow 90 percent of alertTimeout for rendering to complete vs 50 percent
2019-02-14 17:21:40 +01:00
Maxim Neverov
3c2f6094b2
Fix percent_diff calculation when points are nulls
2019-02-14 16:31:15 +01:00
Brian Gann
c98b00c302
allow 90 percent of alertTimeout for rendering to complete vs 50 percent
2019-02-13 09:56:37 -06:00
z0029c4
13974cdd28
added support for influxdb non_negative_difference function in tsdb
2019-02-13 18:12:35 +05:30
z0029c4
8cb1e5b918
added support for influxdb non_negative_difference function in tsdb for alerting
2019-02-13 17:55:31 +05:30
Torkel Ödegaard
3b0ae4bd0a
Merge pull request #15368 from grafana/15217-panels-without-queries
...
POC: Panels without queries can skip DataPanel
2019-02-13 08:06:25 +01:00
Torkel Ödegaard
a1453607a9
Changed noQueries to a dataFormats array that will allow a panel to define supported formats and prefered (first in array)
2019-02-12 16:05:29 +01:00
Carl Bergquist
dcec61e1b4
Merge pull request #15378 from grafana/auth_token_quotas
...
use authTokenService for session quotas restrictions
2019-02-12 15:38:57 +01:00
bergquist
e163aadfe4
use authtoken for session quota restrictions
...
closes #15360
2019-02-12 15:10:55 +01:00
bergquist
1310d356fc
removes unused session code
2019-02-12 12:33:54 +01:00
Johannes Schill
075fb8e91c
chore: Rename isDataPanel to noQueries
2019-02-12 12:28:53 +01:00
Johannes Schill
c4b2dcefbe
feat: Introduce IsDataPanel attribute to plugin.json
2019-02-12 12:28:53 +01:00
Daniel Lee
18615a3357
Merge pull request #15363 from bergquist/edition_to_build_info
...
adds edition to build_info metric
2019-02-11 16:46:53 +01:00
bergquist
e4e42fcd08
adds edition to build_info metric
2019-02-11 15:42:12 +01:00
Daniel Lee
1c364b57b5
Merge pull request #15353 from grafana/14623-azure-monitor-alerting
...
Adds alerting for the Azure Monitor API in the Azure Monitor datasource
2019-02-11 15:16:32 +01:00
Daniel Lee
ac345312a4
azuremonitor: don't use make for maps and array
2019-02-11 14:42:12 +01:00
Marcus Efraimsson
c13e302cde
Merge pull request #15356 from grafana/15258_fix
...
revert ds_proxy timeout and implement dataproxy timeout correctly
2019-02-11 14:05:51 +01:00
Marcus Efraimsson
a1cd550df4
revert ds_proxy timeout and implement dataproxy timeout correctly
2019-02-11 13:42:05 +01:00
Carl Bergquist
1f7a1f807e
Merge pull request #15299 from grafana/15295_fux
...
Make sure alert notifier provisioning directory are created for deb and rpm packages
2019-02-11 13:31:51 +01:00
Daniel Lee
0b74860f55
azuremonitor: fix auto interval calculation on backend
...
Not needed for alerting (as the query intervalms will always be 0) but needed
later when being called from the frontend)
2019-02-11 13:27:08 +01:00
Daniel Lee
a54484638d
interval: make the FormatDuration function public
...
A useful function that was ported from kbn.ts and can be used
to convert milliseconds into a kbn unit
2019-02-11 11:25:51 +01:00
bergquist
3ce99bca66
renames usage state name for auth token
...
as noted, sessions might not be a good name for this metrics.
while devices would be a better name for users I think we should
align the name with the code as much as possible. The ui listing
all auth_tokens per user should probarbly say "devices" instead
2019-02-11 11:08:31 +01:00
Carl Bergquist
396a5a947f
Merge pull request #15300 from bergquist/token_usage_stats
...
adds usage stats for sessions
2019-02-11 10:31:57 +01:00
Marcus Efraimsson
75f89ecf1f
Merge pull request #14888 from bugficks/8570-mysql-ssl-datasource
...
MySQL SSL CA in datasource connector
2019-02-11 09:00:18 +01:00
Daniel Lee
d6904ba9b4
azuremonitor: small refactoring
2019-02-11 01:22:15 +01:00
Daniel Lee
60327953a2
azuremonitor: handles timegrain set to auto on backend
2019-02-11 01:17:37 +01:00
Daniel Lee
452c4f5b9b
azuremonitor: add test for dimension filter
2019-02-10 01:47:38 +01:00
Daniel Lee
b94de101cd
azuremonitor: refactor azure monitor api code into own file
2019-02-10 01:18:16 +01:00
Daniel Lee
b816f35c41
azuremonitor: handle multi-dimensions on backend
2019-02-10 00:23:12 +01:00
Daniel Lee
a5e5db20e1
azuremonitor: add support for aggregations on backend
2019-02-09 21:52:44 +01:00
Connor Patterson
d2aed7e075
Fix formatting
2019-02-09 14:13:15 -05:00
Connor Patterson
2987a47a9b
Add aws ec2 api metrics for cloudwatch
2019-02-09 13:47:08 -05:00
Daniel Lee
10194df112
azuremonitor: simple alerting for Azure Monitor API
...
Lots of edge cases and functionality left to implement but
a simple query works for alerting now.
2019-02-08 18:15:17 +01:00
Marcus Efraimsson
1bc2a0af70
use unique datasource id when registering mysql tls config
2019-02-08 18:08:07 +01:00
Daniel Lee
0e228d582d
azuremonitor: builds a query and sends it to Azure on the backend
...
Lots of edge cases not covered and the response is not parsed. It only
handles one service and will have to be refactored to handle multiple
2019-02-08 17:20:31 +01:00
Leonard Gram
b32d420a75
ldap: refactoring.
2019-02-08 08:18:24 +01:00
Daniel Lee
21a1507c77
ldap: fixes #14432 . Fix for IPA v4.6.4
...
IPA v4.6.4 introduced a fix that does not allow empty attributes
to be sent in a search request. This fix only adds attributes to
the request if they are mapped in the ldap toml file.
2019-02-08 08:18:24 +01:00
bergquist
2be60887ca
adds usage stats for sessions
2019-02-07 16:27:40 +01:00
Marcus Efraimsson
b4267eafb8
log root cause error when reading from provisioning directories
2019-02-07 15:46:57 +01:00
bergquist
6e7941d396
moves usage stats sender to new package
2019-02-07 14:59:50 +01:00
Marcus Efraimsson
c71904e326
Merge pull request #15239 from grafana/auth_token_middleware_refactor
...
Auth token package and middleware refactoring
2019-02-07 14:24:23 +01:00
Torkel Ödegaard
78ea7ae783
Merge pull request #15212 from grafana/dashboard-react-page
...
Dashboard react page
2019-02-07 14:23:44 +01:00
bergquist
170783c292
make hourly cleanup the default behavior
2019-02-07 10:51:35 +01:00
Marcus Efraimsson
1a140ee199
run token cleanup job when grafana starts, then each hour
2019-02-06 22:27:08 +01:00
Marcus Efraimsson
836501186f
fix
2019-02-06 17:30:17 +01:00
Marcus Efraimsson
8ae066ab5d
move authtoken package into auth package
2019-02-06 17:02:57 +01:00
Marcus Efraimsson
8678620730
move UserToken and UserTokenService to models package
2019-02-06 16:55:12 +01:00
Marcus Efraimsson
a60124a88c
change UserToken from interface to struct
2019-02-06 16:30:50 +01:00
Marcus Efraimsson
afa87e6ab4
Merge pull request #15197 from SamuelToh/12546_annotation_nulls_existing_val
...
Add http patch support for annotations
2019-02-06 14:50:00 +01:00
Marcus Efraimsson
44275d9660
middleware fix
2019-02-06 08:45:01 +01:00
Marcus Efraimsson
d8658a765c
enhanced expiration logic for lookup token
...
tokens are not expired if created_at > now - LoginMaxLifetimeDays and
rotated_at > now - LoginMaxInactiveLifetimeDays
2019-02-06 08:30:14 +01:00
Marcus Efraimsson
e87ff5a06d
Merge pull request #15265 from larsjoergensen/cloudwatch/add-rds-aurora-serverlessdatabasecapacity-metrics
...
Added ServerlessDatabaseCapacity metric to list of AWS RDS metrics.
2019-02-05 21:56:11 +01:00
SamuelToh
4de9e3598b
Address review comments
2019-02-06 06:41:39 +10:00
Marcus Efraimsson
9483506590
auth token clean up job now runs on schedule and deletes all expired tokens
...
delete tokens having created_at <= LoginMaxLifetimeDays or
rotated_at <= LoginMaxInactiveLifetimeDays
2019-02-05 21:20:11 +01:00
Marcus Efraimsson
871c84d195
changes needed for api/middleware due to configuration settings
2019-02-05 21:14:23 +01:00
Marcus Efraimsson
0915f931ae
change configuration settings in auth package
2019-02-05 21:12:30 +01:00
Marcus Efraimsson
3c2fd02bc0
refactor login/auth token configuration settings
...
remove login section and reuse existing sections security and auth
2019-02-05 21:09:55 +01:00
Marcus Efraimsson
1d1b617cee
remove unused code
2019-02-05 21:08:55 +01:00
Lars Jørgensen
749320002b
Added ServerlessDatabaseCapacity metric to list of AWS RDS metrics.
2019-02-05 20:57:51 +01:00
jeroenvollenbrock
28aafcd789
cloudwatch: Add tests for resource_arn template query
2019-02-05 18:37:05 +01:00
jeroenvollenbrock
fa977ce090
cloudwatch: Add resource_arns template query function
...
Implements feature request #8207
2019-02-05 18:37:04 +01:00
Torkel Ödegaard
3d5ca99d53
Merge branch 'dashboard-react-page' of github.com:grafana/grafana into dashboard-react-page
2019-02-05 09:24:14 +01:00
SamuelToh
a7a964ec19
Added PATCH verb end point for annotation op
...
Added new PATCH verb annotation endpoint
Removed unwanted fmt
Added test cases for PATCH verb annotation endpoint
Fixed formatting issue
Check arr len before proceeding
Updated doc to include PATCH verb annotation endpt
2019-02-05 09:43:17 +10:00
Marcus Efraimsson
d53e64a32c
move auth token middleware/hooks to middleware package
...
fix/adds auth token middleware tests
2019-02-05 00:21:05 +01:00
Marcus Efraimsson
7cd3cd6cd4
auth package refactoring
...
moving middleware/hooks away from package
exposing public struct UserToken accessible from other packages
fix debug log lines so the same order and naming are used
2019-02-05 00:10:56 +01:00
Torkel Ödegaard
70974c01f2
Added playlist controls to new react DashNav
2019-02-04 21:08:30 +01:00
Marcus Efraimsson
fb3c510178
Merge branch 'master' into delete_session_on_logout
2019-02-04 20:23:05 +01:00
Torkel Ödegaard
60d7d9c691
Merge pull request #15181 from marefr/fix_ping_unauthorized
...
auth: /api/login/ping fixes
2019-02-04 18:41:35 +01:00
Marcus Efraimsson
cfd8eb5167
now /api/login/ping returns Response
2019-02-04 17:37:07 +01:00
Marcus Efraimsson
d433ca7d40
fix util for splitting host and port
...
Now you can provide both a default host and a default port
2019-02-04 13:10:32 +01:00
Connor Patterson
48c8ff8899
Add AWS/Neptune to metricsMap and dimensionsMap
2019-02-03 16:29:35 -05:00
Sean Lafferty
fa22311a95
base64 encode encrypted oauth token fields
2019-02-02 09:03:04 -05:00
Athurg Feng
70b23ab73b
Add string quote func
2019-02-02 13:36:10 +08:00
Athurg Feng
bba92c0746
Remove option used to control within browser
2019-02-02 13:35:17 +08:00
Sean Lafferty
4a7cf82f5f
Remove length from text columns
2019-02-01 19:45:27 -05:00
Sean Lafferty
5a59cdf0ef
Add oauth pass-thru option for datasources
2019-02-01 19:40:57 -05:00
bergquist
a6bd2c73a0
introduce samesite setting for login cookie
...
ref #15067
2019-02-01 11:47:21 +01:00
bergquist
a1b3986532
always delete session cookie even if db delete fails
2019-02-01 09:59:53 +01:00
Marcus Efraimsson
dd5a8275f1
must return json response from /api/login/ping
...
Even though http error 401 was returned, the result was still a http 200
2019-02-01 01:21:23 +01:00
bergquist
91bd908e03
adds more tests signing out session
2019-01-31 22:24:04 +01:00
bergquist
11c4967bdc
changes some info logging to debug
2019-01-31 21:51:14 +01:00
bergquist
88ca54eba9
renames signout function
2019-01-31 16:26:36 +01:00
bergquist
43ac79685a
delete auth token on signout
2019-01-31 16:13:35 +01:00
Carl Bergquist
e2c2b70a61
Merge pull request #14852 from jpenalbae/pushover-attach
...
pushover: add support for attaching images (closes #10780 )
2019-01-31 11:18:08 +01:00
Daniel Lee
782c4eae98
Merge pull request #15127 from challengerdeep/fix-stackdriver-aggparams-reducer
...
Change primaryAggregation to crossSeriesReducer in Stackdriver
2019-01-30 00:45:22 +01:00
Torkel Ödegaard
9a598be4f7
Fixed failing unit test
2019-01-29 21:17:56 +01:00
Torkel Ödegaard
416562bd90
Merge pull request #15102 from mjtrangoni/fix-golint-issues
...
Fix golint issues
2019-01-29 21:12:34 +01:00
Torkel Ödegaard
a2dd6f378f
fixed sqlite issue introduced by #14709
2019-01-29 20:27:01 +01:00
Marcus Efraimsson
a067862a0a
Merge pull request #14709 from tpetr/extra-connection-string-args
...
add support for defining additonal database connection string args
2019-01-29 20:13:17 +01:00
Robert Edström
9b6746d808
Change primaryAggregation to crossSeriesReducer in Stackdriver
2019-01-29 19:11:54 +01:00
Daniel Lee
a3e09d8bbc
azuremonitor: fixes merge conflict in yarn.lock
2019-01-29 15:35:43 +01:00
Carl Bergquist
c6f80ecec2
Merge pull request #14229 from pbakulev/configurable-alert-notification
...
Configurable alert notification
2019-01-28 22:47:12 +01:00
Mario Trangoni
b7628f2060
pkg/util/{filepath.go,shortid_generator.go}: Fix golint issues
...
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=golint ./...
filepath.go:12:5⚠️ error var WalkSkipDir should have name of the form ErrFoo (golint)
shortid_generator.go:11:5⚠️ var validUidPattern should be validUIDPattern (golint)
shortid_generator.go:19:6⚠️ func IsValidShortUid should be IsValidShortUID (golint)
shortid_generator.go:24:6⚠️ func GenerateShortUid should be GenerateShortUID (golint)
2019-01-28 22:37:44 +01:00
Mario Trangoni
8261613b51
pkg/util/{ip.go,url.go}: Fix some golint issues
...
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=golint ./...
ip.go:8:6⚠️ func SplitIpPort should be SplitIPPort (golint)
url.go:14:6⚠️ func NewUrlQueryReader should be NewURLQueryReader (golint)
url.go:9:6⚠️ type UrlQueryReader should be URLQueryReader (golint)
url.go:37:6⚠️ func JoinUrlFragments should be JoinURLFragments (golint)
2019-01-28 22:29:20 +01:00
Mario Trangoni
5f6383a750
pkg/util/*: Add missing function comments.
...
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=golint ./...
encoding.go:15:1⚠️ comment on exported function GetRandomString should be of the form "GetRandomString ..." (golint)
encoding.go:30:1⚠️ exported function EncodePassword should have comment or be unexported (golint)
encoding.go:35:1⚠️ comment on exported function EncodeMd5 should be of the form "EncodeMd5 ..." (golint)
encoding.go:42:1⚠️ comment on exported function PBKDF2 should be of the form "PBKDF2 ..." (golint)
encoding.go:80:1⚠️ exported function GetBasicAuthHeader should have comment or be unexported (golint)
encoding.go:85:1⚠️ exported function DecodeBasicAuthHeader should have comment or be unexported (golint)
encoding.go:105:1⚠️ exported function RandomHex should have comment or be unexported (golint)
encryption.go:14:1⚠️ exported function Decrypt should have comment or be unexported (golint)
encryption.go:39:1⚠️ exported function Encrypt should have comment or be unexported (golint)
ip.go:7:1⚠️ exported function SplitIpPort should have comment or be unexported (golint)
json.go:3:6⚠️ exported type DynMap should have comment or be unexported (golint)
md5.go:22:1⚠️ comment on exported function Md5SumString should be of the form "Md5SumString ..." (golint)
strings.go:10:1⚠️ exported function StringsFallback2 should have comment or be unexported (golint)
strings.go:14:1⚠️ exported function StringsFallback3 should have comment or be unexported (golint)
strings.go:27:1⚠️ exported function SplitString should have comment or be unexported (golint)
strings.go:35:1⚠️ exported function GetAgeString should have comment or be unexported (golint)
url.go:8:6⚠️ exported type UrlQueryReader should have comment or be unexported (golint)
url.go:12:1⚠️ exported function NewUrlQueryReader should have comment or be unexported (golint)
url.go:23:1⚠️ exported method UrlQueryReader.Get should have comment or be unexported (golint)
url.go:32:1⚠️ exported function JoinUrlFragments should have comment or be unexported (golint)
validation.go:16:1⚠️ exported function IsEmail should have comment or be unexported (golint)
2019-01-28 22:09:40 +01:00
bergquist
e218cc7637
docs: updates docs to refer to using uid
2019-01-28 22:03:16 +01:00
bergquist
7c93335d28
gofmt issue
2019-01-28 21:04:08 +01:00
bergquist
809019d4ee
moves test files into testdata folder
2019-01-28 20:44:10 +01:00
bergquist
8f0e65a150
renames alert_notifications -> notifiers
2019-01-28 20:39:09 +01:00
Marcus Efraimsson
7023c957d7
Merge branch 'master' into nanosecond-postgresql
2019-01-28 20:04:46 +01:00
Marcus Efraimsson
f157c19e16
extract parsing of datasource tls config to method
2019-01-28 19:38:56 +01:00
Daniel Lee
e4f4cb814c
Merge branch 'master' into azure-monitor
2019-01-28 19:23:34 +01:00
Marcus Efraimsson
ed6cca61c9
Merge pull request #15051 from ellisvlad/13711_parse_database_config_ipv6_host
...
Parse database host correctly when using IPv6
2019-01-28 18:32:09 +01:00
Marcus Efraimsson
f701c610fb
Merge pull request #15054 from RangerRick/master
...
add global datasource proxy timeout setting
2019-01-28 18:21:27 +01:00
Torkel Ödegaard
50b140f6ce
Merge pull request #15082 from bergquist/explore_by_default
...
enables explore by default
2019-01-28 17:09:17 +01:00
bergquist
21fff415ed
removes unnessecary db request
2019-01-28 15:37:52 +01:00
bergquist
935da14f7d
tab/spaces formatting
2019-01-28 15:27:02 +01:00
Marcus Efraimsson
6584ca20d2
Merge branch 'master' into 8570-mysql-ssl-datasource
2019-01-28 15:12:33 +01:00
Torkel Ödegaard
2dc2471b5c
Revert "Updated home dashboard, removed home dashboard header"
...
This reverts commit 0151846e1e
.
2019-01-28 15:01:42 +01:00
bergquist
6a8643b3d1
Merge branch 'master' into configurable-alert-notification
...
* master: (250 commits)
Firing off an action instead of listening to location changes
Changes after PR Comments
Made ExplorerToolbar connected and refactored away responsabilities from Explore
Removed some split complexity
Fixed some more styling
Fixed close split look and feel
Fixed position of Closesplit
Fixed small issue with TimePicker dropdown position
Simplified some styles and dom elements
Fixed some more with the sidemenu open and smaller screens
Fixed so heading looks good with closed sidemenu
Restructure of component and styling
Refactored out ExploreToolbar from Explore
Fixed reinitialise of Explore
changelog: add notes about closing #13929
changelog: add notes about closing #14558
changelog: add notes about closing #14484
changelog: add notes about closing #13765
changelog: add notes about closing #11503
changelog: add notes about closing #4075
...
2019-01-28 14:16:43 +01:00
bergquist
6e672eb291
enable explore by default
...
closes #15037
2019-01-28 13:02:54 +01:00
bergquist
0cbc89b063
Merge branch 'master' into 14701-fix-alert-context
...
* master: (262 commits)
pkg/services/dashboards/dashboard_service.go: simplify return
Updated url query param encoding to exctly match angular encoding
Updated snapshot
Added missing props not being passed to scrollbar component, fixes #15058
Document /api/health
changelog: adds note for #15062
change default rotate_token_minutes to 10 minutes
fix
load test/ha fixes
set low login cookie rotate time in ha mode
fix multiple piechart instances bug
scripts/build/*: Fix some golint issues
scripts/build/*: Fix golint issues Url => URL
build: fixes building grafana completely within docker.
dont specify domain for auth cookies
New snapshot reflecting changes
Makes the clickable side menu header look great in light theme again
org id fix for load test
user auth token load tests using k6.io
moves cookie https setting to [security]
...
2019-01-28 08:09:52 +01:00
bergquist
364154d81f
moves timeout tests to an integration test
2019-01-28 07:56:31 +01:00
Vlad Ellis
9692955d4f
Correct formatting of sqlstore_test.go
2019-01-27 16:28:02 +00:00
Mario Trangoni
bf90ff87cf
pkg/services/dashboards/dashboard_service.go: simplify return
...
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=megacheck ./...
pkg/services/dashboards/dashboard_service.go:167:2⚠️ 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)
2019-01-26 14:23:10 +01:00
Vlad Ellis
c208186f26
Parse database host correctly when using IPv6
2019-01-25 21:56:19 +00:00
Marcus Efraimsson
e4924795a2
change default rotate_token_minutes to 10 minutes
2019-01-25 13:30:26 +01:00
bergquist
75760aa892
dont specify domain for auth cookies
2019-01-25 10:40:50 +01:00
bergquist
b5572b23b6
Merge branch 'master' into poc_token_auth
...
* master: (32 commits)
Fixed react key warning for loki start page
Disable query should trigger refresh
added docs entry for check_for_updates config flag, fixes ##14940
Explore: Fix scanning for logs
Moved ad hoc filters and upload directive
Moved dashboard srv and snapshot ctrl
Moved share modal
Moved dashboard save modals to components folder
Moved unsaved changes service and modal
Removed unused alertingSrv
Moved view state srv to services
Moved timepicker to components
Moved submenu into components dir
Moved dashboard settings to components
Moved dashboard permissions into components dir
Moved history component, added start draft of frontend code style guide
fix: Use custom whitelist for XSS sanitizer to allow class and style attributes
Began work on improving structure and organization of components under features/dashboard, #14062
Fix a typo in changelog
Update ROADMAP.md
...
2019-01-25 08:28:24 +01:00
Benjamin Reed
9108fd1b9d
add global datasource proxy timeout setting
...
closes grafana#5699
2019-01-24 14:06:48 -05:00
bergquist
d6edaa1328
moves cookie https setting to [security]
2019-01-24 19:04:58 +01:00
bergquist
9153b6ed96
improves readability of loginping handler
2019-01-24 15:17:09 +01:00
bergquist
516037fbdd
makes sure rotation is always higher than urgent rotation
2019-01-24 13:54:45 +01:00
bergquist
9ae306e417
use defer to make sure we always release session data
2019-01-24 13:48:36 +01:00
bergquist
fd0f9f2dd2
fixes broken test
2019-01-24 12:06:44 +01:00
bergquist
f257101c41
removes unused/commented code
2019-01-24 11:26:45 +01:00
bergquist
ff483f3782
removes old cookie auth configuration
2019-01-24 10:55:10 +01:00
bergquist
56a521b264
makes auth token rotation time configurable
2019-01-24 10:50:18 +01:00
bergquist
4626f083bb
store oauth login error messages in an encrypted cookie
2019-01-23 17:01:09 +01:00
bergquist
df85cc9bb1
redirect logged in users from /login to home
2019-01-23 15:28:33 +01:00
bergquist
5998646da5
restrict session usage to auth_proxy
2019-01-23 14:56:48 +01:00
Carl Bergquist
766122856b
Merge pull request #14995 from bergquist/token_oauth
...
Stores hashed state code in cookie for OAuth logins.
2019-01-23 10:39:12 +01:00
Torkel Ödegaard
0151846e1e
Updated home dashboard, removed home dashboard header
2019-01-22 17:23:24 +01:00
bergquist
c3ff3d644c
fixes nil ref in tests
2019-01-22 16:16:32 +01:00
bergquist
31b5db06f1
Merge branch 'master' into poc_token_auth
...
* master: (156 commits)
Fixed issues with the sanitizie input in text panels, added docs, renamed config option
build: removes arm32v6 docker image.
Updated version in package.json to 6.0.0-pre1
Update CHANGELOG.md
build: armv6 docker image.
build: skips building rpm for armv6.
build: builds for armv6.
Explore: mini styling fix for angular query editors
Removed unused props & state in PromQueryField
chore: Remove logging and use the updated config param
chore: Reverse sanitize variable so it defaults to false
feat: wip: Sanitize user input on text panel
fix: Text panel should re-render when panel mode is changed #14922
Minor rename of LogsProps and LogsState
Splitted up LogLabels into LogLabelStats and LogLabel
Refactored out LogRow to a separate file
Removed strange edit
Added link to side menu header and fixed styling
Moved ValueMapping logic and tests to separate files
Fixed data source selection in explore
...
2019-01-22 15:39:54 +01:00
bergquist
64124b5042
add setting for how to long we should keep expired tokens
2019-01-22 15:31:43 +01:00
bergquist
12f8338977
stores hashed state code in cookie
2019-01-22 15:22:24 +01:00
bergquist
d3ec8e1ccb
creates new config section for login settings
2019-01-22 15:22:11 +01:00
Marcus Efraimsson
59d0c19ba8
passing middleware tests
2019-01-22 13:51:55 +01:00
Marcus Efraimsson
4096449aec
extract auth token interface and remove auth token from context
2019-01-22 12:00:33 +01:00
Torkel Ödegaard
f0e61af8e0
Fixed issues with the sanitizie input in text panels, added docs, renamed config option
2019-01-22 11:56:35 +01:00
Johannes Schill
1ed35f3dc1
chore: Reverse sanitize variable so it defaults to false
2019-01-22 09:36:07 +01:00
Johannes Schill
15d560a1c0
feat: wip: Sanitize user input on text panel
2019-01-22 09:36:07 +01:00
Marcus Efraimsson
366e356e08
more auth token tests
2019-01-21 21:48:18 +01:00
bergquist
777bd9ea18
adds cleanup job for old session tokens
2019-01-21 19:03:32 +01:00
Marcus Efraimsson
f040f9a400
fix tests after renaming now
2019-01-21 16:53:00 +01:00
Marcus Efraimsson
38efc1d7d2
s/print/log
2019-01-21 15:53:40 +01:00
bergquist
92620af75f
avoid calling now() multiple times
2019-01-21 15:48:17 +01:00
Marcus Efraimsson
dd8476d81a
passing auth token tests
2019-01-21 15:06:33 +01:00
Marcus Efraimsson
565408194a
handle expired tokens
2019-01-21 13:22:20 +01:00
bergquist
697ddccd8e
set userToken on request when logging in
2019-01-21 11:42:10 +01:00
bergquist
55b3013eb3
moves initWithToken to auth package
2019-01-21 11:37:44 +01:00
Marcus Efraimsson
734a7d38b2
set cookie name from configuration
2019-01-21 11:21:43 +01:00
Marcus Efraimsson
766cfab374
change rotate time
2019-01-21 10:22:18 +01:00
Marcus Efraimsson
0d1e3759eb
mixor fixes
2019-01-21 10:20:23 +01:00
Marcus Efraimsson
f3125b447b
dead code
2019-01-21 10:20:23 +01:00
Marcus Efraimsson
0495499b4f
fix ip address parsing of loopback address
2019-01-21 10:20:23 +01:00
bergquist
2e97d39abe
removes commented code
2019-01-21 10:01:48 +01:00
bergquist
47a7d93fd9
moves rotation into auth since both happens before c.Next()
2019-01-21 08:59:01 +01:00
Hugo Häggmark
9d6ac2c3d4
fix: Viewers can edit means that viewers have acces to Explore #14281
2019-01-21 08:47:41 +01:00
sharkpc0813
35013a28cd
add timeout test for alert handling.
2019-01-18 11:23:00 +09:00
bergquist
fd937e3d95
remove maxage from session token
2019-01-17 21:03:27 +01:00
Marcus Efraimsson
81879f0162
fix broken code
2019-01-17 20:29:26 +01:00
Marcus Efraimsson
97c7963f17
fix cannot set cookie when response is written
2019-01-17 20:27:53 +01:00
Marcus Efraimsson
8b3fe41b0a
log fix
2019-01-17 17:32:33 +01:00
bergquist
c2accfa4c0
inital code for rotate
2019-01-17 17:11:52 +01:00
Daniel Lee
dd96f2a522
azuremonitor: move files into grafana
...
Initial port of the code from the plugin - lots of small things to fix.
2019-01-17 10:55:03 +01:00
bergquist
aba6148c43
login users based on token cookie
2019-01-16 16:44:40 +01:00
Pavel Bakulev
6a8e39ba17
Added uid to AlertNotification json
2019-01-16 16:52:00 +02:00
Pavel Bakulev
f461d52004
Converted notification id to uid via fmt for old alert notification settings
2019-01-16 16:52:00 +02:00
Pavel Bakulev
2de32756c2
Returned id for alert notifications which were created without uid
2019-01-16 16:52:00 +02:00
Pavel Bakulev
4bcace567b
Formatted errors to err
2019-01-16 16:50:00 +02:00
Pavel Bakulev
d0370ea7ad
Using func InitNotifier for verifying notification settings
2019-01-16 16:50:00 +02:00
Pavel Bakulev
f132e929ce
Added uid for alert notifications
2019-01-16 16:50:00 +02:00
Pavel Bakulev
6d1ec19fe9
Renamed validation funcs for alert notification
2019-01-16 16:45:42 +02:00
Pavel Bakulev
5c10a897f8
Instantiating notifiers from config before using
2019-01-16 16:45:42 +02:00
Pavel Bakulev
4fa45253cf
Added orgName parameter for alert_notifications
2019-01-16 16:45:42 +02:00
Pavel Bakulev
6e3e9a337d
Added alert_notification configuration
2019-01-16 16:45:42 +02:00
Marcus Efraimsson
8764fb5aa6
inject login/logout hooks
2019-01-15 15:16:20 +01:00
Marcus Efraimsson
b0df7280be
begin user auth token implementation
2019-01-15 15:16:20 +01:00
Marcus Efraimsson
e08f61059b
utils
2019-01-15 15:16:20 +01:00
bugficks
f31fe495e9
fix go fmt
2019-01-15 13:54:25 +01:00
bugficks
7db848f153
[Feature request] MySQL SSL CA in datasource connector
...
https://github.com/grafana/grafana/issues/8570
2019-01-15 13:29:56 +01:00
bergquist
3cd0cb3d3f
removes debug2 logging
2019-01-15 11:52:39 +01:00
bergquist
1b6203e430
removes error2 logger
2019-01-15 11:49:18 +01:00
Carl Bergquist
1a7eb2f462
Merge pull request #14868 from bergquist/provisioning_inifinite_loop
...
Avoid infinite loop in the dashboard provisioner
2019-01-15 10:34:18 +01:00
sharkpc0813
e172bade40
fix that alert context and result handle context do not use the same derived context.
2019-01-15 17:51:50 +09:00
bergquist
8880829eda
avoid infinite loop in the dashboard provisioner
...
if one dashboard with an uid is refered to by two
provsioners each provsioner overwrite each other.
filling up dashboard_versions quite fast if using
default settings.
ref #12864
2019-01-14 16:38:39 +01:00
Marcus Efraimsson
130e4aa666
Merge pull request #14608 from marefr/es_bucket_script
...
Fix support bucket script pipeline aggregations
2019-01-14 15:58:42 +01:00
bergquist
db448b5d53
Merge branch 'fredbcode-master'
...
* fredbcode-master:
Fix bug tls renegociation problem in Notification channel (webhook) #14800
2019-01-13 21:43:47 +01:00
fredbcode
110ffb69de
Fix bug tls renegociation problem in Notification channel (webhook) #14800
2019-01-13 21:42:33 +01:00
Sofia Papagiannaki
8def73ba13
Fix Error 500 on unexisting /api/alert-notification/<id>
2019-01-13 21:30:20 +02:00
NighterMan
ec0fe11939
pushover: add support for attaching images ( closes #10780 )
...
Use native pushover native attachment support to deliver images
2019-01-13 04:09:51 +01:00
Torkel Ödegaard
fda0f92cf9
Merge pull request #12991 from pgiraud/repeat_min_span
...
Repeating panels - Max per row
2019-01-11 09:31:21 +01:00
bergquist
fbb3ad5fc4
make sure frequency cannot be zero
...
frequency set to zero causes division by zero
panics in the alert schedular.
closes #14810
2019-01-10 14:17:10 +01:00
Pierre GIRAUD
a881497908
Max number of repeated panels per row
...
Instead of min width
2019-01-09 08:01:42 +01:00
Torkel Ödegaard
56edba5a63
Merge pull request #14746 from jaken551/master
...
14722 - removing unnecessary arn check that breaks assume role featur…
2019-01-07 16:49:35 +01:00
Torkel Ödegaard
0a936a55b4
Fixed new gometalinter issues
2019-01-07 11:01:31 +01:00
jaken551
64163f0198
14722 - removing unnecessary arn check that breaks assume role feature in other AWS partitions
2019-01-06 15:21:58 -05:00
tpetr
db61fc1dd1
EqualFold()
2019-01-05 00:17:31 -05:00
tpetr
32dfc4e8b1
forgot go fmt
2019-01-05 00:02:15 -05:00
tpetr
5bc8d50864
pull connection string args from url instead
2019-01-04 23:52:36 -05:00
Ander Arguiñano
089d85af63
Added macros to mysql
2019-01-03 22:29:57 +01:00
Ander Arguiñano
3801a75131
FIxed syntaxis mistake unixEpochNanoFrom and unixEpochNanoTo
2019-01-03 22:25:10 +01:00
Ander Arguiñano
ed6782402b
Merge remote-tracking branch 'upstream/master' into nanosecond-postgresql
2019-01-03 21:48:10 +01:00
Ander Arguiñano
b4eac406d5
Added previous macros to mssql
2019-01-03 21:43:08 +01:00
Ander Arguiñano
9105625f24
Added unixEpochNanoTo and unixEpochNanoFrom macros to postgresql
2019-01-03 21:31:47 +01:00
Ander Arguiñano
4d8d2a9690
Renamed unixEpochFilterNano to unixEpochNanoFilter
2019-01-03 20:40:17 +01:00
Torkel Ödegaard
3e873a2500
Merge pull request #14710 from grafana/fixed-gometalinter
...
Fixed new gotmetalinter warning
2019-01-03 07:23:45 +01:00
Sven Klemm
4c51e8df20
Don't cut off subsecond precision for postgres macros
...
Change time format to RFC3339Nano for $__timeFilter, $__timeFrom and
$__timeTo macros
2019-01-02 23:38:09 +01:00
Ander Arguiñano
1a67a8db80
Nanosecond timestamp support postgresql
2019-01-02 23:00:21 +01:00
Torkel Ödegaard
80e441f48b
Fixed new gotmetalinter warning
2019-01-02 19:17:35 +01:00
tpetr
a693d42e31
add support for defining additonal database connection string args via extra_connection_string_args
2019-01-02 13:02:40 -05:00
Dan Cech
efa738ddf6
Merge pull request #14540 from grafana/session-skip-update
...
only update session in mysql database when required
2018-12-31 11:54:04 -05:00
Torkel Ödegaard
22399b336f
Merge pull request #14577 from marefr/14351_db_migration
...
fix only create/drop database indices if not exists/exists
2018-12-31 16:20:07 +01:00