Skip to content

Commit

Permalink
Cross-reference sampling/pubsub and apmpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Feb 11, 2021
1 parent 93d618d commit 548dd7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# When changing fields or ILM policy, make sure to update
# x-pack/apm-server/sampling/pubsub/datastream.go.
- name: observer.id
type: keyword
description: |
Expand Down
3 changes: 3 additions & 0 deletions x-pack/apm-server/sampling/pubsub/datastream.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func SetupDataStream(
return nil
}

// NOTE(axw) these replicate the index template and ILM policy created by Fleet,
// and should be kept in sync with apmpackage/apm/.../data_stream/sampled_traces.

const ilmPolicy = `{
"policy": {
"phases": {
Expand Down

0 comments on commit 548dd7b

Please sign in to comment.