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 ¶
- Variables
- func Float64frombytes(bytes []byte) float64
- func RecordAppPodsCount(count int, clusterName, slice, ns string)
- func RecordServicecExportAvailableEndpointsCount(count int, clusterName, slice, ns, svc string)
- func SinceInMilliseconds(startTime time.Time) float64
- func SinceInseconds(startTime time.Time) float64
Constants ¶
This section is empty.
Variables ¶
var ( ClusterName = monitoring.MustCreateLabel("clusterName") Namespace = monitoring.MustCreateLabel("namespace") Slice = monitoring.MustCreateLabel("slice") Service = monitoring.MustCreateLabel("service") )
Declare labels
Functions ¶
func Float64frombytes ¶
Float64frombytes converts bytes to float
func RecordAppPodsCount ¶
RecordAppPodsCount records currently active app pod count in prometheus
func RecordServicecExportAvailableEndpointsCount ¶
RecordServicecExportAvailableEndpointsCount records currently active serviceexports endpoints
func SinceInMilliseconds ¶
SinceInMilliseconds produces time difference in milliseconds
func SinceInseconds ¶
SinceInseconds produces time difference in seconds
Types ¶
This section is empty.