       width: process.env.HUBOT_GRAFANA_DEFAULT_WIDTH or 1000
       height: process.env.HUBOT_GRAFANA_DEFAULT_HEIGHT or 500
       tz: process.env.HUBOT_GRAFANA_DEFAULT_TIME_ZONE or ""
+      orgId: process.env.HUBOT_GRAFANA_ORG_ID or ""
+      apiEndpoint: process.env.HUBOT_GRAFANA_API_ENDPOINT or "dashboard-solo"
+      useUid: process.env.HUBOT_GRAFANA_USE_UID or ""
     endpoint = get_grafana_endpoint(msg)
     if not endpoint
       sendError 'No Grafana endpoint configured.', msg

      'slack'
    else if (robot.adapterName == 'rocketchat')
      'rocketchat'
    else
      ''
  isUploadSupported = site() != ''


          # Build links for message sending
          title = formatTitleWithTemplate(panel.title, template_map)
          db = if query.useUid then dashboard.dashboard.uid else "db"
          imageUrl = "#{endpoint.host}/render/#{query.apiEndpoint}/#{db}/#{slug}/?panelId=#{panel.id}&width=#{query.width}&height=#{query.height}&from=#{timespan.from}&to=#{timespan.to}#{variables}"
          if query.tz
            imageUrl += "&tz=#{encodeURIComponent query.tz}"
          if query.orgId
            imageUrl += "&orgId=#{encodeURIComponent query.orgId}"
          link = "#{endpoint.host}/dashboard/db/#{slug}/?panelId=#{panel.id}&fullscreen&from=#{timespan.from}&to=#{timespan.to}#{variables}"

          sendDashboardChart msg, title, imageUrl, link
