Devenv: Create new Elasticsearch dashboards for data in data source (#65930)
* Devenv: Create new Elasticsearch dashboards for data in data source * Update dashboards * Fix name in es migration * Fix tresholds from null to 0
This commit is contained in:
@@ -81,6 +81,18 @@ async function elasticSetupIndexTemplate() {
|
||||
},
|
||||
shapes: {
|
||||
type: 'nested',
|
||||
},
|
||||
hostname: {
|
||||
type: 'keyword',
|
||||
},
|
||||
value: {
|
||||
type: 'integer',
|
||||
},
|
||||
metric: {
|
||||
type: 'keyword',
|
||||
},
|
||||
description: {
|
||||
type: 'text',
|
||||
}
|
||||
},
|
||||
},
|
||||
@@ -119,6 +131,10 @@ function getRandomLogItem(counter, timestamp) {
|
||||
{"type": "triangle"},
|
||||
{"type": "square"},
|
||||
],
|
||||
hostname: chooseRandomElement(['hostname1', 'hostname2', 'hostname3', 'hostname4', 'hostname5', 'hostname6']),
|
||||
value: counter,
|
||||
metric: chooseRandomElement(['cpu', 'memory', 'latency']),
|
||||
description: "this is description"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user