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

Added more pictures of sample Grafana dashboard #335

Merged
merged 1 commit into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed docs/assets/images/grafana_dashboard.png
Binary file not shown.
Binary file added docs/assets/images/grafana_dashboard_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/grafana_dashboard_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/grafana_dashboard_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/grafana_dashboard_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion docs/howtos/monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ nav_order: 1
Thundernetes is able to export game server related metrics to a [Prometheus](https://prometheus.io/docs/introduction/overview/) server, and these can also be imported
to a [Grafana](https://grafana.com/docs/grafana/latest/introduction/) server for easy and intuitive visualizations.

[![Grafana Dasboard Example](../assets/images/grafana_dashboard.png)](../assets/images/grafana_dashboard.png)
![Grafana Dasboard Example](../assets/images/grafana_dashboard_1.png)

Prometheus uses a pull model to retrieve data, and needs apps to implement an endpoint that responds to its HTTP requests. For this, Thundernetes exposes the following endpoints:

Expand Down Expand Up @@ -92,3 +92,11 @@ There is a custom Grafana dashboard example that visualizes some of this data in
| gameservers_crashed_total | Counter | controller-manager |
| gameservers_deleted_total | Counter | controller-manager |
| allocations_total | Counter | controller-manager |

## More pictures

![Grafana Dasboard Example 2](../assets/images/grafana_dashboard_2.png)

![Grafana Dasboard Example 3](../assets/images/grafana_dashboard_3.png)

![Grafana Dasboard Example 4](../assets/images/grafana_dashboard_4.png)
11 changes: 9 additions & 2 deletions samples/grafana/readme.md → samples/grafana/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Sample Grafana Dashboard

[![Grafana Dasboard Example](../../docs/assets/images/grafana_dashboard.png)](../../docs/assets/images/grafana_dashboard.pnggrafana_dashboard.png)

The `dashboard.json` file in this folder can be imported to grafana to provide a simple example of retrieving metrics from the Thundernetes Controller. It makes the assumption that the Prometheus data source is named `Prometheus`, so you may need to edit the json file before importing if your Grafana installation uses a different name.


![Grafana Dasboard Example](../../docs/assets/images/grafana_dashboard_1.png)

![Grafana Dasboard Example 2](../../docs/assets/images/grafana_dashboard_2.png)

![Grafana Dasboard Example 3](../../docs/assets/images/grafana_dashboard_3.png)

![Grafana Dasboard Example 4](../../docs/assets/images/grafana_dashboard_4.png)
12 changes: 8 additions & 4 deletions samples/grafana/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@
"pluginVersion": "8.4.5",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P1809F7CD0C75ACF3"
},
"exemplar": true,
"expr": "sum(thundernetes_allocations_total)",
"interval": "",
Expand Down Expand Up @@ -664,7 +668,7 @@
"refId": "A"
}
],
"title": "Active servers time series",
"title": "Standby servers time series",
"type": "timeseries"
},
{
Expand Down Expand Up @@ -1519,13 +1523,13 @@
"list": []
},
"time": {
"from": "now-3h",
"from": "now-1h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Thundernetes GameServer Demo",
"uid": "T9KjuZOnz",
"version": 2,
"version": 3,
"weekStart": ""
}
}