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

feat: add grafana on call as chat provider #4759

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

mahendraHegde
Copy link
Contributor

@mahendraHegde mahendraHegde commented Nov 4, 2023

What change does this PR introduce?

  • Adds Grafana On call as a new chat provider
  • Adds relavant test cases
  • Updates provider docs

Why was this change needed?

closes #4682 and #4438

Other information (Screenshots)

Integration config

Screenshot 2023-11-04 at 10 52 47 AM

Workflow

Screenshot 2023-11-04 at 10 53 29 AM Screenshot 2023-11-04 at 10 54 15 AM

Grafana dashboard

Screenshot 2023-11-04 at 10 55 59 AM Screenshot 2023-11-04 at 10 56 12 AM

Copy link
Contributor

@Cliftonz Cliftonz left a comment

Choose a reason for hiding this comment

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

just a few questions and changes

@@ -0,0 +1,78 @@
{
"name": "@novu/grafana-on-call",
"version": "0.16.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

This version should be the same as the rest of the providers, v0.21.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, out of curiocity, whats the reason to keep all provider version same? also this is auto generated.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure, that is a @LetItRock question

Copy link
Contributor Author

Choose a reason for hiding this comment

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

upgraded to 0.21.0

const { headers } = await this.axiosInstance.post(url.toString(), body);

return {
id: this.config.alertUid || options.content,
Copy link
Contributor

Choose a reason for hiding this comment

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

What does the options.content return?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is actually the message itself, there is no valid identifier that grafana returns in response(body/header), it it acceptable to generate a uuid and use it as it instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

For this use-case yes, we should not be using the actual message as the id here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@mahendraHegde mahendraHegde force-pushed the feat/graphana-provider branch 3 times, most recently from 4e6113c to f66fb82 Compare November 4, 2023 17:55
@Cliftonz Cliftonz self-requested a review November 4, 2023 21:21
Copy link
Contributor

@Cliftonz Cliftonz left a comment

Choose a reason for hiding this comment

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

Looks good, just need to fix the icon.

@mahendraHegde mahendraHegde force-pushed the feat/graphana-provider branch from f66fb82 to a6bf5f7 Compare November 4, 2023 21:29
@Cliftonz Cliftonz merged commit fa803f9 into novuhq:next Nov 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Add Grafana On-call as a Incident Management Provider
3 participants