Page MenuHomePhabricator

Add a database-backed backend for prometheus-configurator
Closed, ResolvedPublic

Description

prometheus-configurator should store its configuration in a database instead of in a configuration file generated from static hiera settings. This might involve a separate service for talking to the database (that can be used for both talking to the individual configurators running on prometheus / alertmanager nodes and for clients wanting to modify the configuration).

Acceptance criteria

  • Store projects and their monitoring targets in a database (mysql in trove seems easiest)
  • Create some tool for metricsinfra administrators to modify configuration until self-service management has been enabled
Not in scope
  • Allowing remote users (no direct shell access to the box where the api is running on) modify the configuration.
    • Rationale: this has complex parts such as authentication and authorization which can be sorted separately
  • Fancy user interface to modify configuration

Related Objects

Event Timeline

taavi updated the task description. (Show Details)

Change 705173 had a related patch set uploaded (by Majavah; author: Majavah):

[cloud/metricsinfra/prometheus-manager@master] Initial commit

https://gerrit.wikimedia.org/r/705173

Change 705173 merged by Majavah:

[cloud/metricsinfra/prometheus-manager@master] Initial commit

https://gerrit.wikimedia.org/r/705173

Change 707876 had a related patch set uploaded (by Majavah; author: Majavah):

[cloud/metricsinfra/prometheus-manager@master] add basic data model for scrapes

https://gerrit.wikimedia.org/r/707876

Change 707876 merged by jenkins-bot:

[cloud/metricsinfra/prometheus-manager@master] add basic data model for scrapes

https://gerrit.wikimedia.org/r/707876

Change 709040 had a related patch set uploaded (by Majavah; author: Majavah):

[cloud/metricsinfra/prometheus-configurator@master] load basic scrape data from prometheus-manager

https://gerrit.wikimedia.org/r/709040

Change 709040 merged by jenkins-bot:

[cloud/metricsinfra/prometheus-configurator@master] load basic scrape data from prometheus-manager

https://gerrit.wikimedia.org/r/709040

Change 709500 had a related patch set uploaded (by Majavah; author: Majavah):

[cloud/metricsinfra/prometheus-manager@master] Add per-project alerts to database

https://gerrit.wikimedia.org/r/709500

Change 709500 merged by jenkins-bot:

[cloud/metricsinfra/prometheus-manager@master] Add per-project alerts to database

https://gerrit.wikimedia.org/r/709500

Change 709505 had a related patch set uploaded (by Majavah; author: Majavah):

[cloud/metricsinfra/prometheus-configurator@master] load per-project alert rules from prometheus-manager

https://gerrit.wikimedia.org/r/709505

Change 709505 merged by jenkins-bot:

[cloud/metricsinfra/prometheus-configurator@master] load per-project alert rules from prometheus-manager

https://gerrit.wikimedia.org/r/709505

Change 710068 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] metricsinfra: Add config management server

https://gerrit.wikimedia.org/r/710068

Change 710068 merged by Bstorm:

[operations/puppet@production] metricsinfra: Add config management server

https://gerrit.wikimedia.org/r/710068