cortex

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cortex provides methods to query data from our central Prometheus data store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster added in v1.1.0

type Cluster struct {
	Installation   string
	ID             string
	Release        string
	Provider       string
	FirstTimestamp time.Time
}

Cluster represents a workload cluster.

type Config

type Config struct {
	// URL of the prometheus API server.
	URL string
	// UserName for authentication with the API server.
	UserName string
	// Password (API token) for authentication with the API server.
	Password string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(conf Config) (*Service, error)

func (Service) QueryClusters

func (s Service) QueryClusters() ([]Cluster, error)

QueryClusters queries cortex for a list of workload clusters that existed in time series at a given point in time. Returns a slice of Clusters.

Jump to

Keyboard shortcuts

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