Title here
Summary here
The Dashboard and the graphs that are shown are customizable in the metrics they display.
When installing the tool we provide a basic configuration that you can find in the
generated frontend/js/helpers/config.js .
For comparison, here is the template file that is checked into the repository: config.js.example
The first part of the file should not be modified, as these variables are set by the install script:
API_URL = "__API_URL__"
METRICS_URL = "__METRICS_URL__"
ELEPHANT_URL = "__ELEPHANT_URL__"
ACTIVATE_SCENARIO_RUNNER = __ACTIVATE_SCENARIO_RUNNER__;
ACTIVATE_ECO_CI = __ACTIVATE_ECO_CI__;
ACTIVATE_CARBON_DB = __ACTIVATE_CARBON_DB__;
ACTIVATE_POWER_HOG = __ACTIVATE_POWER_HOG__;
ACTIVATE_SOFTWARE_VIEW = __ACTIVATE_SOFTWARE_VIEW__;
ACTIVATE_AI_OPTIMISATIONS = __ACTIVATE_AI_OPTIMISATIONS__;The later part you can customize. If you for instance want to have the top chart not display all energy metrics, but rather only the RAPL energy metrics, change accordingly:
// old
// title and filter function for the top left most chart in the Detailed Metrics / Compare view
const TOP_BAR_CHART_TITLE = 'Energy Metrics';
const top_bar_chart_condition = (metric) => {
return metric.indexOf('_energy_') !== -1 && (metric.endsWith('_machine') || metric.endsWith('_component'));
}
// new
// title and filter function for the top left most chart in the Detailed Metrics / Compare view
const TOP_BAR_CHART_TITLE = 'RAPL only energy metrics';
const top_bar_chart_condition = (metric) => {
return metric.indexOf('_energy_') !== -1 && metric.indexOf('_rapl_') !== -1 && (metric.endsWith('_machine') || metric.endsWith('_component'));
}Happy customizing :)