You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create OpenShift dashboard to visualize Collector metrics (open-telemetry#2996)
* Create OpenShift dashboard to visualize Collector metrics open-telemetry#2995
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
* Add documentation
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
* Typo
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
* Change the dashboard to be a runnable
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
* Apply changes requested in code review
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
* Change flag
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
---------
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2
+
change_type: enhancement
3
+
4
+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5
+
component: collector
6
+
7
+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8
+
note: Create automatically an OpenShift dashboard to visualize OpenTelemetry Collector metrics
9
+
10
+
# One or more tracking issues related to the change
11
+
issues: [2995]
12
+
13
+
# (Optional) One or more lines of additional information to render under the primary note.
14
+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15
+
# Use pipe (|) for multiline entries.
16
+
subtext: To enable this feature, you need to specify the `--openshift-create-dashboard` argument to the operator
// Licensed under the Apache License, Version 2.0 (the "License");
4
+
// you may not use this file except in compliance with the License.
5
+
// You may obtain a copy of the License at
6
+
//
7
+
// http://www.apache.org/licenses/LICENSE-2.0
8
+
//
9
+
// Unless required by applicable law or agreed to in writing, software
10
+
// distributed under the License is distributed on an "AS IS" BASIS,
11
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+
// See the License for the specific language governing permissions and
13
+
// limitations under the License.
14
+
15
+
package openshift
16
+
17
+
import (
18
+
"context"
19
+
_ "embed"
20
+
21
+
corev1 "k8s.io/api/core/v1"
22
+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23
+
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24
+
"k8s.io/client-go/kubernetes"
25
+
)
26
+
27
+
// The dashboard is created manually following the syntax from Grafana 5. For development purposes, this dashboard can be created just by loading the JSON file
28
+
// in a ConfigMap from the openshift-config-managed and adding the console.openshift.io/dashboard=true label.
"Enable leader election for controller manager. "+
148
150
"Enabling this will ensure there is only one active controller manager.")
149
151
pflag.BoolVar(&createRBACPermissions, "create-rbac-permissions", false, "Automatically create RBAC permissions needed by the processors (deprecated)")
152
+
pflag.BoolVar(&createOpenShiftDashboard, "openshift-create-dashboard", false, "Create an OpenShift dashboard for monitoring the OpenTelemetryCollector instances")
150
153
pflag.BoolVar(&enableMultiInstrumentation, "enable-multi-instrumentation", false, "Controls whether the operator supports multi instrumentation")
0 commit comments