mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape/discovery/kubernetes: update stale comments
This commit is contained in:
parent
da05904638
commit
6764efde39
5 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
)
|
||||
|
||||
// GetEndpointsLabels returns labels for k8s endpoints obtained from the given apiServer
|
||||
// GetEndpointsLabels returns labels for k8s endpoints obtained from the given cfg.
|
||||
func GetEndpointsLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||
data, err := getAPIResponse(cfg, "endpoints", "/api/v1/endpoints")
|
||||
if err != nil {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
)
|
||||
|
||||
// GetIngressesLabels returns labels for k8s ingresses obtained from the given apiServer
|
||||
// GetIngressesLabels returns labels for k8s ingresses obtained from the given cfg.
|
||||
func GetIngressesLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||
data, err := getAPIResponse(cfg, "ingress", "/apis/extensions/v1beta1/ingresses")
|
||||
if err != nil {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
)
|
||||
|
||||
// GetNodesLabels returns labels for k8s nodes obtained from the given apiServer.
|
||||
// GetNodesLabels returns labels for k8s nodes obtained from the given cfg.
|
||||
func GetNodesLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||
data, err := getAPIResponse(cfg, "node", "/api/v1/nodes")
|
||||
if err != nil {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
// GetPodsLabels returns labels for k8s pods obtained from the given apiServer
|
||||
// GetPodsLabels returns labels for k8s pods obtained from the given cfg
|
||||
func GetPodsLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||
pods, err := getPods(cfg)
|
||||
if err != nil {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
)
|
||||
|
||||
// GetServicesLabels returns labels for k8s services obtained from the given apiServer
|
||||
// GetServicesLabels returns labels for k8s services obtained from the given cfg.
|
||||
func GetServicesLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||
svcs, err := getServices(cfg)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue