Skip to content

Instantly share code, notes, and snippets.

@pavolloffay
Created January 15, 2019 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavolloffay/5ce3f59f0967aadd5b019be411121c6c to your computer and use it in GitHub Desktop.
Save pavolloffay/5ce3f59f0967aadd5b019be411121c6c to your computer and use it in GitHub Desktop.
Jaeger-es-archive-rollover
# curator --config plugin/storage/es/curator.yml plugin/storage/es/
actions:
1:
action: create_index
description: Create archive index.
options:
name: jaeger-span-archive-000001
continue_if_exception: False
disable_action: False
2:
action: alias
description: Create read alias for archive index.
options:
name: jaeger-span-archive-read
continue_if_exception: False
disable_action: False
add:
filters:
- filtertype: pattern
kind: prefix
value: jaeger-span-archive
3:
action: alias
description: Create write alias for archive index.
options:
name: jaeger-span-archive-write
continue_if_exception: False
disable_action: False
add:
filters:
- filtertype: pattern
kind: prefix
value: jaeger-span-archive
client:
hosts:
- 127.0.0.1
port: 9200
url_prefix:
use_ssl: False
certificate:
client_cert:
client_key:
ssl_no_validate: False
http_auth:
timeout: 30
master_only: False
logging:
loglevel: INFO
logfile:
logformat: default
blacklist: ['elasticsearch', 'urllib3']
actions:
1:
action: alias
description: Remove old indices from read alias, It mimics --es.max-span-age - The maximum lookback for spans in ElasticSearch
options:
name: jaeger-span-archive-read
continue_if_exception: False
disable_action: False
remove:
filters:
- filtertype: alias
aliases:
- jaeger-span-archive-read
- filtertype: alias
aliases:
- jaeger-span-archive-write
exclude: True
- filtertype: age
source: creation_date
direction: older
unit: seconds
unit_count: 1
actions:
1:
action: rollover
description: Rollover the index associated with write alias.
options:
name: jaeger-span-archive-write
conditions:
max_age: 1s
continue_if_exception: False
disable_action: False
2:
action: alias
description: Create write alias for archive index.
options:
name: jaeger-span-archive-read
continue_if_exception: False
disable_action: False
add:
filters:
- filtertype: alias
aliases:
- jaeger-span-archive-write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment