Skip to content

feat: Add support exporting Prometheus metrics#1

Merged
hayk96 merged 4 commits into
mainfrom
feature/prometheus-metrics
Jun 7, 2025
Merged

feat: Add support exporting Prometheus metrics#1
hayk96 merged 4 commits into
mainfrom
feature/prometheus-metrics

Conversation

@hayk96

@hayk96 hayk96 commented Jun 7, 2025

Copy link
Copy Markdown
Owner

1. What this PR does / why we need it:

  • This PR adds support exporting Prometheus metrics for both: Sync and DNS components
  • The following metrics have been introduced:
    • kubebridge_sync_services - Total services discovered and synchronized by the KubeBridge Sync component
    • kubebridge_sync_services_count - Number of services synchronized by the KubeBridge Sync component
    • kubebridge_dns_requests - Total count of DNS requests processed for domain records
    • kubebridge_dns_lookup_time_seconds - Time taken to resolve DNS queries in seconds
  • The multiprocessing mode has been replaced with the multithreading for handling the correct export of metrics as the separate processes have separate memory space
  • Added commonPodAnnotations key in the Helm chart to allow scrapping Prometheus metrics

2. Make sure that you've checked the boxes below before you submit PR:

  • DCO signed
  • No conflict with the main branch.
  • Version updated in code, docs, and metadata.

hayk96 added 3 commits May 23, 2025 23:07
Signed-off-by: hayk96 <hayko5999@gmail.com>
Signed-off-by: hayk96 <hayko5999@gmail.com>
Signed-off-by: hayk96 <hayko5999@gmail.com>
@hayk96 hayk96 self-assigned this Jun 7, 2025
@hayk96 hayk96 added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 7, 2025
@hayk96 hayk96 force-pushed the feature/prometheus-metrics branch from 9e4a06b to b6575cf Compare June 7, 2025 21:34
…ping

Signed-off-by: hayk96 <hayko5999@gmail.com>
@hayk96 hayk96 force-pushed the feature/prometheus-metrics branch from b6575cf to 3520120 Compare June 7, 2025 21:34
@hayk96 hayk96 merged commit 9f46b2c into main Jun 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant