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

Update schema version in monitoring index name #11315

Merged
merged 2 commits into from
Mar 19, 2019
Merged
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
2 changes: 1 addition & 1 deletion metricbeat/helper/elastic/elastic.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (p Product) String() string {
// MakeXPackMonitoringIndexName method returns the name of the monitoring index for
// a given product { elasticsearch, kibana, logstash, beats }
func MakeXPackMonitoringIndexName(product Product) string {
const version = "6"
const version = "7"

return fmt.Sprintf(".monitoring-%v-%v-mb", product.xPackMonitoringIndexString(), version)
}
Expand Down
8 changes: 4 additions & 4 deletions metricbeat/helper/elastic/elastic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ func TestMakeXPackMonitoringIndexName(t *testing.T) {
{
"Elasticsearch monitoring index",
Elasticsearch,
".monitoring-es-6-mb",
".monitoring-es-7-mb",
},
{
"Kibana monitoring index",
Kibana,
".monitoring-kibana-6-mb",
".monitoring-kibana-7-mb",
},
{
"Logstash monitoring index",
Logstash,
".monitoring-logstash-6-mb",
".monitoring-logstash-7-mb",
},
{
"Beats monitoring index",
Beats,
".monitoring-beats-6-mb",
".monitoring-beats-7-mb",
},
}

Expand Down