Skip to content

Commit

Permalink
Reenable schema for ingest manager usage collector
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed Jul 8, 2020
1 parent fb6bbbc commit c3f633a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 15 deletions.
1 change: 0 additions & 1 deletion x-pack/.telemetryrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"plugins/apm/server/lib/apm_telemetry/index.ts",
"plugins/canvas/server/collectors/collector.ts",
"plugins/infra/server/usage/usage_collector.ts",
"plugins/ingest_manager/server/collectors/register.ts",
"plugins/lens/server/usage/collectors.ts",
"plugins/reporting/server/usage/reporting_usage_collector.ts",
"plugins/maps/server/maps_telemetry/collectors/register.ts"
Expand Down
29 changes: 15 additions & 14 deletions x-pack/plugins/ingest_manager/server/collectors/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,21 @@ export function registerIngestManagerUsageCollector(
packages: await getPackageUsage(soClient),
};
},
// schema: { // temporarily disabled because of type errors
// fleet_enabled: { type: 'boolean' },
// agents: {
// total: { type: 'number' },
// online: { type: 'number' },
// error: { type: 'number' },
// offline: { type: 'number' },
// },
// packages: {
// name: { type: 'keyword' },
// version: { type: 'keyword' },
// enabled: { type: boolean },
// },
// },
schema: {
// temporarily disabled because of type errors
fleet_enabled: { type: 'boolean' },
agents: {
total: { type: 'number' },
online: { type: 'number' },
error: { type: 'number' },
offline: { type: 'number' },
},
packages: {
name: { type: 'keyword' },
version: { type: 'keyword' },
enabled: { type: 'boolean' },
},
},
});

// register usage collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,42 @@
}
}
},
"ingest_manager": {
"properties": {
"fleet_enabled": {
"type": "boolean"
},
"agents": {
"properties": {
"total": {
"type": "number"
},
"online": {
"type": "number"
},
"error": {
"type": "number"
},
"offline": {
"type": "number"
}
}
},
"packages": {
"properties": {
"name": {
"type": "keyword"
},
"version": {
"type": "keyword"
},
"enabled": {
"type": "boolean"
}
}
}
}
},
"mlTelemetry": {
"properties": {
"file_data_visualizer": {
Expand Down

0 comments on commit c3f633a

Please sign in to comment.