feat: implement prometheus metrics for edgex devices (#1800)#2496
feat: implement prometheus metrics for edgex devices (#1800)#2496SoumyaRaikwar wants to merge 5 commits intoopenyurtio:masterfrom
Conversation
Signed-off-by: SoumyaRaikwar <somuraik@gmail.com>
|
@charleszheng44 This PR implements a Prometheus-based metrics exporter for EdgeX devices managed by yurt-iot-dock. It addresses the lack of observability for EdgeX device status and resource usage. could you take a look |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2496 +/- ##
==========================================
+ Coverage 43.88% 44.20% +0.31%
==========================================
Files 399 399
Lines 26560 26606 +46
==========================================
+ Hits 11657 11761 +104
+ Misses 13843 13780 -63
- Partials 1060 1065 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@SoumyaRaikwar Please focus on the blocking issues in the code detection. |
Signed-off-by: SoumyaRaikwar <somuraik@gmail.com>
@zyjhtangtang done addressed the blocking issues in latest updatte |
Signed-off-by: SoumyaRaikwar <somuraik@gmail.com>
Signed-off-by: SoumyaRaikwar <somuraik@gmail.com>
Signed-off-by: SoumyaRaikwar <somuraik@gmail.com>
|
|
@zyjhtangtang @rambohe-ch, could you please review this pr |



What type of PR is this?
/kind feature
/sig iot
What this PR does / why we need it:
This PR implements a Prometheus-based metrics exporter for EdgeX devices managed by
yurt-iot-dock. It addresses the lack of observability for EdgeX device status and resource usage.Key changes include:
yurt-iot-dockthat scrapes these metrics and exposes them via the standard controller metrics endpoint.yurt-iot-dockmanager lifecycle.This allows users to monitor EdgeX components using standard Prometheus/Grafana stacks integrated with OpenYurt.
Which issue(s) this PR fixes:
Fixes #1800
Special notes for your reviewer:
The implementation reuses existing files (cmd/yurt-iot-dock/app/core.go and pkg/yurtiotdock/clients/edgex-foundry/v3/device_client.go) to keep the file footprint minimal, as requested during development.
Does this PR introduce a user-facing change?