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

Add fleet-server package #540

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/fleet_server/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fleet Server package
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_size": "300gb",
"max_age": "30d"
}
}
},
"delete": {
"min_age": "90d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_size": "300gb",
"max_age": "30d"
}
}
},
"delete": {
"min_age": "90d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is an example on how this should look: https://github.com/elastic/package-storage/blob/production/packages/endpoint/0.17.0/elasticsearch/index_template/metrics-metadata-current.json

I wonder what happens if we prefix this template with a .. Not even sure it is possible.

"index_patterns": [
".fleet-policies"
],
"template": {
"settings": {},
"mappings": {
"properties": {
"coordinator_idx": {
"type": "integer"
},
"@timestamp": {
"type": "date"
},
"data": {
"type": "object",
"enabled": false
},
"policy_id": {
"type": "keyword"
},
"revision_idx": {
"type": "integer"
},
"default_fleet_server": {
"type": "boolean"
}
}
}
},
"composed_of": [],
"priority": 300,
"version": 1
}
38 changes: 38 additions & 0 deletions packages/fleet_server/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: fleet_server
title: Fleet Server
version: 0.1.0
release: experimental
description: Fleet Server Integration
type: integration
format_version: 1.0.0
license: basic
categories: ["elastic_stack"]
conditions:
kibana.version: "^7.11.0"
owner:
github: elastic/ingest-management
#icons:
# - src: /img/logo-fleet-server.svg
# title: Fleet Server
# size: 216x216
# type: image/svg+xml
policy_templates:
- name: fleet_server
title: Fleet Server
description: Fleet Server setup
inputs:
- type: fleet_server
vars:
# TODO: Mainly for testing, probably no config options at first
- name: host
type: text
title: Host
multi: true
required: true
show_user: true
default:
- 127.0.0.1
title: "Fleet Server parts"
description: "Hello World Fleet Server"

# TODO: Make this package hidden?