Futures

  1. Email dashboard panels as pdf
  2. Generate dashboard pdf use grafana link

Requirements

Download

grafana-email-panel.tar.gz

grafana-email-linux.zip

grafana-email.zip

https://github.com/smarkm/grafana-email

Release Log

version 1.0

  1. Basic email schedule function
  2. Direct pdf function

Email Setting

  1. Create an Email Setting dashboard using grafana-email-panel

  2. Create datasource name as 'EmailAPI' and url fill like http://localhost:8001/

  3. Add a link to a dashboard that needs to be emailed, you need to add the following information d/PhwEouqVk/emailsetting?orgId=${__org}&uid=${__dashboard.uid}&user=${__user.login}PhwEouqVk and emailsetting get from #1 dashboard path

  4. Download server-side exec grafana-email

  5. Config Email serviceconfig.json in same folder with grafana-email exec

  6. Start email service using grafana-email exec

Dashboard PDF

  1. Make sure the EmailAPI data source is already configured and points to the grafana-email backend-served URL.
  2. Add a link in the dashboard the URL like /api/datasources/proxy/${datasourceID}/api/schedule/pdf?orgId=${__org}&uid=${__dashboard.uid}&user=${__user.login}, and replace ${datasourceID} to the data source EmailAPI ID.

Help

  1. Server side exec grafana-email with 2 email schedules limit for the test

  2. For training or customized support please contact Twitter(X) [@indexVolador](<https://twitter.com/indexVolador>) or WeChat scan

    contact.png

**config.json** sample


{
    "grafanaBaseUrl": "<http://localhost:3001>",
    "orgAPIKeys": {
        "1": "eyJrIjoiVnVEbGhodlh2bHllV3J6bkFCcjN5TEZiUkFhY01RNkkiLCJuIjoiYSIsImlkIjoxfQ==",
        "2":""
    },
    "emailFrom": "",
    "emailUserName": "",
    "emailPassword": "",
    "smtpHost": "smtp.qq.com",
    "smtpPort": 587,
    "debugModel":false,
    "pdfTitleAlign":"left",
    "fontPath":"",
    "dbUser":"root",
    "dbPassword":"1234",
    "dbHost":"localhost:3306",
    "database":"test",
    "httpPort": 8001
}