ThinkGeek
ThinkGeek

Reputation: 5117

How to prevent Prometheus from adding port to the specified target?

I have specified Prometheus target as below:

- job_name: 'web_api'

  static_configs:
    - targets: ['u-agrawalo-web.api.lb.example.com']

But Prometheus is searching for http://u-agrawalo-web.api.lb.example.com:80/metrics

Is there a way to prevent prometheus from adding a port to the url specified? i.e. I want prometheus to just query http://u-agrawalo-web.api.lb.example.com/metrics

Upvotes: 0

Views: 1198

Answers (1)

brian-brazil
brian-brazil

Reputation: 34112

These URLs are equivalent, most likely the software on the other end is incorrectly handling them differently and needs fixing.

Upvotes: 1

Related Questions