Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upmarathon_sd connect to wrong ports #5022
Comments
This comment has been minimized.
This comment has been minimized.
|
FYI: Here is my fix. |
This comment has been minimized.
This comment has been minimized.
|
Would you like to send a PR? It should be made againt the |
This comment has been minimized.
This comment has been minimized.
|
Indeed, that reasoning is correct. Code looks good at first glance. Not much time to look into this right now, but feel free to mention me in the PR as well |
This comment has been minimized.
This comment has been minimized.
|
Thank you for your reply. I'll send a PR later. |
tommarute
referenced this issue
Dec 21, 2018
Merged
marathon-sd - use Tasks.Ports instead of PortDefinitions.Ports if RequirePorts is false #5026
simonpasquier
added
kind/bug
component/service discovery
labels
Dec 21, 2018
This comment has been minimized.
This comment has been minimized.
|
@tommarute There is definitely a bug here, but just so I understand your use case better: did you explicitly specify |
This comment has been minimized.
This comment has been minimized.
|
@ti-mo I specified 0 when I configured marathon. |
tommarute
added a commit
to tommarute/prometheus
that referenced
this issue
Dec 27, 2018
tommarute
added a commit
to tommarute/prometheus
that referenced
this issue
Jan 8, 2019
brian-brazil
added a commit
that referenced
this issue
Jan 14, 2019
This comment has been minimized.
This comment has been minimized.
|
Closed by #5026 |
simonpasquier
closed this
Jan 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tommarute commentedDec 20, 2018
Bug Report
What did you do?
Tried to get metrics of marathon applications.
What did you expect to see?
Metrics were scraped by their correct port.
What did you see instead? Under which circumstances?
Got connection refused error because of marathon_sd connect to wrong ports. marathon_sd should use
Tasks.Portsinstead ofPortDefinitions.PortsifRequirePortsisfalseaccording to document of marathon.Environment
System information:
Darwin 16.5.0 x86_64Prometheus version:
Prometheus configuration file:
Click to expand
Logs:
In this case, correct port was 31690.
Click to expand