Skip to content

Commit

Permalink
[Monitoring] Update monitoring template versions (#69317)
Browse files Browse the repository at this point in the history
* [Monitoring] Update monitoring template versions

Update monitoring template versions to 7.11.0, to
ensure they are replaced on upgrade.

* Change template versions to 7.12.0

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
axw and elasticmachine committed Feb 26, 2021
1 parent cdf3eed commit 0b567d6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public final class MonitoringTemplateUtils {
* The last version of X-Pack that updated the templates and pipelines.
* <p>
* It may be possible for this to diverge between templates and pipelines, but for now they're the same.
*
* Note that the templates were last updated in 7.11.0, but the versions were not updated, meaning that upgrades
* to 7.11.0 would not have updated the templates. See https://github.com/elastic/elasticsearch/pull/69317.
*/
public static final int LAST_UPDATED_VERSION = Version.V_7_0_0.id;
public static final int LAST_UPDATED_VERSION = Version.V_7_12_0.id;

/**
* Current version of templates used in their name to differentiate from breaking changes (separate from product version).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"index_patterns": [ ".monitoring-alerts-${monitoring.template.version}" ],
"version": 7000099,
"version": 7120099,
"settings": {
"index": {
"number_of_shards": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"index.number_of_replicas": 0,
"index.number_of_shards": 1
},
"version": 7000099,
"version": 7120099,
"mappings": {
"_doc": {
"dynamic": false,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugin/core/src/main/resources/monitoring-es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"index_patterns": [ ".monitoring-es-${monitoring.template.version}-*" ],
"version": 7000099,
"version": 7120099,
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"index_patterns": [ ".monitoring-kibana-${monitoring.template.version}-*" ],
"version": 7000099,
"version": 7120099,
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"index_patterns": [ ".monitoring-logstash-${monitoring.template.version}-*" ],
"version": 7000099,
"version": 7120099,
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
Expand Down

0 comments on commit 0b567d6

Please sign in to comment.