diff --git a/docs/sources/alerting/notifications.md b/docs/sources/alerting/notifications.md index 3119390b275..f3becf18d78 100644 --- a/docs/sources/alerting/notifications.md +++ b/docs/sources/alerting/notifications.md @@ -92,6 +92,26 @@ Example json body: - **state** - The possible values for alert state are: `ok`, `paused`, `alerting`, `pending`, `no_data`. +### DingDing/DingTalk + +[Instructions in Chinese](https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.p2lr6t&treeId=257&articleId=105733&docType=1). + +In DingTalk PC Client: + +1. Click "more" icon on left bottom of the panel. + +2. Click "Robot Manage" item in the pop menu, there will be a new panel call "Robot Manage". + +3. In the "Robot Manage" panel, select "customised: customised robot with Webhook". + +4. In the next new panel named "robot detail", click "Add" button. + +5. In "Add Robot" panel, input a nickname for the robot and select a "message group" which the robot will join in. click "next". + +6. There will be a Webhook URL in the panel, looks like this: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxx. Copy this URL to the grafana Dingtalk setting page and then click "finish". + +Dingtalk supports the following "message type": `text`, `link` and `markdown`. Only the `text` message type is supported. + ### Other Supported Notification Channels Grafana also supports the following Notification Channels: @@ -112,8 +132,6 @@ Grafana also supports the following Notification Channels: - LINE -- DingDing - # Enable images in notifications {#external-image-store} Grafana can render the panel associated with the alert rule and include that in the notification. Most Notification Channels require that this image be publicly accessable (Slack and PagerDuty for example). In order to include images in alert notifications, Grafana can upload the image to an image store. It currently supports diff --git a/docs/sources/features/panels/graph.md b/docs/sources/features/panels/graph.md index fdd3f271184..5dbf307b484 100644 --- a/docs/sources/features/panels/graph.md +++ b/docs/sources/features/panels/graph.md @@ -67,6 +67,20 @@ The ``Left Y`` and ``Right Y`` can be customized using: Axes can also be hidden by unchecking the appropriate box from `Show Axis`. +### X-Axis Mode + +There are three options: + +- The default option is `Time` and means the x-axis represents time and that the data is grouped by time (for example, by hour or by minute). + +- The `Series` option means that the data is grouped by series and not by time. The y-axis still represents the value. + + + +- The `Histogram` option converts the graph into a histogram. A Histogram is a kind of bar chart that groups numbers into ranges, often called buckets or bins. Taller bars show that more data falls in that range. Histograms and buckets are described in more detail [here](http://docs.grafana.org/features/panels/heatmap/#histograms-and-buckets). + + + ### Legend The legend hand be hidden by checking the ``Show`` checkbox. If it's shown, it can be diff --git a/docs/sources/http_api/dashboard.md b/docs/sources/http_api/dashboard.md index a7b7ae87a62..890156ad635 100644 --- a/docs/sources/http_api/dashboard.md +++ b/docs/sources/http_api/dashboard.md @@ -46,6 +46,7 @@ JSON Body schema: - **dashboard** – The complete dashboard model, id = null to create a new dashboard - **overwrite** – Set to true if you want to overwrite existing dashboard with newer version or with same dashboard title. +- **message** - Set a commit message for the version history. **Example Response**: diff --git a/docs/sources/reference/sharing.md b/docs/sources/reference/sharing.md index 1be446a7bc2..61ae1f761eb 100644 --- a/docs/sources/reference/sharing.md +++ b/docs/sources/reference/sharing.md @@ -65,6 +65,7 @@ Example: ``` Below there should be an interactive Grafana graph embedded in an iframe: + ### Export Panel Data diff --git a/pkg/services/alerting/notifiers/dingding.go b/pkg/services/alerting/notifiers/dingding.go index ad5ccf554c3..db8735bd795 100644 --- a/pkg/services/alerting/notifiers/dingding.go +++ b/pkg/services/alerting/notifiers/dingding.go @@ -19,7 +19,7 @@ func init() {

DingDing settings

Url - +
`, }) diff --git a/pkg/services/alerting/notifiers/line.go b/pkg/services/alerting/notifiers/line.go index 0f544cbdfb6..69ad0d65896 100644 --- a/pkg/services/alerting/notifiers/line.go +++ b/pkg/services/alerting/notifiers/line.go @@ -75,12 +75,17 @@ func (this *LineNotifier) createAlert(evalContext *alerting.EvalContext) error { body := fmt.Sprintf("%s - %s\n%s", evalContext.Rule.Name, ruleUrl, evalContext.Rule.Message) form.Add("message", body) + if evalContext.ImagePublicUrl != "" { + form.Add("imageThumbnail", evalContext.ImagePublicUrl) + form.Add("imageFullsize", evalContext.ImagePublicUrl) + } + cmd := &m.SendWebhookSync{ Url: lineNotifyUrl, HttpMethod: "POST", HttpHeader: map[string]string{ "Authorization": fmt.Sprintf("Bearer %s", this.Token), - "Content-Type": "application/x-www-form-urlencoded", + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, Body: form.Encode(), } diff --git a/public/app/plugins/datasource/cloudwatch/partials/query.parameter.html b/public/app/plugins/datasource/cloudwatch/partials/query.parameter.html index 23261d2fef5..67351358696 100644 --- a/public/app/plugins/datasource/cloudwatch/partials/query.parameter.html +++ b/public/app/plugins/datasource/cloudwatch/partials/query.parameter.html @@ -49,7 +49,7 @@
  • {{stat}}
  • {{namespace}}
  • {{region}}
  • -
  • {{DIMENSION_NAME}}
  • +
  • {{YOUR_DIMENSION_NAME}}