Skip to content

Commit

Permalink
[monitoring] bump index name version (#29493)
Browse files Browse the repository at this point in the history
  • Loading branch information
klacabane authored Dec 17, 2021
1 parent 5173e55 commit b0d35a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion metricbeat/helper/elastic/elastic.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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 = "7"
const version = "8"

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 @@ -38,22 +38,22 @@ func TestMakeXPackMonitoringIndexName(t *testing.T) {
{
"Elasticsearch monitoring index",
Elasticsearch,
".monitoring-es-7-mb",
".monitoring-es-8-mb",
},
{
"Kibana monitoring index",
Kibana,
".monitoring-kibana-7-mb",
".monitoring-kibana-8-mb",
},
{
"Logstash monitoring index",
Logstash,
".monitoring-logstash-7-mb",
".monitoring-logstash-8-mb",
},
{
"Beats monitoring index",
Beats,
".monitoring-beats-7-mb",
".monitoring-beats-8-mb",
},
}

Expand Down

0 comments on commit b0d35a3

Please sign in to comment.