mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: Update Kubernetes detail views to use Navigation.getLastParamAsString for improved parameter handling
feat: Increase memory limits in Helm chart configuration for better resource management feat: Add resourceSpecs configuration to values schema for enhanced dashboard detail views
This commit is contained in:
@@ -30,7 +30,7 @@ const KubernetesClusterContainerDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const containerName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const containerName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -33,7 +33,7 @@ const KubernetesClusterCronJobDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const cronJobName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const cronJobName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -33,7 +33,7 @@ const KubernetesClusterDaemonSetDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const daemonSetName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const daemonSetName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -33,7 +33,7 @@ const KubernetesClusterDeploymentDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const deploymentName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const deploymentName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -33,7 +33,7 @@ const KubernetesClusterJobDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const jobName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const jobName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -33,7 +33,7 @@ const KubernetesClusterNamespaceDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const namespaceName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const namespaceName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -30,7 +30,7 @@ const KubernetesClusterNodeDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const nodeName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const nodeName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -35,7 +35,7 @@ const KubernetesClusterPodDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const podName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const podName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -33,7 +33,7 @@ const KubernetesClusterStatefulSetDetail: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
const statefulSetName: string = Navigation.getLastParam()?.toString() || "";
|
||||
const statefulSetName: string = Navigation.getLastParamAsString();
|
||||
|
||||
const [cluster, setCluster] = useState<KubernetesCluster | null>(null);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
@@ -161,8 +161,8 @@ data:
|
||||
# Limit memory usage
|
||||
memory_limiter:
|
||||
check_interval: 5s
|
||||
limit_mib: 1500
|
||||
spike_limit_mib: 300
|
||||
limit_mib: 3000
|
||||
spike_limit_mib: 600
|
||||
|
||||
exporters:
|
||||
otlphttp:
|
||||
|
||||
@@ -184,6 +184,21 @@
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"resourceSpecs": {
|
||||
"type": "object",
|
||||
"description": "Pull full K8s resource specs for dashboard detail views (labels, annotations, env vars, status, etc.)",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Enable pulling full resource specs via k8sobjects receiver"
|
||||
},
|
||||
"interval": {
|
||||
"type": "string",
|
||||
"description": "How often to pull resource specs (e.g., 300s, 5m)"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"collectionInterval": {
|
||||
"type": "string",
|
||||
"description": "Collection interval for metrics (e.g., 30s, 1m)"
|
||||
|
||||
@@ -30,10 +30,10 @@ deployment:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 512Mi
|
||||
memory: 1Gi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 2Gi
|
||||
memory: 4Gi
|
||||
|
||||
# Control plane monitoring (etcd, API server, scheduler, controller manager)
|
||||
# Disabled by default — enable for self-managed clusters.
|
||||
|
||||
Reference in New Issue
Block a user