mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
[elasticsearch] Do not set a placeholder to index name, if it's already specified.
This commit is contained in:
parent
0a080149ae
commit
20214b3d6a
@ -28,9 +28,13 @@ export class ElasticConfigCtrl {
|
||||
];
|
||||
|
||||
indexPatternTypeChanged() {
|
||||
const def = _.find(this.indexPatternTypes, {
|
||||
value: this.current.jsonData.interval,
|
||||
});
|
||||
this.current.database = def.example || 'es-index-name';
|
||||
if (!this.current.database ||
|
||||
this.current.database.length === 0 ||
|
||||
this.current.database.startsWith('[logstash-]')) {
|
||||
const def = _.find(this.indexPatternTypes, {
|
||||
value: this.current.jsonData.interval,
|
||||
});
|
||||
this.current.database = def.example || 'es-index-name';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user