Function: registerOverviewChartsProcessor()
function registerOverviewChartsProcessor(processor: OverviewChartsProcessor): void
Add a processor for the overview charts section. Allowing the addition or modification of charts.
Parameters
| Parameter | Type | Description |
|---|---|---|
processor | OverviewChartsProcessor | The processor to add. Returns the new charts to be displayed. |
Returns
void
Example
import { registerOverviewChartsProcessor } from '@kinvolk/headlamp-plugin/lib';
registerOverviewChartsProcessor(function addFailedPodsChart(charts) {
return [
...charts,
{
id: 'failed-pods',
component: () => <FailedPodsChart />
}
];
});