Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stn/status page ohne mesh #920

Merged
merged 2 commits into from
Jul 22, 2017
Merged

Stn/status page ohne mesh #920

merged 2 commits into from
Jul 22, 2017

Conversation

stuartnelson3
Copy link
Contributor

How does this look?

image

A mesh connection was assumed, even though the
value that was being passed into the helper
function was a possibly-nil pointer. Add a check
for this, and return a nil value in that case. The
frontend finds this when decoding the json
payload, and displays the "not configured"
message.
@stuartnelson3 stuartnelson3 requested review from w0rm and mxinden July 22, 2017 08:12
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement!

Just for others to test this: you need to set -mesh.listen-address="", because it defaults to 0.0.0.0 by default.

@stuartnelson3 Do you know why we default to an address instead of not initializing the mesh by default?

@stuartnelson3
Copy link
Contributor Author

I'm not sure, but I believe the default is for a server to start a mesh with itself. That way, other servers can be brought up that will connect to this initial server.

@mxinden
Copy link
Member

mxinden commented Jul 22, 2017

@stuartnelson3 Sounds reasonable. Thanks.

@mxinden
Copy link
Member

mxinden commented Jul 22, 2017

Fixes #918

@stuartnelson3 stuartnelson3 merged commit 040b1f9 into master Jul 22, 2017
@stuartnelson3 stuartnelson3 deleted the stn/status-page-ohne-mesh branch July 22, 2017 10:30
iksaif pushed a commit to iksaif/alertmanager that referenced this pull request Sep 15, 2017
* Render status page without mesh connection (prometheus#918)

A mesh connection was assumed, even though the
value that was being passed into the helper
function was a possibly-nil pointer. Add a check
for this, and return a nil value in that case. The
frontend finds this when decoding the json
payload, and displays the "not configured"
message.

* Update bindata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants