Skip to content

Commit

Permalink
Add extensions status dash and dash name change
Browse files Browse the repository at this point in the history
  • Loading branch information
chiayi committed Feb 25, 2023
1 parent 6127d06 commit 97537d8
Show file tree
Hide file tree
Showing 2 changed files with 297 additions and 1 deletion.
296 changes: 296 additions & 0 deletions build/grafana/dashboard-extensions-status.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
# Copyright 2023 Google LLC 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-extensions-status
namespace: metrics
labels:
grafana_dashboard: "1"
data:
dashboard-agones-extensions-status.json: |
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 13,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"null": {
"index": 0,
"text": "N/A"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "dateTimeFromNow"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.6",
"targets": [
{
"datasource": "Prometheus",
"editorMode": "code",
"expr": "max((process_start_time_seconds{app=\"agones\", agones_dev_role=\"extensions\"}) * 1000)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Extensions Uptime",
"type": "stat"
},
{
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"index": 1,
"text": "DOWN"
},
"1 ": {
"index": 0,
"text": "UP"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#d44a3a"
},
{
"color": "#d44a3a",
"value": 0
},
{
"color": "#299c46",
"value": 1
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 4,
"x": 12,
"y": 0
},
"id": 6,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.3.6",
"targets": [
{
"datasource": "Prometheus",
"editorMode": "code",
"expr": "count(up{app=\"agones\",agones_dev_role=\"extensions\"}) OR on() vector(0)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Extensions Total Pods",
"type": "stat"
},
{
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"index": 1,
"text": "DOWN"
},
"1": {
"index": 0,
"text": "UP"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "semi-dark-red"
},
{
"color": "red",
"value": 0
},
{
"color": "#299c46",
"value": 1
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 4,
"x": 16,
"y": 0
},
"id": 4,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.6",
"targets": [
{
"datasource": "Prometheus",
"editorMode": "code",
"expr": "sum(up{app=\"agones\",agones_dev_role=\"extensions\"}) OR on() vector(0)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Extensions Live Pod",
"type": "stat"
}
],
"schemaVersion": 37,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Alpha - Extensions Status",
"uid": "a1_h-nbVk",
"version": 2,
"weekStart": ""
}
2 changes: 1 addition & 1 deletion build/grafana/dashboard-extensions-usage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ data:
},
"timepicker": {},
"timezone": "",
"title": "Agones Extensions Resource Usage",
"title": "Alpha - Agones Extensions Resource Usage",
"uid": "XmpWbRb4z",
"version": 24,
"weekStart": ""
Expand Down

0 comments on commit 97537d8

Please sign in to comment.