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

[config] server name #6610

Merged
merged 4 commits into from
Mar 24, 2016
Merged

[config] server name #6610

merged 4 commits into from
Mar 24, 2016

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented Mar 23, 2016

In cases when multiple instances of Kibana are running it can be useful to provide a name for identification. The intent for this config is to only be used for display purposes.

This adds a server.name config that defaults to the machines hostname, and adds the name to /api/status responses.

Open to random names if that's something we want, keeping it simple initially.

Sibling to #6583

@jbudz
Copy link
Member Author

jbudz commented Mar 23, 2016

cc @tsullivan

@@ -1,6 +1,8 @@
import _ from 'lodash';
import ServerStatus from './server_status';
import { join } from 'path';
import Config from '../config/config';
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this Config class is not used and probably isn't needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ha, good catch. Looks like I got lucky below with the argument being passed in.

@tsullivan
Copy link
Member

adds the name to /api/status responses

Is this part working right now? Sounds like a good idea. If there is a trick to getting this to work, then I should probably make this work in #6583 too

@jbudz
Copy link
Member Author

jbudz commented Mar 23, 2016

@spalger
Copy link
Contributor

spalger commented Mar 23, 2016

Is there a reason to have this and the UUID?

@jbudz
Copy link
Member Author

jbudz commented Mar 23, 2016

@spalger This would be more for human consumption, identifying a server by display name.

@tsullivan
Copy link
Member

@spalger This would be more for human consumption, identifying a server by display name.

Correct.

Also, we won't assume that the instance name is persistent - the user can rename the instance and past metrics will still be associated when you look at a span of historical data, because metrics are grouped by the persistent UUID.

@spalger
Copy link
Contributor

spalger commented Mar 23, 2016

Cool, I like it

@@ -11,6 +11,9 @@
# The maximum payload size in bytes for incoming server requests.
# server.maxPayloadBytes: 1048576

# The Kibana server's name. This is used for display purposes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Given that we don't actually show this anywhere, this is a weird description. Can you add the display of this to the status and about screens of kibana?

@rashidkpc rashidkpc assigned jbudz and unassigned rashidkpc Mar 23, 2016
@jbudz
Copy link
Member Author

jbudz commented Mar 24, 2016

@rashidkpc added:
image
image

@jbudz jbudz assigned rashidkpc and unassigned jbudz Mar 24, 2016
@rashidkpc
Copy link
Contributor

Love it, ship it.

@rashidkpc rashidkpc merged commit fd2f9d8 into elastic:master Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants