Skip to content

Conversation

@sujay-hashicorp
Copy link
Contributor

@sujay-hashicorp sujay-hashicorp commented Sep 26, 2025

Description

  • Added subcommand operator utilization to generate and send utilization report bundle.
  • Added new API endpoint and Handler to fetch the bundle and respond.
  • Both require enterprise build hence added a guardrail to ensure operation happens with enterprise build.

Testing & Reproduction steps

Run consul agent -dev to start consul server in dev mode and to monitor logs

CLI Command
Screenshot 2025-09-26 at 20 44 21
API Call
Screenshot 2025-09-26 at 20 44 59
Logs
2025-09-26T20:40:16.213+0530 [ERROR] agent.http: Request error: method=GET url=/v1/operator/utilization from=127.0.0.1:54505 error="operator utilization requires Consul Enterprise"
2025-09-26T20:40:16.213+0530 [DEBUG] agent.http: Request finished: method=GET url=/v1/operator/utilization from=127.0.0.1:54505 latency="114.583µs"

Links

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@sujay-hashicorp sujay-hashicorp requested a review from a team as a code owner September 26, 2025 15:16
@github-actions github-actions bot added theme/cli Flags and documentation for the CLI interface theme/config Relating to Consul Agent configuration, including reloading pr/dependencies PR specifically updates dependencies of project labels Sep 26, 2025
@sujay-hashicorp sujay-hashicorp added pr/no-changelog PR does not need a corresponding .changelog entry and removed theme/cli Flags and documentation for the CLI interface theme/config Relating to Consul Agent configuration, including reloading pr/dependencies PR specifically updates dependencies of project labels Sep 26, 2025
@sujay-hashicorp sujay-hashicorp force-pushed the sujay/dev/census-reporting branch from cc80271 to 45ec999 Compare September 26, 2025 15:52
@sujay-hashicorp sujay-hashicorp removed the pr/no-changelog PR does not need a corresponding .changelog entry label Sep 26, 2025
@sujay-hashicorp sujay-hashicorp force-pushed the sujay/dev/census-reporting branch 3 times, most recently from 0198738 to f3ca927 Compare September 26, 2025 16:03
@sujay-hashicorp sujay-hashicorp merged commit 7151888 into main Sep 26, 2025
110 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants