Skip to content

Commit

Permalink
[7.x] [Monitoring] Add usage mapping for monitoring-kibana index (
Browse files Browse the repository at this point in the history
…#40899) (#41601)

Backports the usage change to 7.x. A separate backport is needed to
change the version for 6.7, which will complete this backport.
  • Loading branch information
pickypg authored Apr 26, 2019
1 parent 22f3b53 commit 858e7f4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class MonitoringTemplateUtils {
* <p>
* It may be possible for this to diverge between templates and pipelines, but for now they're the same.
*/
public static final int LAST_UPDATED_VERSION = Version.V_7_0_0.id;
public static final int LAST_UPDATED_VERSION = Version.V_7_0_1.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": 7000199,
"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": 7000199,
"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": 7000199,
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
Expand Down
9 changes: 8 additions & 1 deletion x-pack/plugin/core/src/main/resources/monitoring-kibana.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"index_patterns": [ ".monitoring-kibana-${monitoring.template.version}-*" ],
"version": 7000099,
"version": 7000199,
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
Expand Down Expand Up @@ -50,6 +50,13 @@
},
"kibana_stats": {
"properties": {
"usage": {
"properties": {
"index": {
"type": "keyword"
}
}
},
"kibana": {
"properties": {
"uuid": {
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": 7000199,
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
Expand Down

0 comments on commit 858e7f4

Please sign in to comment.