mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
This commit is contained in:
parent
0fe636cddf
commit
8a333d2ee6
4 changed files with 10 additions and 6 deletions
|
@ -56,7 +56,7 @@ Array [
|
|||
"min": 100,
|
||||
},
|
||||
"field": "@timestamp",
|
||||
"interval": "1s",
|
||||
"interval": "30s",
|
||||
"min_doc_count": 0,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -37,7 +37,7 @@ export async function fetch({
|
|||
setup
|
||||
}: MetricsRequestArgs): Promise<ESResponse> {
|
||||
const { start, end, esFilterQuery, client, config } = setup;
|
||||
const { intervalString } = getBucketSize(start, end, 'auto');
|
||||
const { bucketSize } = getBucketSize(start, end, 'auto');
|
||||
const filters: ESFilter[] = [
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
{ term: { [PROCESSOR_NAME]: 'metric' } },
|
||||
|
@ -59,7 +59,9 @@ export async function fetch({
|
|||
timeseriesData: {
|
||||
date_histogram: {
|
||||
field: '@timestamp',
|
||||
interval: intervalString,
|
||||
|
||||
// ensure minimum bucket size of 30s since this is the default resolution for metric data
|
||||
interval: `${Math.max(bucketSize, 30)}s`,
|
||||
min_doc_count: 0,
|
||||
extended_bounds: { min: start, max: end }
|
||||
},
|
||||
|
|
|
@ -48,7 +48,7 @@ Array [
|
|||
"min": 100,
|
||||
},
|
||||
"field": "@timestamp",
|
||||
"interval": "1s",
|
||||
"interval": "30s",
|
||||
"min_doc_count": 0,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -33,7 +33,7 @@ export async function fetch({
|
|||
setup
|
||||
}: MetricsRequestArgs): Promise<ESResponse> {
|
||||
const { start, end, esFilterQuery, client, config } = setup;
|
||||
const { intervalString } = getBucketSize(start, end, 'auto');
|
||||
const { bucketSize } = getBucketSize(start, end, 'auto');
|
||||
const filters: ESFilter[] = [
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
{ term: { [PROCESSOR_NAME]: 'metric' } },
|
||||
|
@ -62,7 +62,9 @@ export async function fetch({
|
|||
timeseriesData: {
|
||||
date_histogram: {
|
||||
field: '@timestamp',
|
||||
interval: intervalString,
|
||||
|
||||
// ensure minimum bucket size of 30s since this is the default resolution for metric data
|
||||
interval: `${Math.max(bucketSize, 30)}s`,
|
||||
min_doc_count: 0,
|
||||
extended_bounds: { min: start, max: end }
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue