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
Conversation
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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."
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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).
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
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**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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**. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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/
.
Description
Changes proposed in this pull request:
Related issue(s)
See also #4884