Skip to content

Commit

Permalink
Fix: qed_server_instances metric didn't show up. Dashboards improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Luis Lucas committed Apr 2, 2019
1 parent 9ac5a54 commit 126eead
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions deploy/aws/provision/files/grafana/dashboards/Host.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"editable": true,
"gnetId": 179,
"graphTooltip": 1,
"iteration": 1554125286571,
"iteration": 1554212331104,
"links": [],
"panels": [
{
Expand All @@ -29,7 +29,8 @@
"#d44a3a"
],
"datasource": "Prometheus",
"format": "s",
"decimals": 1,
"format": "dtdurations",
"gauge": {
"maxValue": 100,
"minValue": 0,
Expand Down
8 changes: 4 additions & 4 deletions deploy/aws/provision/files/grafana/dashboards/QED.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"editable": true,
"gnetId": null,
"graphTooltip": 2,
"iteration": 1554125967496,
"iteration": 1554198725913,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -68,7 +68,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(qed_instances_count)",
"expr": "sum(qed_server_instances)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "QEDs",
Expand Down Expand Up @@ -215,7 +215,7 @@
"tableColumn": "Value",
"targets": [
{
"expr": "sum(qed_balloon_add_total) / sum(qed_instances_count)",
"expr": "sum(qed_balloon_add_total) / sum(qed_server_instances)",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -1624,7 +1624,7 @@
"valueName": "delta"
}
],
"refresh": false,
"refresh": "10s",
"schemaVersion": 18,
"style": "dark",
"tags": [],
Expand Down
6 changes: 4 additions & 2 deletions server/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ func newServerMetrics() *serverMetrics {
return &serverMetrics{
Instances: prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "instances",
Help: "Number of QED servers currently running",
Namespace: namespace,
Subsystem: subsystem,
Name: "instances",
Help: "Number of QED servers currently running",
},
),
}
Expand Down

0 comments on commit 126eead

Please sign in to comment.