Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create OpenShift dashboard to visualize Collector metrics #2996

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iblancasa
Copy link
Contributor

Description: this PR adds the creation of OpenShift dashboards to monitor OpenTelemetry Collector instances.

@iblancasa iblancasa requested a review from a team as a code owner May 29, 2024 13:46
main.go Show resolved Hide resolved
internal/openshift/dashboards/openshift.go Outdated Show resolved Hide resolved
internal/openshift/dashboards/openshift_test.go Outdated Show resolved Hide resolved
main.go Outdated
err = openshiftDashboards.CreateOpenShiftDashboard(clientset)
if err == nil {
ctrl.Log.Info("OpenShift dashboard for OpenTelemetryCollector monitoring created")
defer openshiftDashboards.DeleteOpenShiftDashboard(clientset, ctrl.Log)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this? Otherwise we could use context.AfterFunc on the context returned from ctrl.SetupSignalHandler()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a vanilla grafana dashboard or OCP-specific? It would be great to document how this dashboard can be created/updated.

Copy link
Contributor Author

@iblancasa iblancasa Jul 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where should I document it? So that you know, the creation of this dashboard is reported in the release notes + flag. Regarding editing.. changes will be overwritten on operator restarts or upgrades.
It is Grafana 5 syntax.

…try#2995

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create OpenShift metrics dashboards from the operator
3 participants