mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
15 lines
516 B
TypeScript
15 lines
516 B
TypeScript
import { Registry, LensRendererExtension } from "@k8slens/extensions"
|
|
import { MetricsFeature } from "./src/metrics-feature"
|
|
|
|
export default class ClusterMetricsFeatureExtension extends LensRendererExtension {
|
|
registerClusterFeatures(registry: Registry.ClusterFeatureRegistry) {
|
|
this.disposers.push(
|
|
registry.add({
|
|
title: "Metrics Stack",
|
|
description: "Enable timeseries data visualization (Prometheus stack) for your cluster.",
|
|
feature: new MetricsFeature()
|
|
})
|
|
)
|
|
}
|
|
}
|