diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d41b15f12c..f918779ebd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ ### Bugfixes * **Alerting**: Add alert message to webhook notifications [#6807](https://github.com/grafana/grafana/issues/6807) +* **Alerting**: Fixes a bug where avg() reducer treated null as zero. [6c9cf87](https://github.com/grafana/grafana/commit/6c9cf87080e52966846a48d04209d90c166ca42e) * **PNG Rendering**: Fix for server side rendering when using non default http addr bind and domain setting [#6813](https://github.com/grafana/grafana/issues/6813) * **PNG Rendering**: Fix for server side rendering when setting enforce_domain to true [#6769](https://github.com/grafana/grafana/issues/6769) * **Webhooks**: Add content type json to outgoing webhooks [#6822](https://github.com/grafana/grafana/issues/6822) diff --git a/docs/sources/reference/export_import.md b/docs/sources/reference/export_import.md index 7430f4891a6..bc05795c030 100644 --- a/docs/sources/reference/export_import.md +++ b/docs/sources/reference/export_import.md @@ -9,7 +9,7 @@ weight = 8 # Export and Import -Grafana Dashboads can easily be exported and imported, either from the UI or from the HTTP API. +Grafana Dashboards can easily be exported and imported, either from the UI or from the HTTP API. ## Exporting a dashboard @@ -22,9 +22,9 @@ The export feature is accessed from the share menu. ### Making a dashboard portable If you want to export a dashboard for others to use then it could be a good idea to -add template variables for things like a metric prefix (use contant variable) and server name. +add template variables for things like a metric prefix (use constant variable) and server name. -A template varible of the type `Constant` will automatically be hidden in +A template variable of the type `Constant` will automatically be hidden in the dashboard, and will also be added as an required input when the dashboard is imported. ## Importing a dashboard @@ -43,7 +43,7 @@ data source you want the dashboard to use and specify any metric prefixes (if th ## Discover dashboards on Grafana.net -Find dashboads for common server applications at [Grafana.net/dashboards](https://grafana.net/dashboards). +Find dashboards for common server applications at [Grafana.net/dashboards](https://grafana.net/dashboards). diff --git a/docs/sources/reference/singlestat.md b/docs/sources/reference/singlestat.md index 1fb0c254c01..ed0a956b7eb 100644 --- a/docs/sources/reference/singlestat.md +++ b/docs/sources/reference/singlestat.md @@ -1,5 +1,5 @@ +++ -title = "Singletat Panel" +title = "Singlestat Panel" keywords = ["grafana", "dashboard", "documentation", "panels", "singlestat"] type = "docs" [menu.docs] diff --git a/pkg/api/api.go b/pkg/api/api.go index a1668590ad7..90e0e1bdfa8 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -196,7 +196,7 @@ func Register(r *macaron.Macaron) { r.Group("/datasources", func() { r.Get("/", GetDataSources) r.Post("/", quota("data_source"), bind(m.AddDataSourceCommand{}), AddDataSource) - r.Put("/:id", bind(m.UpdateDataSourceCommand{}), UpdateDataSource) + r.Put("/:id", bind(m.UpdateDataSourceCommand{}), wrap(UpdateDataSource)) r.Delete("/:id", DeleteDataSource) r.Get("/:id", wrap(GetDataSourceById)) r.Get("/name/:name", wrap(GetDataSourceByName)) diff --git a/pkg/api/datasources.go b/pkg/api/datasources.go index a7254eeec6c..f0c022c1622 100644 --- a/pkg/api/datasources.go +++ b/pkg/api/datasources.go @@ -117,7 +117,7 @@ func UpdateDataSource(c *middleware.Context, cmd m.UpdateDataSourceCommand) Resp return ApiError(500, "Failed to update datasource", err) } - return Json(200, "Datasource updated") + return Json(200, util.DynMap{"message": "Datasource updated"}) } func fillWithSecureJsonData(cmd *m.UpdateDataSourceCommand) error {