Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 34,997
    • Issues 34,997
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1,259
    • Merge Requests 1,259
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #13630

Closed
Open
Opened Aug 19, 2019 by Thong Kuah@tkuah🔴Maintainer

DB Load balancing: Log Prometheus current number of hosts and current index

Problem to solve:

We don't know what each application host's idea of number of hosts and it's current index is.

We may want to log a Prometheus metric for the current number of hosts in the load balancer and the current index. I think we can use https://docs.gitlab.com/ee/development/instrumentation.html to achieve this.

Proposal:

  1. Log current number of hosts and current index when #initialize is called
  2. Log current number of hosts and current index when #next is called
  3. Log current number of hosts and current index when #hosts= is called
Edited Aug 23, 2019 by Thong Kuah
Assignee
Assign to
12.3
Milestone
12.3 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab#13630