Skip to content

COS integration passes the wrong target IP #85

@barryprice

Description

@barryprice

Bug Description

Hi,

We've got this deployed and related/integrated with COS, but are seeing an error due to COS's inability to scrape the defined Prometheus target.

On closer investigation, the source of the error is an inability to scrape the actual pod IP, rather than the service/ingress IP.

The configured target is http://192.168.102.222:9102/metrics

I would expect the charm to pass through the ingress IP (or possibly the service ClusterIP?) as the defined target instead - these are in the 10.0.0.0/8 range rather than 192.168.0.0/16.

To Reproduce

  1. Deploy and expose httprequest-lego-provider via nginx-ingress-integrator.

  2. Integrate the service with COS.

  3. Failure to scrape metrics target.

Environment

Deployed on a shared Kubernetes cluster on Openstack.

Relevant log output

Nothing obviously relevant on this side, but feel free to request specific logs.

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions