Skip to content

Commit

Permalink
Use stats instead of kibana_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Apr 2, 2021
1 parent 70d2638 commit 80e946a
Show file tree
Hide file tree
Showing 60 changed files with 36,997 additions and 1,625 deletions.
2 changes: 2 additions & 0 deletions packages/kbn-es-archiver/src/actions/rebuild_all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ function convertLegacyTypeToMetricsetName(type: string) {
return 'shard';
case 'ccr_stats':
return 'ccr';
case 'kibana_stats':
return 'stats';
}
return type;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function findSupportedBasicLicenseCluster(
bool: {
should: [
{ term: { type: 'kibana_stats' } },
{ term: { 'metricset.name': 'kibana_stats' } },
{ term: { 'metricset.name': 'stats' } },
],
},
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/server/lib/kibana/get_kibanas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export async function getKibanas(
ignoreUnavailable: true,
body: {
query: createQuery({
type: 'kibana_stats',
types: ['kibana_stats', 'stats'],
start,
end,
clusterUuid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function getKibanasForClusters(req, kbnIndexPattern, clusters) {
ignoreUnavailable: true,
body: {
query: createQuery({
type: 'kibana_stats',
types: ['stats', 'kibana_stats'],
start,
end,
clusterUuid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const getRecentMonitoringDocuments = async (req, indexPatterns, clusterUuid, nod
bool: {
should: [
{ term: { type: 'kibana_stats' } },
{ term: { 'metricset.name': 'kibana_stats' } },
{ term: { 'metricset.name': 'stats' } },
],
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function kibanaOverviewRoute(server) {
bool: {
should: [
{ term: { type: 'kibana_stats' } },
{ term: { 'metricset.name': 'kibana_stats' } },
{ term: { 'metricset.name': 'stats' } },
],
},
},
Expand Down
Binary file not shown.
Loading

0 comments on commit 80e946a

Please sign in to comment.