Consider having a built-in adapter for Prometheus

Open
#310 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
php, prometheus
Domain
observability

Research direction

Start with the Prometheus Alertmanager webhook configuration linked in the issue and review how Cachet components and incidents are represented through its API. Done would require a defined built-in adapter that maps Alertmanager entities to components and resolves incidents when alerts stop firing.

Written by the indexing model from the issue text.

Description

While Cachet currently only concerns itself with displaying statuses (and maintenance messages) for components, these are still to be created/updated manually via the Dashboard (or API). Of course there is the possibility of integrating with Oh Dear, but in the interest of presenting a truly open-source solution that kinda 'closes the loop' it'd be great to have a built-in integration with Prometheus.

At least in the past with v2, there was reasonable demand for such a solution, as elicited by the following 3rd party adapters (which unfortunately are not maintained anymore, and probably don't play well with v3):

As far as I can see, this mostly revolves around having a translator for the webhook events from Prometheus Alertmanager, some way to map the individual entities to components, and of course resolving incidents when they stop firing.

Looking forward to further discussions on this matter!

Dominant language
PHP
Stars
228
Forks
84
Avg merge
11h 19m
Merged PRs (30d)
22

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cachethq/core

All issues in cachethq/core

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.