Skip to main content

Function: registerOverviewChartsProcessor()

function registerOverviewChartsProcessor(processor: OverviewChartsProcessor): void

Add a processor for the overview charts section. Allowing the addition or modification of charts.

Parameters

ParameterTypeDescription
processorOverviewChartsProcessorThe 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 />
}
];
});

Defined in

src/plugin/registry.tsx:799