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

New Provider: Prometheus #186

Closed
wants to merge 4 commits into from
Closed

New Provider: Prometheus #186

wants to merge 4 commits into from

Conversation

wh1337
Copy link
Contributor

@wh1337 wh1337 commented Nov 30, 2021

Created a new provider for Prometheus.

What it looks like in discord:

image

Prometheus does not send headers, at least not that I could find in the documentation provided in #126 that's why I decided to set a x-skyhook-event header in the Prometheus.ts file.

Hope this helps!

src/provider/Prometheus.ts Outdated Show resolved Hide resolved
Changed to the direct parse provider per PR review comments. Removed the getType, knownTypes, and preParse methods.
import { Embed, EmbedField, EmbedAuthor } from '../model/DiscordApi'
import { DirectParseProvider } from './BaseProvider'

export class Prometheus extends DirectParseProvider {
Copy link
Collaborator

Choose a reason for hiding this comment

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

need a link to the documentation here, see other providers as an example

@dscalzi dscalzi linked an issue Nov 30, 2021 that may be closed by this pull request
@wh1337 wh1337 closed this by deleting the head repository Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus AlertManager WebHook Support
2 participants