mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* added callout about reporting on cloud * slight rewording * added functionality to disbale screenshotting on <2GB cloud instances * added test and fixed public facing API to throw an observable error instead of sync * update reporting integration with new screenshotting error * fix typo * added specific error code to telemetry * added positive test case * updated mappings * update jest test snapshots * update snapshot * fix use of deprecated RxJS * [revert this] added some logs for cloud * also check for deploymentId * remove logs * removed logger being passed to system check function * remove unused import * slight update to test * added cloud min requirements link * add link to UI * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * added todo comment * read mem limit from cgroup files * update jest * tidy up and simplify some of the logic * [revert this] test with 1024 * [revert this] added some logging again * actually pass the cloud plugin to Screenshots 🤦 * [revert this] try and read instance data file instead * Revert "[revert this] try and read instance data file instead" This reverts commitebdea2115d
. * Revert "[revert this] test with 1024" This reverts commit7ae3e3978e
. * Revert "[revert this] added some logging again" This reverts commitd21e8080e1
. * use injected environment variable to read instance size * implement copy feedback * fix variable rename * fix test * fixed some copy * fix test code * remove unused i18n * update snapshots * minor tidying up * tighten up the copy Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
15 lines
576 B
TypeScript
15 lines
576 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
// Best effort to get instance size from process.env
|
|
export function readInstanceSizeMb(): undefined | number {
|
|
const capacityString = process.env.CLOUD_KIBANA_CAPACITY;
|
|
if (capacityString) {
|
|
const instanceSizeMb = parseInt(capacityString, 10);
|
|
return isNaN(instanceSizeMb) ? undefined : instanceSizeMb;
|
|
}
|
|
}
|