Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve err message for notifications #18757

Merged
merged 3 commits into from Aug 28, 2019

Conversation

Alykoff
Copy link
Contributor

@Alykoff Alykoff commented Aug 28, 2019

What this PR does / why we need it:
Improve error message in grafana log.
Without that PR a log file doesn't contain information where is a problem in dashboard json file:

t=2019-08-28T00:02:56+0000 lvl=eror msg="failed to save dashboard" logger=provisioning.dashboard type=file name=Prometheus error="Alert validation error: Neither id nor uid is specified, type assertion to string failed PanelId: 2 DashboardId: 1"

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@CLAassistant
Copy link

CLAassistant commented Aug 28, 2019

CLA assistant check
All committers have signed the CLA.

@marefr
Copy link
Member

marefr commented Aug 28, 2019

This looks good. Anything else you want to change before marking this as Ready for review?

@Alykoff
Copy link
Contributor Author

Alykoff commented Aug 28, 2019

Hi, @marefr,
No, nothing to change.

@marefr
Copy link
Member

marefr commented Aug 28, 2019

@Alykoff okay thanks. You opened the PR as a work in progress and need to push the button "Ready for review", but I could do that for you.

@marefr marefr marked this pull request as ready for review August 28, 2019 14:45
@Alykoff
Copy link
Contributor Author

Alykoff commented Aug 28, 2019

@marefr thanks

Copy link
Member

@marefr marefr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marefr marefr merged commit f942fec into grafana:master Aug 28, 2019
@marefr
Copy link
Member

marefr commented Aug 28, 2019

Thank you for contributing to Grafana!

@marefr marefr added this to the 6.4 milestone Aug 28, 2019
ryantxu added a commit to ryantxu/grafana that referenced this pull request Aug 28, 2019
* grafana/master:
  Explore: Use PanelQueryState to handle querying (grafana#18694)
  Chore: Improve err message for notifications (grafana#18757)
  @grafana/toolkit: add package versions to the ci report (grafana#18751)
  @grafana/data: Matchers and Transforms (grafana#16756)
  Docs: Document LDAP config reload in admin http api (grafana#18739)
  center NoDataSourceCallToActionCard in Explore (grafana#18752)
  DataLinks: enable data links in Gauge, BarGauge and SingleStat2 panel (grafana#18605)
  DashboardDatasource: reuse query results within a dashboard (grafana#16660)
  Plugins: show a clear error on the plugin page when it failed to load (grafana#18733)
  Chore: Use ruleId instead of alertId as log keyword (grafana#18738)
  @grafana/data: improve the CircularVector api (grafana#18716)
  QueryEditor: check if optional func toggleEditorMode is provided (grafana#18705)
  Emails: remove the yarn.lock (grafana#18724)
  OAuth: Support JMES path lookup when retrieving user email (grafana#14683)
  Emails: resurrect template notification (grafana#18686)
  Email: add reply-to and direct attachment (grafana#18715)
  Dashboard: Adds Logs Panel (alpha) as visualization option for Dashboards (grafana#18641)
@ying-jeanne ying-jeanne added the pr/external This PR is from external contributor label Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/external This PR is from external contributor type/chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants