mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
26 lines
940 B
TypeScript
26 lines
940 B
TypeScript
import { Registry, LensRendererExtension } from "@k8slens/extensions"
|
|
import { MetricsFeature } from "./src/metrics-feature"
|
|
import React from "react"
|
|
|
|
export default class ClusterMetricsFeatureExtension extends LensRendererExtension {
|
|
registerClusterFeatures(registry: Registry.ClusterFeatureRegistry) {
|
|
this.disposers.push(
|
|
registry.add({
|
|
title: "Metrics Stack",
|
|
components: {
|
|
Description: () => {
|
|
return (
|
|
<span>
|
|
Enable timeseries data visualization (Prometheus stack) for your cluster.
|
|
Install this only if you don't have existing Prometheus stack installed.
|
|
You can see preview of manifests <a href="https://github.com/lensapp/lens/tree/master/extensions/lens-metrics/resources" target="_blank">here</a>.
|
|
</span>
|
|
)
|
|
}
|
|
},
|
|
feature: new MetricsFeature()
|
|
})
|
|
)
|
|
}
|
|
}
|