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

Add a tutorial on creating a simple Grafana dashboard #5251

Merged
merged 10 commits into from Aug 8, 2019

Conversation

kazydek
Copy link

@kazydek kazydek commented Aug 8, 2019

Description

Changes proposed in this pull request:

  • Added a dashboard on creating and configuring a simple Grafana dashboard of a Gauge type.

Related issue(s)
See also #4884

@kazydek kazydek added area/documentation Issues or PRs related to documentation area/monitoring Issues or PRs related to the monitoring module (deprecated) quality/content labels Aug 8, 2019
Copy link
Contributor

@mmitoraj mmitoraj left a comment

Choose a reason for hiding this comment

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

See my comments below.


![New dashboard](./assets/new-dashboard.png)

5. Select the **Instant** query to be able to retrieve the last value for each time series.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
5. Select the **Instant** query to be able to retrieve the last value for each time series.
5. Toggle the **Instant** query to be able to retrieve the last value for each time series.

Just a suggestion to avoid Select. However, I don't understand the last part: "to be able to retrieve the last value for each time series."

Copy link
Author

Choose a reason for hiding this comment

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

You are right, that's not too clear :) I will update it. The idea is that this option allows you to retrieve the "instant" data from the metric.


![Gauge dashboard type](./assets/gauge-dashboard-type.png)

7. Save the changes by clicking the disk icon in the top right corner of the page. Provide a name for the dashboard.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
7. Save the changes by clicking the disk icon in the top right corner of the page. Provide a name for the dashboard.
7. Click the disk icon in the top right corner of the page to save the changes. Provide a name for the dashboard.


## Steps

Access the Grafana UI, select the `cpu_temperature_celsius` metric, the Gauge dashboard type, and start the configuration.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Access the Grafana UI, select the `cpu_temperature_celsius` metric, the Gauge dashboard type, and start the configuration.
Access the Grafana UI, select the `cpu_temperature_celsius` metric and the Gauge dashboard type, and start the configuration.

or

Suggested change
Access the Grafana UI, select the `cpu_temperature_celsius` metric, the Gauge dashboard type, and start the configuration.
Follow these guidelines to access the Grafana UI and create, configure, and test a Gauge type dashboard for the `cpu_temperature_celsius` metric.

🤔 still not perfect, what I mean is that not all the steps are mentioned in the section - testing is not (but it's actually only about refreshing the browser so maybe it’s not needed here).

Copy link
Author

Choose a reason for hiding this comment

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

Hmm, I will think about improving that.

Copy link
Author

@kazydek kazydek Aug 8, 2019

Choose a reason for hiding this comment

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

is that ok? Follow these sections to create the Gauge dashboard type for the `cpu_temperature_celsius` metric.


### Create the dashboard

1. Navigate to Grafana. It is available under the `https://grafana.{DOMAIN}` address, where `{DOMAIN}` is the domain of your Kyma cluster, such as `https://grafana.34.63.57.190.xip.io` or `https://grafana.nightly.a.build.kyma-project.io/`. You can also access it by clicking on **Stats & Metrics** on the left navigation menu in the Console UI.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
1. Navigate to Grafana. It is available under the `https://grafana.{DOMAIN}` address, where `{DOMAIN}` is the domain of your Kyma cluster, such as `https://grafana.34.63.57.190.xip.io` or `https://grafana.nightly.a.build.kyma-project.io/`. You can also access it by clicking on **Stats & Metrics** on the left navigation menu in the Console UI.
1. Navigate to Grafana. It is available under the `https://grafana.{DOMAIN}` address, where `{DOMAIN}` is the domain of your Kyma cluster, such as `https://grafana.34.63.57.190.xip.io` or `https://grafana.nightly.a.build.kyma-project.io/`. To access it from the Console UI, click **Stats & Metrics** on the left navigation menu.


![Add Query](./assets/add-query.png)

4. Select Prometheus data source from the **Queries to** drop-down list and choose the `cpu_temperature_celsius` metric.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
4. Select Prometheus data source from the **Queries to** drop-down list and choose the `cpu_temperature_celsius` metric.
4. Choose Prometheus data source from the **Queries to** drop-down list and pick the `cpu_temperature_celsius` metric.

Copy link
Author

@kazydek kazydek Aug 8, 2019

Choose a reason for hiding this comment

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

I left "select" but I changed "choose" into "pick".


### Configure the dashboard

To edit the dashboard settings, click the **Panel Title** and select **Edit**.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
To edit the dashboard settings, click the **Panel Title** and select **Edit**.
To edit the dashboard settings, click the **Panel Title** button and select **Edit**.

or

Suggested change
To edit the dashboard settings, click the **Panel Title** and select **Edit**.
To edit the dashboard settings, go to the **Panel Title** options and select **Edit**.

Copy link
Author

Choose a reason for hiding this comment

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

I choose the second option :)


![Panel title](./assets/panel-title.png)

5. Save the changes by clicking the disk icon in the top right corner of the page. Add an optional note to describe the changes made.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
5. Save the changes by clicking the disk icon in the top right corner of the page. Add an optional note to describe the changes made.
5. Click the disk icon in the top right corner of the page to save the changes. Add an optional note to describe the changes made.


### Create the dashboard

1. Navigate to Grafana. It is available under the `https://grafana.{DOMAIN}` address, where `{DOMAIN}` is the domain of your Kyma cluster, such as `https://grafana.34.63.57.190.xip.io` or `https://grafana.nightly.a.build.kyma-project.io/`. To access it from the Console UI, click **Stats & Metrics** on the left navigation menu.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if we should mention nightly cluster in examples as it is not available for everyone.

Copy link
Author

@kazydek kazydek Aug 8, 2019

Choose a reason for hiding this comment

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

As discussed, I will change it into https://grafana.example.com/.

@kazydek kazydek merged commit 525a4a1 into kyma-project:master Aug 8, 2019
@kazydek kazydek deleted the issue-4884 branch August 8, 2019 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues or PRs related to documentation area/monitoring Issues or PRs related to the monitoring module (deprecated)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants