mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-05 22:32:20 +01:00
lib/promscrape/discovery/kubernetes: update stale comments
This commit is contained in:
parent
da05904638
commit
6764efde39
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"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) {
|
func GetEndpointsLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||||
data, err := getAPIResponse(cfg, "endpoints", "/api/v1/endpoints")
|
data, err := getAPIResponse(cfg, "endpoints", "/api/v1/endpoints")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"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) {
|
func GetIngressesLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||||
data, err := getAPIResponse(cfg, "ingress", "/apis/extensions/v1beta1/ingresses")
|
data, err := getAPIResponse(cfg, "ingress", "/apis/extensions/v1beta1/ingresses")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"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) {
|
func GetNodesLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||||
data, err := getAPIResponse(cfg, "node", "/api/v1/nodes")
|
data, err := getAPIResponse(cfg, "node", "/api/v1/nodes")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"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) {
|
func GetPodsLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||||
pods, err := getPods(cfg)
|
pods, err := getPods(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"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) {
|
func GetServicesLabels(cfg *APIConfig) ([]map[string]string, error) {
|
||||||
svcs, err := getServices(cfg)
|
svcs, err := getServices(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user