-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds gameservers per node count and distribution
- Loading branch information
1 parent
bc75c34
commit 697f43c
Showing
10 changed files
with
699 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,381 @@ | ||
# Copyright 2018 Google Inc. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# configs map used by grafana | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: agones-allocations | ||
namespace: metrics | ||
labels: | ||
grafana_dashboard: "1" | ||
data: | ||
dashboard-agones-allocations.json: | | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": "-- Grafana --", | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"description": "Agones gameserver allocations", | ||
"editable": true, | ||
"gnetId": null, | ||
"graphTooltip": 0, | ||
"id": 8, | ||
"iteration": 1549050426140, | ||
"links": [], | ||
"panels": [ | ||
{ | ||
"aliasColors": {}, | ||
"bars": false, | ||
"dashLength": 10, | ||
"dashes": false, | ||
"fill": 1, | ||
"gridPos": { | ||
"h": 9, | ||
"w": 12, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 8, | ||
"legend": { | ||
"alignAsTable": true, | ||
"avg": false, | ||
"current": true, | ||
"hideEmpty": true, | ||
"hideZero": true, | ||
"max": true, | ||
"min": false, | ||
"rightSide": true, | ||
"show": true, | ||
"total": false, | ||
"values": true | ||
}, | ||
"lines": true, | ||
"linewidth": 1, | ||
"links": [], | ||
"nullPointMode": "null", | ||
"percentage": false, | ||
"pointradius": 5, | ||
"points": false, | ||
"renderer": "flot", | ||
"seriesOverrides": [], | ||
"spaceLength": 10, | ||
"stack": false, | ||
"steppedLine": false, | ||
"targets": [ | ||
{ | ||
"expr": "agones_fleet_allocations_count{fleet_name=~\"$fleet\"}", | ||
"format": "time_series", | ||
"intervalFactor": 1, | ||
"legendFormat": "used {{fleet_name}}", | ||
"refId": "A" | ||
}, | ||
{ | ||
"expr": "agones_gameservers_count{fleet_name=~\"$fleet\",type=\"Ready\"}", | ||
"format": "time_series", | ||
"intervalFactor": 1, | ||
"legendFormat": "free {{fleet_name}}", | ||
"refId": "B" | ||
}, | ||
{ | ||
"expr": "", | ||
"format": "time_series", | ||
"intervalFactor": 1, | ||
"legendFormat": "", | ||
"refId": "C" | ||
} | ||
], | ||
"thresholds": [], | ||
"timeFrom": null, | ||
"timeRegions": [], | ||
"timeShift": null, | ||
"title": "GameServer allocations count by fleet", | ||
"tooltip": { | ||
"shared": true, | ||
"sort": 0, | ||
"value_type": "individual" | ||
}, | ||
"type": "graph", | ||
"xaxis": { | ||
"buckets": null, | ||
"mode": "time", | ||
"name": null, | ||
"show": true, | ||
"values": [] | ||
}, | ||
"yaxes": [ | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
}, | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
} | ||
], | ||
"yaxis": { | ||
"align": false, | ||
"alignLevel": null | ||
} | ||
}, | ||
{ | ||
"aliasColors": {}, | ||
"bars": false, | ||
"dashLength": 10, | ||
"dashes": false, | ||
"fill": 1, | ||
"gridPos": { | ||
"h": 9, | ||
"w": 12, | ||
"x": 12, | ||
"y": 0 | ||
}, | ||
"id": 10, | ||
"legend": { | ||
"alignAsTable": true, | ||
"avg": true, | ||
"current": true, | ||
"hideEmpty": true, | ||
"hideZero": true, | ||
"max": false, | ||
"min": false, | ||
"rightSide": true, | ||
"show": true, | ||
"total": false, | ||
"values": true | ||
}, | ||
"lines": true, | ||
"linewidth": 1, | ||
"links": [], | ||
"nullPointMode": "null", | ||
"percentage": false, | ||
"pointradius": 5, | ||
"points": false, | ||
"renderer": "flot", | ||
"seriesOverrides": [], | ||
"spaceLength": 10, | ||
"stack": false, | ||
"steppedLine": false, | ||
"targets": [ | ||
{ | ||
"expr": "rate(agones_fleet_allocations_count{fleet_name=~\"$fleet\"}[$interval])", | ||
"format": "time_series", | ||
"intervalFactor": 1, | ||
"legendFormat": "{{fleet_name}}", | ||
"refId": "A" | ||
} | ||
], | ||
"thresholds": [], | ||
"timeFrom": null, | ||
"timeRegions": [], | ||
"timeShift": null, | ||
"title": "GameServer allocations rate by fleet", | ||
"tooltip": { | ||
"shared": true, | ||
"sort": 0, | ||
"value_type": "individual" | ||
}, | ||
"type": "graph", | ||
"xaxis": { | ||
"buckets": null, | ||
"mode": "time", | ||
"name": null, | ||
"show": true, | ||
"values": [] | ||
}, | ||
"yaxes": [ | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
}, | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
} | ||
], | ||
"yaxis": { | ||
"align": false, | ||
"alignLevel": null | ||
} | ||
} | ||
], | ||
"refresh": "10s", | ||
"schemaVersion": 16, | ||
"style": "dark", | ||
"tags": [ | ||
"agones", | ||
"nodes", | ||
"controller", | ||
"gameservers", | ||
"allocations", | ||
"fleets" | ||
], | ||
"templating": { | ||
"list": [ | ||
{ | ||
"allValue": ".*", | ||
"current": { | ||
"text": "All", | ||
"value": [ | ||
"$__all" | ||
] | ||
}, | ||
"datasource": "Prometheus", | ||
"definition": "label_values(agones_gameservers_count, fleet_name)", | ||
"hide": 0, | ||
"includeAll": true, | ||
"label": null, | ||
"multi": true, | ||
"name": "fleet", | ||
"options": [], | ||
"query": "label_values(agones_gameservers_count, fleet_name)", | ||
"refresh": 2, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"tagValuesQuery": "", | ||
"tags": [], | ||
"tagsQuery": "", | ||
"type": "query", | ||
"useTags": false | ||
}, | ||
{ | ||
"auto": false, | ||
"auto_count": 30, | ||
"auto_min": "10s", | ||
"current": { | ||
"text": "1m", | ||
"value": "1m" | ||
}, | ||
"hide": 0, | ||
"label": null, | ||
"name": "interval", | ||
"options": [ | ||
{ | ||
"selected": true, | ||
"text": "1m", | ||
"value": "1m" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "10m", | ||
"value": "10m" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "30m", | ||
"value": "30m" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "1h", | ||
"value": "1h" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "6h", | ||
"value": "6h" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "12h", | ||
"value": "12h" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "1d", | ||
"value": "1d" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "7d", | ||
"value": "7d" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "14d", | ||
"value": "14d" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "30d", | ||
"value": "30d" | ||
} | ||
], | ||
"query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d", | ||
"refresh": 2, | ||
"skipUrlSync": false, | ||
"type": "interval" | ||
} | ||
] | ||
}, | ||
"time": { | ||
"from": "now-30m", | ||
"to": "now" | ||
}, | ||
"timepicker": { | ||
"refresh_intervals": [ | ||
"5s", | ||
"10s", | ||
"30s", | ||
"1m", | ||
"5m", | ||
"15m", | ||
"30m", | ||
"1h", | ||
"2h", | ||
"1d" | ||
], | ||
"time_options": [ | ||
"5m", | ||
"15m", | ||
"1h", | ||
"6h", | ||
"12h", | ||
"24h", | ||
"2d", | ||
"7d", | ||
"30d" | ||
] | ||
}, | ||
"timezone": "", | ||
"title": "Agones Allocations", | ||
"uid": "TfUv6ylmk", | ||
"version": 13 | ||
} |
Oops, something went wrong.