promemanager

package
v1.0.4-0...-d8282c0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. * PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2. * See LICENSE file for more details. * Author: Wangjunqi123 <wangjunqi@kylinos.cn> * Date: Mon Nov 4 14:30:13 2024 +0800

* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. * PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2. * See LICENSE file for more details. * Author: Wangjunqi123 <wangjunqi@kylinos.cn> * Date: Mon Nov 4 14:30:13 2024 +0800

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

type Prometheus struct {
	Api v1.API
	Ctx context.Context
	// contains filtered or unexported fields
}
var Global_Prome *Prometheus

func CreatePrometheus

func CreatePrometheus(url string) *Prometheus

func (*Prometheus) CreateAPI

func (p *Prometheus) CreateAPI() error

func (*Prometheus) GetMetrics

func (p *Prometheus) GetMetrics() ([]string, error)

func (*Prometheus) GetTargets

func (p *Prometheus) GetTargets() ([]map[string]string, error)

type Target

type Target struct {
	Instance string            `json:"instance"`
	Job      string            `json:"job"`
	Metrics  map[string]string `json:"metrics"`
}

Jump to

Keyboard shortcuts

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