Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Revise legend_formulas
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichHartmann committed Jan 29, 2018
1 parent 0098664 commit 04fbf8e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/content/templates/graph-cpu.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"data_formula": null,
"derive": "counter",
"hidden": false,
"legend_formula": null,
"legend_formula": "=round(VAL,2)",
"metric_name": "cpu`wait_io",
"name" : "{{=cosi.metric_name}}",
"metric_type": "numeric",
Expand All @@ -78,7 +78,7 @@
"data_formula": null,
"derive": "counter",
"hidden": false,
"legend_formula": null,
"legend_formula": "=round(VAL,2)",
"metric_name": "cpu`idle",
"name" : "{{=cosi.metric_name}}",
"metric_type": "numeric",
Expand Down
4 changes: 2 additions & 2 deletions src/content/templates/graph-df.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"composites": [],
"datapoints": [
{
"legend_formula": null,
"legend_formula": "=round(VAL,2)",
"check_id": null,
"metric_type": "numeric",
"stack": null,
Expand All @@ -39,7 +39,7 @@
"derive": "gauge"
},
{
"legend_formula": null,
"legend_formula": "=round(VAL,2)",
"check_id": null,
"metric_type": "numeric",
"stack": null,
Expand Down
4 changes: 2 additions & 2 deletions src/content/templates/graph-diskstats.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"data_formula": "=VAL/10",
"derive": "counter",
"hidden": false,
"legend_formula": "=round(auto(VAL,2))",
"legend_formula": "=round(auto(VAL),2)",
"metric_name": "^diskstats`([^`]+)`io_ms$",
"metric_type": "numeric",
"name": "{{=cosi.metric_name}}",
Expand Down Expand Up @@ -67,7 +67,7 @@
"data_formula": "=VAL/10",
"derive": "counter",
"hidden": false,
"legend_formula": "=round(auto(VAL,2))",
"legend_formula": "=round(auto(VAL),2)",
"metric_name": "^diskstats`([^`]+)`io_ms_weighted$",
"metric_type": "numeric",
"name": "diskstats`{{=cosi.match[1]}}`avgqu-sz (average queue size, computed)",
Expand Down
4 changes: 2 additions & 2 deletions src/content/templates/graph-fs.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"data_formula": null,
"derive": "gauge",
"hidden": false,
"legend_formula": null,
"legend_formula": "=round(VAL,2)",
"metric_name": "fs`([^`]+)`df_used_percent",
"metric_type": "numeric",
"name": "% Used (bytes)",
Expand All @@ -49,7 +49,7 @@
"data_formula": null,
"derive": "gauge",
"hidden": false,
"legend_formula": null,
"legend_formula": "=round(VAL,2)",
"metric_name": "fs`([^`]+)`df_used_inode_percent",
"metric_type": "numeric",
"name": "% Used (inode)",
Expand Down
26 changes: 13 additions & 13 deletions src/content/templates/graph-if.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"data_formula": "=VAL*8",
"derive": "counter",
"hidden": false,
"legend_formula": "=round(auto(VAL,2))",
"legend_formula": "=round(auto(VAL),2)",
"metric_name": "if`([^`]+)`in_bytes",
"metric_type": "numeric",
"name": "rx bps",
Expand All @@ -45,7 +45,7 @@
"data_formula": "=-1 * (VAL * 8)",
"derive": "counter",
"hidden": false,
"legend_formula": "=round(auto(VAL,2))",
"legend_formula": "=round(auto(VAL),2)",
"metric_name": "if`([^`]+)`out_bytes",
"metric_type": "numeric",
"name": "tx bps",
Expand Down Expand Up @@ -79,7 +79,7 @@
"data_formula": "=-1 * VAL",
"derive": "counter",
"hidden": false,
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"metric_name": "if`([^`]+)`in_errors",
"metric_type": "numeric",
"name": "rx errors",
Expand All @@ -93,7 +93,7 @@
"data_formula": null,
"derive": "counter",
"hidden": false,
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"metric_name": "if`([^`]+)`out_errors",
"metric_type": "numeric",
"name": "tx errors",
Expand Down Expand Up @@ -130,7 +130,7 @@
"data_formula": "=-1 * (VAL*8)",
"derive": "counter",
"hidden": false,
"legend_formula": "=round(auto(VAL,2))",
"legend_formula": "=round(auto(VAL),2)",
"metric_name": "if`([^`]+)`in_bytes",
"metric_type": "numeric",
"name": "{{=cosi.metric_name}}",
Expand All @@ -146,7 +146,7 @@
"data_formula": "=VAL*8",
"derive": "counter",
"hidden": false,
"legend_formula": "=round(auto(VAL,2))",
"legend_formula": "=round(auto(VAL),2)",
"metric_name": "if`([^`]+)`out_bytes",
"name": "{{=cosi.metric_name}}",
"metric_type": "numeric",
Expand Down Expand Up @@ -189,7 +189,7 @@
"datapoints": [
{
"variable" : false,
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"caql": null,
"check_id": null,
"metric_type": "numeric",
Expand All @@ -206,7 +206,7 @@
{
"variable" : true,
"filter": { "exclude": [ "^lo0?$" ] },
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"caql": null,
"check_id": null,
"metric_type": "numeric",
Expand All @@ -223,7 +223,7 @@
{
"variable" : true,
"filter": { "exclude": [ "^lo0?$" ] },
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"caql": null,
"check_id": null,
"metric_type": "numeric",
Expand All @@ -240,7 +240,7 @@
{
"variable" : true,
"filter": { "exclude": [ "^lo0?$" ] },
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"caql": null,
"check_id": null,
"metric_type": "numeric",
Expand All @@ -257,7 +257,7 @@
{
"variable" : true,
"filter": { "exclude": [ "^lo0?$" ] },
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"caql": null,
"check_id": null,
"metric_type": "numeric",
Expand Down Expand Up @@ -295,7 +295,7 @@
{
"variable" : true,
"filter": { "exclude": [ "^lo0?$" ] },
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"caql": null,
"check_id": null,
"metric_type": "numeric",
Expand All @@ -312,7 +312,7 @@
{
"variable" : true,
"filter": { "exclude": [ "^lo0?$" ] },
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"caql": null,
"check_id": null,
"metric_type": "numeric",
Expand Down
10 changes: 5 additions & 5 deletions src/content/templates/graph-vm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"access_keys": [],
"composites": [
{
"legend_formula": null,
"legend_formula": "=round(bytes(VAL),2)",
"color": "#657aa6",
"stack": 0,
"name": "vm`meminfo`MemUsed (computed)",
Expand All @@ -18,7 +18,7 @@
"data_formula": "=D-A-B-C"
},
{
"legend_formula": null,
"legend_formula": "=round(bytes(VAL),2)",
"color": "#b5c52d",
"stack": 0,
"name": "vm`meminfo`MemFree",
Expand All @@ -27,7 +27,7 @@
"data_formula": "=C"
},
{
"legend_formula": null,
"legend_formula": "=round(bytes(VAL),2)",
"color": "#94a024",
"stack": 0,
"name": "vm`meminfo`Buffers",
Expand All @@ -36,7 +36,7 @@
"data_formula": "=A"
},
{
"legend_formula": null,
"legend_formula": "=round(bytes(VAL),2)",
"color": "#c9db32",
"stack": 0,
"name": "vm`meminfo`Caches",
Expand Down Expand Up @@ -138,7 +138,7 @@
"derive": "counter",
"alpha": "0.3",
"axis": "r",
"legend_formula": null,
"legend_formula": "=round(auto(VAL),2)",
"check_id": null,
"stack": null,
"name": "{{=cosi.metric_name}}",
Expand Down

0 comments on commit 04fbf8e

Please sign in to comment.