k3s-dashboard-go

command module
v0.0.0-...-40ba15b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

k3s-dashboard-go

commands to test requests

kubectl run -i --tty alpine --image=alpine --restart=Never -- sh
# nodes:           count(kube_node_info)
# cpu:             (1-avg(rate(node_cpu_seconds_total{mode="idle", cluster=""}[5m])))*100
# memory:          (1 - sum(:node_memory_MemAvailable_bytes:sum{cluster=""}) / sum(kube_node_status_allocatable_memory_bytes{cluster=""}))*100
# pod count:       sum(kubelet_running_pods{cluster="", job="kubelet", metrics_path="/metrics"})
# container count: sum(kubelet_running_containers{cluster="", job="kubelet", metrics_path="/metrics"})
# build info:      kubernetes_build_info

curl 'http://prometheus-kube-prometheus-prometheus.prometheus.svc.cluster.local:9090/api/v1/query?query=<metric-query-urlencoded>'

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
Package cmd has all commands
Package cmd has all commands

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL