canonical / prometheus-k8s-operator

https://charmhub.io/prometheus-k8s
Apache License 2.0
21 stars 35 forks source link

Catch more exception types, only capture 'juju_' labels to make execution faster #476

Closed rbarry82 closed 1 year ago

rbarry82 commented 1 year ago

Issue

requests may throw a ConnectionResetError when attempting to read the response inside a contextmanager, and we should also catch that.

Ensure that all args are converted when logging. And trim the regexp down to only capture topology labels (for Grafana dashboards)

Release Notes

Catch more exception types, only capture 'juju_' labels to make execution faster