Skip to content

feat: Add Prometheus metrics for Kotary configuration parameters#19

Merged
zelihacagip merged 2 commits into
masterfrom
resource_quota_job
Mar 19, 2026
Merged

feat: Add Prometheus metrics for Kotary configuration parameters#19
zelihacagip merged 2 commits into
masterfrom
resource_quota_job

Conversation

@slim-d

@slim-d slim-d commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

📊 Add Prometheus metrics for Kotary configuration monitoring

What

This MR introduces new Prometheus metrics to expose key configuration parameters from the kotary-config ConfigMap, enabling better observability and monitoring of Kotary's operational limits.

Why

  • Improve observability of Kotary configuration in production environments
  • Enable monitoring and alerting on configuration changes
  • Facilitate troubleshooting and capacity planning through metrics visibility

Changes

Added 6 new Prometheus gauge metrics:

  • kotary_max_jobs_batch_limit_ns - Maximum jobs per namespace
  • kotary_max_jobs_batch_limit_cluster - Maximum jobs across cluster
  • kotary_ratio_max_allocation_cpu - CPU allocation ratio per namespace
  • kotary_ratio_max_allocation_memory - Memory allocation ratio per namespace
  • kotary_ratio_over_commit_cpu - CPU over-commit ratio
  • kotary_ratio_over_commit_memory - Memory over-commit ratio

Testing

  • Metrics are properly exposed on /metrics endpoint
  • Values reflect current ConfigMap configuration
  • Metrics update when ConfigMap changes

Next Steps

  • Update the resourceQuota dashboard to integrate these new configuration metrics alongside existing usage metrics for comprehensive monitoring

@coveralls

coveralls commented Mar 19, 2026

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 23290168111

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+6.7%) to 67.576%

Totals Coverage Status
Change from base Build 21869251553: 6.7%
Covered Lines: 446
Relevant Lines: 660

💛 - Coveralls

@zelihacagip zelihacagip merged commit 597ad1c into master Mar 19, 2026
2 checks passed
zelihacagip pushed a commit that referenced this pull request Apr 22, 2026
* feat: add Prometheus metrics for Kotary configuration limits

* clean: minor cleanup

---------

Co-authored-by: Slimane DAHMANI <slimane.dahmani-prestataire@ca-gip.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants