Skip to content

Pager Duty Additional fields #1157

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

Open
ghost opened this issue Aug 31, 2022 · 2 comments
Open

Pager Duty Additional fields #1157

ghost opened this issue Aug 31, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 31, 2022

Description

When using the pager duty plugin, there is not enough information in the payload to include extra fields. This change / patch allows for extra information to be placed in the org/graylog/integrations/pagerduty/client/MessageFactory.java class at line 87 - 98

What

ImmutableList immutableList = modelData.backlog();
StringBuilder stringBuilder = new StringBuilder();
for (Object objectSummary : immutableList) {
MessageSummary summary = (MessageSummary)objectSummary;
String message = summary.getMessage();
stringBuilder.append(message);
stringBuilder.append("\n");
}
String messageDetails = stringBuilder.toString();

payload.put("custom_details", messageDetails);

Why

Having this custom field allows for clients to publish critical information on the alerts to better route them.

@ghost ghost added the feature label Aug 31, 2022
@bernd bernd added the triaged label Aug 31, 2022
@ghost
Copy link
Author

ghost commented Aug 31, 2022

Adding a patch if it helps.
0001-Updated-for-additioanl-pager-duty-details.patch.zip

@deepakmadisetty
Copy link

We need this feature very badly. We are currently migrating our alerts from Azure to Graylog and the limitation of not having the fields to include additional info is crippling us. I would like to contribute to this but currently lack documentation on how to set up this project for development. Can you provide me with some documentation? Thank you for your help in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants