metrics

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

* Copyright (c) 2022 Avesha, Inc. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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.

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterName = monitoring.MustCreateLabel("clusterName")
	Namespace   = monitoring.MustCreateLabel("namespace")
	Slice       = monitoring.MustCreateLabel("slice")
	Service     = monitoring.MustCreateLabel("service")
)

Declare labels

Functions

func Float64frombytes

func Float64frombytes(bytes []byte) float64

Float64frombytes converts bytes to float

func RecordAppPodsCount

func RecordAppPodsCount(count int, clusterName, slice, ns string)

RecordAppPodsCount records currently active app pod count in prometheus

func RecordServicecExportAvailableEndpointsCount

func RecordServicecExportAvailableEndpointsCount(count int, clusterName, slice, ns, svc string)

RecordServicecExportAvailableEndpointsCount records currently active serviceexports endpoints

func SinceInMilliseconds

func SinceInMilliseconds(startTime time.Time) float64

SinceInMilliseconds produces time difference in milliseconds

func SinceInseconds

func SinceInseconds(startTime time.Time) float64

SinceInseconds produces time difference in seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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