-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM] Script for metric aggregation (#67964)
* [APM] Script for metric aggregation * Retry mechanism * Docs/comments * compress histogram; support --filter & --only parameters * Add flag for significant figures * Ignore apm scripts * Add tsconfig project for apm/scripts
- Loading branch information
1 parent
1ae5d32
commit 42b87c0
Showing
12 changed files
with
704 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
require('@babel/register')({ | ||
extensions: ['.ts'], | ||
plugins: [ | ||
'@babel/plugin-proposal-optional-chaining', | ||
'@babel/plugin-proposal-nullish-coalescing-operator', | ||
], | ||
presets: [ | ||
'@babel/typescript', | ||
['@babel/preset-env', { targets: { node: 'current' } }], | ||
], | ||
}); | ||
|
||
const { | ||
aggregateLatencyMetrics, | ||
} = require('./aggregate-latency-metrics/index.ts'); | ||
|
||
aggregateLatencyMetrics().catch((err) => { | ||
if (err.meta && err.meta.body) { | ||
// error from elasticsearch client | ||
console.error(err.meta.body); | ||
} else { | ||
console.error(err); | ||
} | ||
process.exit(1); | ||
}); |
Oops, something went wrong.