Skip to content

hostname not supported in --cluster.advertise-address #1271

Open
@pangorgo

Description

@pangorgo

What did you do?

start alert manager with --cluster.listen-address=0.0.0.0:6783 --cluster.advertise-address=alertmanager.example.com:6783

What did you expect to see?

alertmanager starting normally

What did you see instead? Under which circumstances?

error in logs, when I put ip addr instead hostname, it works.

Environment

  • System information:

Linux 3.16.0-4-amd64 x86_64

  • Alertmanager version:

v0.15.0-rc.0

  • Logs:
level=warn ts=2018-03-02T11:58:08.434627474Z caller=cluster.go:81 component=cluster err="couldn't deduce an advertise address: failed to parse advertise addr 'alertmanager.example.com'"
level=error ts=2018-03-02T11:58:08.435012167Z caller=main.go:166 msg="Unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: Failed to parse advertise address \"alertmanager.example.com\""

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions