This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
feat: support running kibana with different configs #1644
Merged
mdelapenya
merged 17 commits into
elastic:master
from
mdelapenya:configurable-kibana-config
Oct 15, 2021
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
bc97f9e
chore: match elastic-package's kibana config
mdelapenya c46b403
chore: bring back kibana's configuration file
mdelapenya 15ed9c3
chore: rename configurations to default
mdelapenya c839749
chore: make kibana profile configurable
mdelapenya b2896f3
feat: support bootstrapping the stack with a new kibana config
mdelapenya 433623a
feat: create an on-the-fly elastic-package's profile from compose
mdelapenya 95f1591
chore: override default kibana config for elastic-package
mdelapenya d942746
fix: remove unused code
mdelapenya 51cd70a
docs: document kibana config and profiles
mdelapenya e260cf3
chore: add a profile for preconfgured-policies
mdelapenya 1fdf0af
elas
mdelapenya f949d27
chore: add placeholder for preconfigured policies
mdelapenya 475b9bd
chore: support passing custom kibana ref to elastic-package
mdelapenya e3ba427
Merge branch 'master' into configurable-kibana-config
mdelapenya 82e4ee3
fix: honour current env
mdelapenya 249999d
chore: unit test that we are not overriding the env
mdelapenya b66afaa
Merge branch 'master' into configurable-kibana-config
mdelapenya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
cli/config/compose/profiles/fleet/preconfigured-policies/kibana.config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nchaulet here it's the config file as a placeholder for your config |
||
server.name: kibana | ||
server.host: "0.0.0.0" | ||
|
||
telemetry.enabled: false | ||
|
||
elasticsearch.hosts: [ "http://elasticsearch:9200" ] | ||
elasticsearch.username: elastic | ||
elasticsearch.password: changeme | ||
xpack.monitoring.ui.container.elasticsearch.enabled: true | ||
|
||
xpack.fleet.enabled: true | ||
xpack.fleet.registryUrl: https://epr-staging.elastic.co | ||
xpack.fleet.agents.enabled: true | ||
xpack.fleet.agents.elasticsearch.host: http://elasticsearch:9200 | ||
xpack.fleet.agents.fleet_server.hosts: | ||
["http://fleet-server:8220"] | ||
|
||
xpack.encryptedSavedObjects.encryptionKey: "12345678901234567890123456789012" | ||
xpack.fleet.agents.tlsCheckDisabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@policies | ||
Feature: Preconfigured Policies | ||
Scenarios for Preconfigured Policies | ||
|
||
Scenario Outline: Example using Kibana with custom policy | ||
Given kibana uses "preconfigured-policies" profile | ||
And a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the "elastic-agent" process is in the "started" state on the host | ||
Then the agent is listed in Fleet as "online" | ||
And system package dashboards are listed in Fleet | ||
|
||
@centos | ||
Examples: Centos | ||
| os | | ||
| centos | | ||
|
||
@debian | ||
Examples: Debian | ||
| os | | ||
| debian | | ||
|
||
Scenario Outline: Example using Kibana with default config | ||
Given kibana uses "default" profile | ||
And a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the "elastic-agent" process is in the "started" state on the host | ||
Then the agent is listed in Fleet as "online" | ||
And system package dashboards are listed in Fleet | ||
|
||
@centos | ||
Examples: Centos | ||
| os | | ||
| centos | | ||
|
||
@debian | ||
Examples: Debian | ||
| os | | ||
| debian | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdelapenya feel free to modify the original config in the elastic-package tool.