repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/configmap_test.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/configmap_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "context" "testing" rsutility "github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/controllers/analyt...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/helper.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/helper.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "context" mcov1beta2 "github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/api/v1beta2" rsutility "git...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/policy_test.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/policy_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "context" "testing" monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" "github.com/stretchr/testify/asse...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/placement_test.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/placement_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "context" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "k8s.io/apimachinery/pkg/runtime" "k8s.io/api...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/helper_test.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/helper_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "context" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" corev1 "k8s.io/api/core/v1" metav1 "k...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/prometheusrule_test.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/prometheusrule_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "testing" rsutility "github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/controllers/analytics/rightsi...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/placementbinding.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/placementbinding.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "context" rsutility "github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/controllers/analytics/rightsi...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/placementbinding_test.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/placementbinding_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "context" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "k8s.io/apimachinery/pkg/runtime" "k8s.io/api...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/configmap.go
operators/multiclusterobservability/controllers/analytics/rightsizing/rs-virtualization/configmap.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rsvirtualization import ( "context" rsutility "github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/controllers/analytics/rightsi...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta1/zz_generated.deepcopy.go
operators/multiclusterobservability/api/v1beta1/zz_generated.deepcopy.go
//go:build !ignore_autogenerated /* Copyright 2021. 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 i...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta1/multiclusterobservability_types.go
operators/multiclusterobservability/api/v1beta1/multiclusterobservability_types.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package v1beta1 import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" observabilityshared "github.com/stolostron/multicluster-observability-operator...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta1/groupversion_info.go
operators/multiclusterobservability/api/v1beta1/groupversion_info.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 // Package v1beta1 contains API Schema definitions for the observability v1beta1 API group // +kubebuilder:object:generate=true // +groupName=observability.open-cluster-management.io...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta1/multiclusterobservability_conversion.go
operators/multiclusterobservability/api/v1beta1/multiclusterobservability_conversion.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package v1beta1 /* For imports, we'll need the controller-runtime [`conversion`](https://godoc.org/sigs.k8s.io/controller-runtime/pkg/conversion) package, plus the API version for o...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta1/observabilityaddon_types.go
operators/multiclusterobservability/api/v1beta1/observabilityaddon_types.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" observabilityshared "github.com/stolostron/multicluster-observability-operator/operators/multiclusterobserv...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta2/zz_generated.deepcopy.go
operators/multiclusterobservability/api/v1beta2/zz_generated.deepcopy.go
//go:build !ignore_autogenerated /* Copyright 2021. 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 i...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta2/multiclusterobservability_types.go
operators/multiclusterobservability/api/v1beta2/multiclusterobservability_types.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package v1beta2 import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" observabilityshared "github.com/stolostron/multicluster-observability-operator...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta2/groupversion_info.go
operators/multiclusterobservability/api/v1beta2/groupversion_info.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 // Package v1beta2 contains API Schema definitions for the observability v1beta2 API group // +kubebuilder:object:generate=true // +groupName=observability.open-cluster-management.io...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta2/multiclusterobservability_conversion.go
operators/multiclusterobservability/api/v1beta2/multiclusterobservability_conversion.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package v1beta2 /* Implementing the hub method is pretty easy -- we just have to add an empty method called `Hub()` to serve as a [marker](https://godoc.org/sigs.k8s.io/controller-r...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/v1beta2/multiclusterobservability_webhook.go
operators/multiclusterobservability/api/v1beta2/multiclusterobservability_webhook.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package v1beta2 import ( "context" "fmt" "strings" "gopkg.in/yaml.v2" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/ap...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/shared/zz_generated.deepcopy.go
operators/multiclusterobservability/api/shared/zz_generated.deepcopy.go
//go:build !ignore_autogenerated /* Copyright 2021. 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 i...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/api/shared/multiclusterobservability_shared.go
operators/multiclusterobservability/api/shared/multiclusterobservability_shared.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 // Package shared contains shared API Schema definitions for the observability API group // +kubebuilder:object:generate=true // +groupName=observability.open-cluster-management.io ...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/main.go
operators/endpointmetrics/main.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package main import ( "flag" "fmt" "os" "runtime" "strconv" "time" // Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.) // to ensure that exec-entrypo...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/collector/match_evaluator_test.go
operators/endpointmetrics/pkg/collector/match_evaluator_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package collector import ( "testing" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) func TestEvluateMatchExpression(t *testing.T) { caseList := []struct { name str...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/collector/metrics_collector.go
operators/endpointmetrics/pkg/collector/metrics_collector.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package collector import ( "context" "fmt" "regexp" "sort" "strconv" "strings" "time" "github.com/go-logr/logr" monitoringv1 "github.com/prometheus-operator/prometheus-ope...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
true
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/collector/match_evaluator.go
operators/endpointmetrics/pkg/collector/match_evaluator.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package collector import ( "slices" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) func evaluateMatchExpression(expr metav1.LabelSelectorRequirement, key, value string) bool { ...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/collector/metrics_collector_test.go
operators/endpointmetrics/pkg/collector/metrics_collector_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package collector_test import ( "context" "fmt" "maps" "slices" "sort" "testing" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/error...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/util/lease.go
operators/endpointmetrics/pkg/util/lease.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package util import ( "context" "os" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" ctrl "sigs.k8s.io/controller-runtime" "open-cl...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/util/client.go
operators/endpointmetrics/pkg/util/client.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package util import ( "fmt" oav1beta2 "github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/api/v1beta2" "k8s.io/apimachinery/pkg/runtim...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/util/error.go
operators/endpointmetrics/pkg/util/error.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package util import ( "net" "k8s.io/apimachinery/pkg/api/errors" ) // IsTransientClientErr checks if the error is a transient error // This suggests that a retry (without any ch...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/openshift/openshift_test.go
operators/endpointmetrics/pkg/openshift/openshift_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package openshift_test import ( "context" "testing" "github.com/go-logr/logr" hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1" promv1 "github.com/prometheus-op...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/openshift/openshift.go
operators/endpointmetrics/pkg/openshift/openshift.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package openshift import ( "context" "fmt" "reflect" "github.com/go-logr/logr" ocinfrav1 "github.com/openshift/api/config/v1" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/openshift/cmowatcher_test.go
operators/endpointmetrics/pkg/openshift/cmowatcher_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package openshift import ( "context" "fmt" "testing" "time" "github.com/go-logr/logr" oav1beta1 "github.com/stolostron/multicluster-observability-operator/operators/multiclus...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/openshift/cmowatcher.go
operators/endpointmetrics/pkg/openshift/cmowatcher.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package openshift import ( "context" "errors" "fmt" "math" "time" // "github.com/stolostron/multicluster-observability-operator/collectors/metrics/pkg/status" "github.com/go...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/rendering/renderer.go
operators/endpointmetrics/pkg/rendering/renderer.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rendering import ( "context" "fmt" "os" "strconv" "strings" prometheusv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" v1 "k8s.io/api/a...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/rendering/renderer_test.go
operators/endpointmetrics/pkg/rendering/renderer_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package rendering import ( "context" "os" "path" "testing" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "sigs...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/rendering/templates/templates.go
operators/endpointmetrics/pkg/rendering/templates/templates.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package templates import ( "sigs.k8s.io/kustomize/api/resource" "github.com/stolostron/multicluster-observability-operator/operators/pkg/rendering/templates" ) // GetTemplates r...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/rendering/templates/templates_test.go
operators/endpointmetrics/pkg/rendering/templates/templates_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package templates import ( "os" "path" "testing" templatesutil "github.com/stolostron/multicluster-observability-operator/operators/pkg/rendering/templates" ) func TestGetCore...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/microshift/microshift.go
operators/endpointmetrics/pkg/microshift/microshift.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package microshift import ( "context" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/clie...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/hypershift/hypershift.go
operators/endpointmetrics/pkg/hypershift/hypershift.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package hypershift import ( "context" "fmt" "reflect" "strings" hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1" promv1 "github.com/prometheus-operator/promet...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/pkg/hypershift/hypershift_test.go
operators/endpointmetrics/pkg/hypershift/hypershift_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package hypershift_test import ( "context" "fmt" "testing" hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1" promv1 "github.com/prometheus-operator/prometheus-o...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/cmd/cmo-config-revert/main.go
operators/endpointmetrics/cmd/cmo-config-revert/main.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package main import ( "context" "flag" "log" "time" "github.com/stolostron/multicluster-observability-operator/operators/endpointmetrics/controllers/observabilityendpoint" "...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/version/version.go
operators/endpointmetrics/version/version.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package version var ( Version = "0.0.1" )
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/observabilityendpoint/ocp_monitoring_config_test.go
operators/endpointmetrics/controllers/observabilityendpoint/ocp_monitoring_config_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package observabilityendpoint import ( "context" "encoding/json" "strings" "testing" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachi...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
true
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/observabilityendpoint/predicate_func.go
operators/endpointmetrics/controllers/observabilityendpoint/predicate_func.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package observabilityendpoint import ( "fmt" "reflect" "strings" v1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" "sigs.k8s.io/controller-runtime/pkg/event" "sigs.k8s.io/...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/observabilityendpoint/ocp_monitoring_config.go
operators/endpointmetrics/controllers/observabilityendpoint/ocp_monitoring_config.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package observabilityendpoint import ( "context" "fmt" "net/url" "reflect" "strings" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/equality" "k8s.io/apimachinery...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/observabilityendpoint/predicate_func_test.go
operators/endpointmetrics/controllers/observabilityendpoint/predicate_func_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package observabilityendpoint import ( "testing" appsv1 "k8s.io/api/apps/v1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runt...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/observabilityendpoint/observabilityaddon_controller_test.go
operators/endpointmetrics/controllers/observabilityendpoint/observabilityaddon_controller_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package observabilityendpoint import ( "context" "os" "testing" "time" "github.com/go-logr/logr" ocinfrav1 "github.com/openshift/api/config/v1" hyperv1 "github.com/openshift...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/observabilityendpoint/observabilityaddon_controller_integration_test.go
operators/endpointmetrics/controllers/observabilityendpoint/observabilityaddon_controller_integration_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 //go:build integration package observabilityendpoint import ( "context" "fmt" "os" "path/filepath" "testing" "time" yaml2 "github.com/ghodss/yaml" ocinfrav1 "github.com/op...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/observabilityendpoint/observabilityaddon_controller.go
operators/endpointmetrics/controllers/observabilityendpoint/observabilityaddon_controller.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package observabilityendpoint import ( "context" "errors" "fmt" "os" "golang.org/x/exp/slices" "gopkg.in/yaml.v2" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" r...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/status/status_controller_integration_test.go
operators/endpointmetrics/controllers/status/status_controller_integration_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 //go:build integration package status import ( "context" "os" "testing" "time" "github.com/stolostron/multicluster-observability-operator/operators/endpointmetrics/pkg/util" ...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/status/status_controller_test.go
operators/endpointmetrics/controllers/status/status_controller_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package status_test import ( "context" "errors" "fmt" "net" "reflect" "sort" "testing" "time" "github.com/go-logr/logr" "github.com/stretchr/testify/assert" apiErrors "k...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/endpointmetrics/controllers/status/status_controller.go
operators/endpointmetrics/controllers/status/status_controller.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package status import ( "context" "fmt" "net" "reflect" "sort" "time" "github.com/go-logr/logr" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/m...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/examples/gen.go
examples/gen.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package main /* How to generate minio certs: 1. run `go run gen.go` to re-generate certs. 2. run `oc create secret generic minio-tls-secret --from-file=ca.crt=./minio-tls/certs/ca.c...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/loaders/dashboards/pkg/controller/dashboard_controller_test.go
loaders/dashboards/pkg/controller/dashboard_controller_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package controller import ( "context" stdlog "log" "net/http" "os" "testing" "time" "gopkg.in/yaml.v2" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/met...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/loaders/dashboards/pkg/controller/dashboard_controller.go
loaders/dashboards/pkg/controller/dashboard_controller.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package controller import ( "bytes" "context" "encoding/json" "errors" "fmt" "net/http" "os" "regexp" "strconv" "strings" "time" corev1 "k8s.io/api/core/v1" metav1 "k8...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/loaders/dashboards/pkg/util/grafana_util.go
loaders/dashboards/pkg/util/grafana_util.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package util import ( "encoding/hex" "hash/fnv" "io" "net/http" "time" "k8s.io/klog" ) const ( defaultAdmin = "WHAT_YOU_ARE_DOING_IS_VOIDING_SUPPORT_00000000000000000000000...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/loaders/dashboards/pkg/util/grafana_util_test.go
loaders/dashboards/pkg/util/grafana_util_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package util import ( stdlog "log" "net/http" "testing" "time" ) func TestGenerateUID(t *testing.T) { uid, _ := GenerateUID("open-cluster-management", "test") if uid != "ope...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/loaders/dashboards/cmd/main.go
loaders/dashboards/cmd/main.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package main import ( "flag" "os" "os/signal" "syscall" "github.com/spf13/pflag" "k8s.io/klog" "github.com/stolostron/multicluster-observability-operator/loaders/dashboards...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/forwarder/token_test.go
collectors/metrics/pkg/forwarder/token_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package forwarder import ( "context" "crypto/ed25519" "crypto/rand" "fmt" "os" "path/filepath" "testing" "time" "github.com/go-kit/log" "github.com/golang-jwt/jwt/v5" "g...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/forwarder/token.go
collectors/metrics/pkg/forwarder/token.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package forwarder import ( "context" "errors" "fmt" "os" "strings" "sync" "time" "github.com/go-kit/log" "github.com/golang-jwt/jwt/v5" rlogger "github.com/stolostron/mul...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/forwarder/forwarder.go
collectors/metrics/pkg/forwarder/forwarder.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package forwarder import ( "context" "crypto/tls" "crypto/x509" "encoding/json" "errors" "fmt" "net/http" "net/url" "os" "strings" "sync" "time" "github.com/go-kit/log...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/forwarder/forwarder_test.go
collectors/metrics/pkg/forwarder/forwarder_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package forwarder import ( "net/url" "os" "testing" "github.com/go-kit/log" "github.com/prometheus/client_golang/prometheus" ) // Base64 encoded CA cert string var customCA =...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/anonymize.go
collectors/metrics/pkg/metricfamily/anonymize.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "crypto/sha256" "encoding/base64" clientmodel "github.com/prometheus/client_model/go" ) type AnonymizeMetrics struct { salt string global ...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/hypershift_transformer.go
collectors/metrics/pkg/metricfamily/hypershift_transformer.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "context" "fmt" "github.com/go-kit/log" hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1" prom "github.com/prometheus/client_model...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/sort.go
collectors/metrics/pkg/metricfamily/sort.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "sort" clientmodel "github.com/prometheus/client_model/go" ) func SortMetrics(family *clientmodel.MetricFamily) (bool, error) { sort.Sort(MetricsB...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/invalid.go
collectors/metrics/pkg/metricfamily/invalid.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "errors" "fmt" "time" clientmodel "github.com/prometheus/client_model/go" ) type errorInvalidFederateSamples struct { min int64 } func NewError...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/hypershift_transformer_test.go
collectors/metrics/pkg/metricfamily/hypershift_transformer_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "context" "os" "testing" "github.com/go-kit/log" hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1" prom "github.com/prometheus/cl...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/elide_test.go
collectors/metrics/pkg/metricfamily/elide_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "fmt" "testing" "github.com/golang/protobuf/proto" clientmodel "github.com/prometheus/client_model/go" ) func TestElide(t *testing.T) { family :...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/empty.go
collectors/metrics/pkg/metricfamily/empty.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import clientmodel "github.com/prometheus/client_model/go" func DropEmptyFamilies(family *clientmodel.MetricFamily) (bool, error) { for _, m := range family.M...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/multi_transformer.go
collectors/metrics/pkg/metricfamily/multi_transformer.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( clientmodel "github.com/prometheus/client_model/go" ) type MultiTransformer struct { transformers []Transformer builderFuncs []func() Transformer }...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/transform_test.go
collectors/metrics/pkg/metricfamily/transform_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "reflect" "testing" clientmodel "github.com/prometheus/client_model/go" ) func family(name string, timestamps ...int64) *clientmodel.MetricFamily ...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/none.go
collectors/metrics/pkg/metricfamily/none.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import clientmodel "github.com/prometheus/client_model/go" func None(*clientmodel.MetricFamily) (bool, error) { return true, nil }
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/transform.go
collectors/metrics/pkg/metricfamily/transform.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( clientmodel "github.com/prometheus/client_model/go" ) type Transformer interface { Transform(*clientmodel.MetricFamily) (ok bool, err error) } type...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/drop_timestamp_test.go
collectors/metrics/pkg/metricfamily/drop_timestamp_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "fmt" "testing" clientmodel "github.com/prometheus/client_model/go" ) func TestDropTimestamp(t *testing.T) { family := func(name string, metrics...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/required.go
collectors/metrics/pkg/metricfamily/required.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "errors" "fmt" clientmodel "github.com/prometheus/client_model/go" ) type requireLabel struct { labels map[string]string } func NewRequiredLabel...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/whitelist.go
collectors/metrics/pkg/metricfamily/whitelist.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( clientmodel "github.com/prometheus/client_model/go" "github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/promql/parser"...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/elide.go
collectors/metrics/pkg/metricfamily/elide.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( prom "github.com/prometheus/client_model/go" ) type elide struct { labelSet map[string]struct{} } // NewElide creates a new elide transformer for t...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/rename.go
collectors/metrics/pkg/metricfamily/rename.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import clientmodel "github.com/prometheus/client_model/go" type RenameMetrics struct { Names map[string]string } func (m RenameMetrics) Transform(family *cli...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/drop_unsorted.go
collectors/metrics/pkg/metricfamily/drop_unsorted.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import clientmodel "github.com/prometheus/client_model/go" type DropUnsorted struct { timestamp int64 } func (o *DropUnsorted) Transform(family *clientmodel....
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/drop_timestamp.go
collectors/metrics/pkg/metricfamily/drop_timestamp.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import clientmodel "github.com/prometheus/client_model/go" // DropTimestamp is a transformer that removes timestamps from metrics. func DropTimestamp(family *c...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/pack.go
collectors/metrics/pkg/metricfamily/pack.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import clientmodel "github.com/prometheus/client_model/go" func PackMetrics(family *clientmodel.MetricFamily) (bool, error) { metrics := family.Metric j := l...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/unsorted.go
collectors/metrics/pkg/metricfamily/unsorted.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "errors" clientmodel "github.com/prometheus/client_model/go" ) var ( ErrUnsorted = errors.New("metrics in provided family are not in increa...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/expired.go
collectors/metrics/pkg/metricfamily/expired.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "time" clientmodel "github.com/prometheus/client_model/go" ) type dropExpiredSamples struct { min int64 } func NewDropExpiredSamples(min time.Tim...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/count.go
collectors/metrics/pkg/metricfamily/count.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import clientmodel "github.com/prometheus/client_model/go" type Count struct { families int metrics int } func (t *Count) Metrics() int { return t.metrics ...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/whitelist_test.go
collectors/metrics/pkg/metricfamily/whitelist_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "fmt" "reflect" "testing" clientmodel "github.com/prometheus/client_model/go" ) func familyWithLabels(name string, labels ...[]*clientmodel.Label...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricfamily/label.go
collectors/metrics/pkg/metricfamily/label.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricfamily import ( "sync" clientmodel "github.com/prometheus/client_model/go" "github.com/prometheus/prometheus/prompb" "golang.org/x/exp/slices" ) type LabelRetrie...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/logger/logger.go
collectors/metrics/pkg/logger/logger.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package logger import ( "fmt" "os" "github.com/go-kit/log" "github.com/go-kit/log/level" ) type LogLevel string const ( Debug LogLevel = "debug" Info LogLevel = "info" Wa...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricsclient/metricsclient_test.go
collectors/metrics/pkg/metricsclient/metricsclient_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricsclient import ( "bytes" "context" "fmt" "net/http" "net/http/httptest" "reflect" "testing" "time" "github.com/go-kit/log" "github.com/gogo/protobuf/proto" ...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/metricsclient/metricsclient.go
collectors/metrics/pkg/metricsclient/metricsclient.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package metricsclient import ( "bytes" "context" "crypto/tls" "crypto/x509" "encoding/base64" "encoding/json" "errors" "fmt" "io" "net" "net/http" "net/url" "os" "path...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/collectrule/evaluator_test.go
collectors/metrics/pkg/collectrule/evaluator_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package collectrule import ( "os" "testing" "time" "github.com/go-kit/log" clientmodel "github.com/prometheus/client_model/go" "github.com/prometheus/prometheus/model/labels"...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/collectrule/evaluator.go
collectors/metrics/pkg/collectrule/evaluator.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package collectrule import ( "context" "encoding/json" "fmt" "net/http" "net/url" "regexp" "strings" "sync" "time" "github.com/go-kit/log" clientmodel "github.com/promet...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/reader/reader.go
collectors/metrics/pkg/reader/reader.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package reader import ( "errors" "io" ) var ErrTooLong = errors.New("the incoming sample data is too long") // LimitReader returns a Reader that reads from r // but stops with E...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/reader/reader_test.go
collectors/metrics/pkg/reader/reader_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package reader import ( "bytes" "io" "strings" "testing" ) func TestRead(t *testing.T) { tests := []struct { name string input string expectedString s...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/simulator/simulator_test.go
collectors/metrics/pkg/simulator/simulator_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package simulator import ( "testing" ) func TestFetchSimulatedTimeseries(t *testing.T) { _, err := FetchSimulatedTimeseries("../../testdata/timeseries.txt") if err != nil { t....
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/simulator/simulator.go
collectors/metrics/pkg/simulator/simulator.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package simulator import ( "bytes" "crypto/rand" "fmt" "io" "math/big" "os" "path/filepath" "strconv" "strings" "time" "github.com/go-kit/log" clientmodel "github.com/...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/status/status.go
collectors/metrics/pkg/status/status.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package status import ( "context" "log/slog" "os" "github.com/go-kit/log" "github.com/go-logr/logr" "sigs.k8s.io/controller-runtime/pkg/client" "github.com/stolostron/multi...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/status/status_test.go
collectors/metrics/pkg/status/status_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package status import ( "context" "os" "testing" "time" "github.com/go-kit/log" "github.com/stretchr/testify/assert" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/a...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/http/roundtripper.go
collectors/metrics/pkg/http/roundtripper.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package http import ( "bytes" "encoding/hex" "fmt" "io" "net/http" "net/http/httputil" "unicode/utf8" "github.com/go-kit/log" "github.com/stolostron/multicluster-observab...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/pkg/http/routes.go
collectors/metrics/pkg/http/routes.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package http import ( "fmt" "net/http" "net/http/pprof" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" ) // DebugR...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false
stolostron/multicluster-observability-operator
https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/cmd/metrics-collector/main_test.go
collectors/metrics/cmd/metrics-collector/main_test.go
// Copyright (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // Licensed under the Apache License 2.0 package main import ( "context" "fmt" stdlog "log" "net/http" "net/http/httptest" "os" "strings" "testing" "time" "github.com/go-kit/log" "github.com/go-kit/log/level" ...
go
Apache-2.0
a116fae78ab8eb55e54c9a9bdabdc478c9a309be
2026-01-07T09:45:49.228954Z
false