canonical / sdcore-amf-k8s-operator

Charmed Operator for the SD-Core Access and Mobility Management Function (AMF).
https://charmhub.io/sdcore-amf-k8s
Apache License 2.0
1 stars 1 forks source link

Metrics not gathered after ip change #438

Closed gruyaume closed 3 weeks ago

gruyaume commented 1 month ago

Bug Description

When the AMF (or any other network function) changes IP address, the IP address in the prometheus_scrape integration (prometheus_scrape_unit_address unit relation data) is not updated.

Note: This issue also occurs in mongodb, we should probably also open the bug in their repo to let the data platform team know about this situation.

Root cause

The prometheus class only listens to relation changed which does not seem to update when the pod IP changes.

Possible solution

We could pass update status as a refresh event to the Prometheus class.

To Reproduce

  1. Deploy core network
  2. Integrate with COS
  3. Kill one pod

Environment

N/A

Relevant log output

N/A

Additional context

I'm opening this bug on a different system from the one running the setup, hence the lack of logs.

dariofaccin commented 3 weeks ago

I also opened this feature request to address this issue.