Skip to content

Commit

Permalink
Discover and merge dynamic fields for monitoring (#1300)
Browse files Browse the repository at this point in the history
* Updated monitoring known fields

* Discover new fields on every monitoring cron job

* Merge dynamic fields for monitoring. Modularized two instance methods
  • Loading branch information
Jesús Ángel authored Mar 11, 2019
1 parent 64b208c commit 0ff0b38
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 201 deletions.
147 changes: 6 additions & 141 deletions server/integration-files/monitoring-known-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'dateAdd.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'group',
type: 'string',
Expand All @@ -92,15 +83,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'group.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'host',
type: 'string',
Expand Down Expand Up @@ -137,15 +119,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'lastKeepAlive.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'cluster.name',
type: 'string',
Expand All @@ -155,15 +128,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'cluster.name.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'mergedSum',
type: 'string',
Expand All @@ -173,15 +137,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'mergedSum.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'configSum',
type: 'string',
Expand All @@ -191,15 +146,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'configSum.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'node_name',
type: 'string',
Expand All @@ -209,15 +155,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'node_name.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'manager',
type: 'string',
Expand All @@ -227,15 +164,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'manager.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'manager_host',
type: 'string',
Expand All @@ -245,15 +173,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'manager_host.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'name',
type: 'string',
Expand All @@ -272,15 +191,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'os.arch.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'os.codename',
type: 'string',
Expand All @@ -290,15 +200,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'os.codename.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'os.major',
type: 'string',
Expand All @@ -309,13 +210,13 @@ export const monitoringKnownFields = [
readFromDocValues: false
},
{
name: 'os.major.keyword',
name: 'os.minor',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
aggregatable: false,
readFromDocValues: false
},
{
name: 'os.name',
Expand All @@ -326,15 +227,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'os.name.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'os.platform',
type: 'string',
Expand All @@ -344,15 +236,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'os.platform.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'os.uname',
type: 'string',
Expand All @@ -362,15 +245,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'os.uname.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'os.version',
type: 'string',
Expand All @@ -380,15 +254,6 @@ export const monitoringKnownFields = [
aggregatable: false,
readFromDocValues: false
},
{
name: 'os.version.keyword',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
},
{
name: 'status',
type: 'string',
Expand All @@ -408,12 +273,12 @@ export const monitoringKnownFields = [
readFromDocValues: false
},
{
name: 'version.keyword',
name: 'registerIP',
type: 'string',
count: 0,
scripted: false,
searchable: true,
aggregatable: true,
readFromDocValues: true
aggregatable: false,
readFromDocValues: false
}
];
Loading

0 comments on commit 0ff0b38

Please sign in to comment.