Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • omnibus-gitlab omnibus-gitlab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,059
    • Issues 1,059
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 53
    • Merge requests 53
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • omnibus-gitlabomnibus-gitlab
  • Issues
  • #3786
Closed
Open
Issue created Sep 13, 2018 by Joshua Lambert@joshlambertDeveloper

Utilize consul for Prometheus service discovery in HA deployments

Problem statement

Today with single-node Omnibus deployments, self-monitoring is enabled and easy to use. We don't however have a pattern for deploying and configuring self-monitoring in an HA environment, with a similar level of ease. Users have to:

  • Set up a standalone Prometheus/Grafana node
  • Manually configure the Prometheus scrape list to scrape each exporter on each HA node. If an IP changes, this config needs to be modified. In some cloud providers you could leverage a service discovery method, like EC2 SD, but this is not a general purpose solution.

Proposed solution

We should consider writing the various nodes/exporters into Consul so it can be discovered by one (or multiple) Prometheus instances automatically.

This would provide an easier method for our customers to set up monitoring for their HA instances.

To achieve this, we should have a flag which would trigger:

  1. A process which registers each node/exporter with Consul on startup/shutdown (Consul agent?)
  2. Sets the exporters to be available beyond localhost
  3. Enable Consul SD within Prometheus
Edited May 22, 2019 by Joshua Lambert
Assignee
Assign to
Time tracking