Expose metrics from ocean integrations
T
Tero Ahonen
Would it be possible to expose "standard" /metrics endpoint for ocean exporters. Minimal metrics would be that is the integration running fine or not. Really common use case would be that credentials have expired and integration is not working. Really nice would be to have number of mapped entities. This would also help to figure out is the integration working ok and number of entities is increasing. Who ever runs exporters in k8s most certainly have Grafana Alloy or Prometheus running also. And adding ServiceMonitor object to the helm charts makes the integration even easier.
Current status of the integration could be ready using API and checked the .integrations[].resyncState block, but having /metrics endpoint would be more "cloud-native". Using API endpoint would required some extra components to run to check and calculate the status.
Matan Grady
We are exploring a similar idea, please check out the prototype and upvote!
https://roadmap.port.io/ideas/p/expose-improved-sync-status-metrics-on-integrations