Merge ~karimsye/charm-grafana:k8s-model-filter-template into ~prometheus-charmers/charm-grafana:master
- Git
- lp:~karimsye/charm-grafana
- k8s-model-filter-template
- Merge into master
Status: | Work in progress |
---|---|
Proposed branch: | ~karimsye/charm-grafana:k8s-model-filter-template |
Merge into: | ~prometheus-charmers/charm-grafana:master |
Diff against target: |
562 lines (+127/-6) 2 files modified
reactive/grafana.py (+2/-1) templates/dashboards/prometheus/Telegraf.json.j2 (+125/-5) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alvaro Uria (community) | Needs Fixing | ||
Xav Paice (community) | Needs Fixing | ||
Stuart Bishop (community) | is-reviews | Approve | |
Chris Sanders (community) | Needs Information | ||
BootStack Reviewers | mr tracking; do not claim | Pending | |
BootStack Reviewers | Pending | ||
BootStack Reviewers | Pending | ||
Review via email: mp+366501@code.launchpad.net |
Commit message
Add variables to filter k8s clusters by model
Added juju_model variable to Telegraf.json.j2 dashboard template for
filtering k8s clusters by model name. Also renamed "non-juju hosts"
variable to host, and set its value to hostnames that are part of the
selected juju_model variable. Also added {% raw %} and {% endraw %} to
escape jinja's '{{ }}' syntax. This enables the legendFormat variable
to properly display varables such as host.
Description of the change
Add variables to filter k8s clusters by model
Added juju_model variable to Telegraf.json.j2 dashboard template for
filtering k8s clusters by model name. Also renamed "non-juju hosts"
variable to host, and set its value to hostnames that are part of the
selected juju_model variable. Also added {% raw %} and {% endraw %} to
escape jinja's '{{ }}' syntax. This enables the legendFormat variable
to properly display varables such as host.
Example Prometheus target metrics can be found here:
- https:/
- https:/
- https:/
The 'juju_model' variable was derived by using the following in Grafana:
- Query: system_load1{}
- Regex: .*host="([^:]+).*$
The 'non-juju hosts' variable was changed to host and derived using the following in Grafana:
- Query: system_
- Regex: .*host="([^"]+).*
Both variables support multi-value and auto include all selection options.
I also added {% raw %} and {% endraw %} to escape jinja's '{{ }}' syntax.
For example, Jinja will evaluate {{host}} as "" and when the dashboard is imported, it will not render {{host}} in the legend section of the graphs. The escaping enables the "legendFormat" variable to properly display variables such as {{host}} and {{interface}}.
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote : | # |
Chris Sanders (chris.sanders) wrote : | # |
This is adding an entirely new dashboard which, as much as I can tell from the .json, is a duplicate of the current Telegraf with some modifications.
* Is there a reason this isn't a modification of the Telegraf dashboard rather than a new template?
* Won't this result in *both* dashboards being installed (if they have the same metrics) which we wouldn't want.
* Assuming you can modify the Telegraf dashboard rather than put a duplicate in the charm, please make minimal changes so the diff is as readable as a json diff can be. It looks like you've run this dashboard through a json formatter that is different from the Telegraf json that Grafana produced. Small changes in white space, with no functional change to the json, only serve to make the diffs harder to read.
Also looking through the template, I notice you used {% raw %} in several places. Why has that been added to the template when it appears to wrap sections that were already present and didn't have it before?
Syed Mohammad Adnan Karim (karimsye) wrote : | # |
> This is adding an entirely new dashboard which, as much as I can tell from the
> .json, is a duplicate of the current Telegraf with some modifications.
> * Is there a reason this isn't a modification of the Telegraf dashboard
> rather than a new template?
I created the dashboard based on https:/
> * Won't this result in *both* dashboards being installed (if they have the
> same metrics) which we wouldn't want.
Correct, I will update the existing Telegraf.json.j2 dashboard to include these changes.
I will also remove TelegrafKuberne
> * Assuming you can modify the Telegraf dashboard rather than put a duplicate
> in the charm, please make minimal changes so the diff is as readable as a json
> diff can be. It looks like you've run this dashboard through a json formatter
> that is different from the Telegraf json that Grafana produced. Small changes
> in white space, with no functional change to the json, only serve to make the
> diffs harder to read.
>
Acknowledged.
> Also looking through the template, I notice you used {% raw %} in several
> places. Why has that been added to the template when it appears to wrap
> sections that were already present and didn't have it before?
I used {% raw %} to escape {{ variable_name }} in the legendFormat variable.
Jinja will evaluate it as "" and when the dashboard is imported, it will not render
variable_name (typically {{host}}) in the legend section of the graphs.
- de20009... by Syed Mohammad Adnan Karim
-
Add variables to filter k8s clusters by model
Added juju_model variable to Telegraf.json.j2 dashboard template for
filtering k8s clusters by model name. Also renamed "non-juju hosts"
variable to host, and set its value to hostnames that are part of the
selected juju_model variable. Also added {% raw %} and {% endraw %} to
escape jinja's '{{ }}' syntax. This enables the legendFormat variable
to properly display varables such as host.
Stuart Bishop (stub) wrote : | # |
All good from ~canonical-
Chris Sanders (chris.sanders) wrote : | # |
Thanks, the diff is significantly easier to read. I believe this address all of my previous concerns.
The only remaining comment is, with out testing in the charm someone should verify that this branch will still install expected dashboards on a standard non-k8s install. It doesn't look like any metrics actually changed so I think it's safe to say it will be ok.
Syed, can you confirm that there was no change to the metrics, only the new raw values?
Do you by chance already try this on an openstack w/o K8s to see that it still works as previously expected?
Syed Mohammad Adnan Karim (karimsye) wrote : | # |
> Thanks, the diff is significantly easier to read. I believe this address all
> of my previous concerns.
No problem.
> The only remaining comment is, with out testing in the charm someone should
> verify that this branch will still install expected dashboards on a standard
> non-k8s install. It doesn't look like any metrics actually changed so I think
> it's safe to say it will be ok.
>
> Syed, can you confirm that there was no change to the metrics, only the new
> raw values?
Yes I can confirm that is the case.
> Do you by chance already try this on an openstack w/o K8s to see that it still
> works as previously expected?
I did not test it on openstack w/o k8s yet but I can give that a go and report mt findings.
Syed Mohammad Adnan Karim (karimsye) wrote : | # |
I can confirm that on openstack deployments w/o k8s, the graphs work as expected, the only differences are in the Telegraf Host Metrics Dashboard. The diffrence is that now filtering by juju models is possible, and that unit hostnames show up properly on the legend of the graphs.
I saved screenshots comparing the changes between my update and the charmstore's version 28:
https:/
https:/
Xav Paice (xavpaice) wrote : | # |
Thanks for this work.
Please note that the charm-grafana code has moved to https:/
Alvaro Uria (aluria) wrote : | # |
Moved the MP to WIP status because charm-grafana is now under ~llama-charmers namespace and charm-telegraf is the one maintaining the dashboard that will be pushed to grafana via the grafana-dashboards interface.
Unmerged commits
- de20009... by Syed Mohammad Adnan Karim
-
Add variables to filter k8s clusters by model
Added juju_model variable to Telegraf.json.j2 dashboard template for
filtering k8s clusters by model name. Also renamed "non-juju hosts"
variable to host, and set its value to hostnames that are part of the
selected juju_model variable. Also added {% raw %} and {% endraw %} to
escape jinja's '{{ }}' syntax. This enables the legendFormat variable
to properly display varables such as host. - 2dad259... by Syed Mohammad Adnan Karim
-
Add dashboard for filtering k8s clusters by model
Exisiting Telegraf.json.j2 dashboard only filters by unit name, making
it difficult to monitor multiple k8s clusters. Added dashboard called
TelegrafKubernetes.json. j2 to templates/ dashboards/ prometheus/ for
filtering k8s clusters by model and unit names. The dashboard uses
juju_model and juju_unit variables to achieve this. These variables
use regex to parse the hostname coming from a Prometheus data source.
The variables juju_model and juju_unit have been added to the
ignore_metrics variable because they are not real Prometheus metrics.
Preview Diff
1 | diff --git a/reactive/grafana.py b/reactive/grafana.py | |||
2 | index f98e11c..2ceb441 100644 | |||
3 | --- a/reactive/grafana.py | |||
4 | +++ b/reactive/grafana.py | |||
5 | @@ -522,7 +522,8 @@ def generate_prometheus_dashboards(gf_adminpasswd, ds): | |||
6 | 522 | ignore_metrics = ['by_cloud_status', 'group_left', 'count_values', | 522 | ignore_metrics = ['by_cloud_status', 'group_left', 'count_values', |
7 | 523 | 'nova_service_status', 'hypervisor_hostname', 'external_network', | 523 | 'nova_service_status', 'hypervisor_hostname', 'external_network', |
8 | 524 | 'ip_type', 'instance_state', 'network_name', 'subnet_name', | 524 | 'ip_type', 'instance_state', 'network_name', 'subnet_name', |
10 | 525 | 'ip_status', 'neutron_net', config['external_network'] | 525 | 'ip_status', 'neutron_net', config['external_network'], |
11 | 526 | 'juju_model' | ||
12 | 526 | ] | 527 | ] |
13 | 527 | prom_metrics.extend(ignore_metrics) | 528 | prom_metrics.extend(ignore_metrics) |
14 | 528 | for filename in os.listdir(templates_dir): | 529 | for filename in os.listdir(templates_dir): |
15 | diff --git a/templates/dashboards/prometheus/Telegraf.json.j2 b/templates/dashboards/prometheus/Telegraf.json.j2 | |||
16 | index a58f03e..8e7f071 100644 | |||
17 | --- a/templates/dashboards/prometheus/Telegraf.json.j2 | |||
18 | +++ b/templates/dashboards/prometheus/Telegraf.json.j2 | |||
19 | @@ -202,7 +202,9 @@ | |||
20 | 202 | "expr": "system_load1{host=~\"$host\"}", | 202 | "expr": "system_load1{host=~\"$host\"}", |
21 | 203 | "format": "time_series", | 203 | "format": "time_series", |
22 | 204 | "intervalFactor": 2, | 204 | "intervalFactor": 2, |
23 | 205 | {% raw %} | ||
24 | 205 | "legendFormat": "{{host}} 1min", | 206 | "legendFormat": "{{host}} 1min", |
25 | 207 | {% endraw %} | ||
26 | 206 | "refId": "A", | 208 | "refId": "A", |
27 | 207 | "step": 2 | 209 | "step": 2 |
28 | 208 | }, | 210 | }, |
29 | @@ -210,7 +212,9 @@ | |||
30 | 210 | "expr": "system_load5{host=~\"$host\"}", | 212 | "expr": "system_load5{host=~\"$host\"}", |
31 | 211 | "format": "time_series", | 213 | "format": "time_series", |
32 | 212 | "intervalFactor": 2, | 214 | "intervalFactor": 2, |
33 | 215 | {% raw %} | ||
34 | 213 | "legendFormat": "{{host}} 5min", | 216 | "legendFormat": "{{host}} 5min", |
35 | 217 | {% endraw %} | ||
36 | 214 | "refId": "B", | 218 | "refId": "B", |
37 | 215 | "step": 2 | 219 | "step": 2 |
38 | 216 | }, | 220 | }, |
39 | @@ -218,7 +222,9 @@ | |||
40 | 218 | "expr": "system_load15{host=~\"$host\"}", | 222 | "expr": "system_load15{host=~\"$host\"}", |
41 | 219 | "format": "time_series", | 223 | "format": "time_series", |
42 | 220 | "intervalFactor": 2, | 224 | "intervalFactor": 2, |
43 | 225 | {% raw %} | ||
44 | 221 | "legendFormat": "{{host}} 15min", | 226 | "legendFormat": "{{host}} 15min", |
45 | 227 | {% endraw %} | ||
46 | 222 | "refId": "C", | 228 | "refId": "C", |
47 | 223 | "step": 2 | 229 | "step": 2 |
48 | 224 | } | 230 | } |
49 | @@ -296,7 +302,9 @@ | |||
50 | 296 | "expr": "mem_used{host=~\"$host\"}", | 302 | "expr": "mem_used{host=~\"$host\"}", |
51 | 297 | "format": "time_series", | 303 | "format": "time_series", |
52 | 298 | "intervalFactor": 2, | 304 | "intervalFactor": 2, |
53 | 305 | {% raw %} | ||
54 | 299 | "legendFormat": "Used {{host}}", | 306 | "legendFormat": "Used {{host}}", |
55 | 307 | {% endraw %} | ||
56 | 300 | "refId": "A", | 308 | "refId": "A", |
57 | 301 | "step": 2 | 309 | "step": 2 |
58 | 302 | }, | 310 | }, |
59 | @@ -304,7 +312,9 @@ | |||
60 | 304 | "expr": "mem_buffered{host=~\"$host\"} + mem_cached{host=~\"$host\"}", | 312 | "expr": "mem_buffered{host=~\"$host\"} + mem_cached{host=~\"$host\"}", |
61 | 305 | "format": "time_series", | 313 | "format": "time_series", |
62 | 306 | "intervalFactor": 2, | 314 | "intervalFactor": 2, |
63 | 315 | {% raw %} | ||
64 | 307 | "legendFormat": "Buffers+cache {{host}}", | 316 | "legendFormat": "Buffers+cache {{host}}", |
65 | 317 | {% endraw %} | ||
66 | 308 | "refId": "B", | 318 | "refId": "B", |
67 | 309 | "step": 2 | 319 | "step": 2 |
68 | 310 | }, | 320 | }, |
69 | @@ -312,7 +322,9 @@ | |||
70 | 312 | "expr": "mem_free{host=~\"$host\"}", | 322 | "expr": "mem_free{host=~\"$host\"}", |
71 | 313 | "format": "time_series", | 323 | "format": "time_series", |
72 | 314 | "intervalFactor": 2, | 324 | "intervalFactor": 2, |
73 | 325 | {% raw %} | ||
74 | 315 | "legendFormat": "Free {{host}}", | 326 | "legendFormat": "Free {{host}}", |
75 | 327 | {% endraw %} | ||
76 | 316 | "refId": "C", | 328 | "refId": "C", |
77 | 317 | "step": 2 | 329 | "step": 2 |
78 | 318 | } | 330 | } |
79 | @@ -394,7 +406,9 @@ | |||
80 | 394 | "expr": "cpu_usage_user{cpu=\"cpu-total\",host=~\"$host\"}", | 406 | "expr": "cpu_usage_user{cpu=\"cpu-total\",host=~\"$host\"}", |
81 | 395 | "format": "time_series", | 407 | "format": "time_series", |
82 | 396 | "intervalFactor": 2, | 408 | "intervalFactor": 2, |
83 | 409 | {% raw %} | ||
84 | 397 | "legendFormat": "user {{host}}", | 410 | "legendFormat": "user {{host}}", |
85 | 411 | {% endraw %} | ||
86 | 398 | "refId": "A", | 412 | "refId": "A", |
87 | 399 | "step": 2 | 413 | "step": 2 |
88 | 400 | }, | 414 | }, |
89 | @@ -402,7 +416,9 @@ | |||
90 | 402 | "expr": "cpu_usage_iowait{cpu=\"cpu-total\", host=~\"$host\"}", | 416 | "expr": "cpu_usage_iowait{cpu=\"cpu-total\", host=~\"$host\"}", |
91 | 403 | "format": "time_series", | 417 | "format": "time_series", |
92 | 404 | "intervalFactor": 2, | 418 | "intervalFactor": 2, |
93 | 419 | {% raw %} | ||
94 | 405 | "legendFormat": "iowait {{host}}", | 420 | "legendFormat": "iowait {{host}}", |
95 | 421 | {% endraw %} | ||
96 | 406 | "refId": "C", | 422 | "refId": "C", |
97 | 407 | "step": 2 | 423 | "step": 2 |
98 | 408 | }, | 424 | }, |
99 | @@ -410,7 +426,9 @@ | |||
100 | 410 | "expr": "cpu_usage_nice{cpu=\"cpu-total\", host=~\"$host\"}", | 426 | "expr": "cpu_usage_nice{cpu=\"cpu-total\", host=~\"$host\"}", |
101 | 411 | "format": "time_series", | 427 | "format": "time_series", |
102 | 412 | "intervalFactor": 2, | 428 | "intervalFactor": 2, |
103 | 429 | {% raw %} | ||
104 | 413 | "legendFormat": "nice {{host}}", | 430 | "legendFormat": "nice {{host}}", |
105 | 431 | {% endraw %} | ||
106 | 414 | "refId": "D", | 432 | "refId": "D", |
107 | 415 | "step": 2 | 433 | "step": 2 |
108 | 416 | }, | 434 | }, |
109 | @@ -418,7 +436,9 @@ | |||
110 | 418 | "expr": "cpu_usage_softirq{cpu=\"cpu-total\",host=~\"$host\"}", | 436 | "expr": "cpu_usage_softirq{cpu=\"cpu-total\",host=~\"$host\"}", |
111 | 419 | "format": "time_series", | 437 | "format": "time_series", |
112 | 420 | "intervalFactor": 2, | 438 | "intervalFactor": 2, |
113 | 439 | {% raw %} | ||
114 | 421 | "legendFormat": "softirq {{host}}", | 440 | "legendFormat": "softirq {{host}}", |
115 | 441 | {% endraw %} | ||
116 | 422 | "refId": "E", | 442 | "refId": "E", |
117 | 423 | "step": 2 | 443 | "step": 2 |
118 | 424 | }, | 444 | }, |
119 | @@ -426,7 +446,9 @@ | |||
120 | 426 | "expr": "cpu_usage_irq{cpu=\"cpu-total\", host=~\"$host\"}", | 446 | "expr": "cpu_usage_irq{cpu=\"cpu-total\", host=~\"$host\"}", |
121 | 427 | "format": "time_series", | 447 | "format": "time_series", |
122 | 428 | "intervalFactor": 2, | 448 | "intervalFactor": 2, |
123 | 449 | {% raw %} | ||
124 | 429 | "legendFormat": "irq {{host}}", | 450 | "legendFormat": "irq {{host}}", |
125 | 451 | {% endraw %} | ||
126 | 430 | "refId": "F", | 452 | "refId": "F", |
127 | 431 | "step": 2 | 453 | "step": 2 |
128 | 432 | }, | 454 | }, |
129 | @@ -434,7 +456,9 @@ | |||
130 | 434 | "expr": "cpu_usage_system{cpu=\"cpu-total\", host=~\"$host\"}", | 456 | "expr": "cpu_usage_system{cpu=\"cpu-total\", host=~\"$host\"}", |
131 | 435 | "format": "time_series", | 457 | "format": "time_series", |
132 | 436 | "intervalFactor": 2, | 458 | "intervalFactor": 2, |
133 | 459 | {% raw %} | ||
134 | 437 | "legendFormat": "system {{host}}", | 460 | "legendFormat": "system {{host}}", |
135 | 461 | {% endraw %} | ||
136 | 438 | "refId": "G", | 462 | "refId": "G", |
137 | 439 | "step": 2 | 463 | "step": 2 |
138 | 440 | }, | 464 | }, |
139 | @@ -442,7 +466,9 @@ | |||
140 | 442 | "expr": "cpu_usage_idle{cpu=\"cpu-total\", host=~\"$host\"}", | 466 | "expr": "cpu_usage_idle{cpu=\"cpu-total\", host=~\"$host\"}", |
141 | 443 | "format": "time_series", | 467 | "format": "time_series", |
142 | 444 | "intervalFactor": 2, | 468 | "intervalFactor": 2, |
143 | 469 | {% raw %} | ||
144 | 445 | "legendFormat": "idle {{host}}", | 470 | "legendFormat": "idle {{host}}", |
145 | 471 | {% endraw %} | ||
146 | 446 | "refId": "B", | 472 | "refId": "B", |
147 | 447 | "step": 2 | 473 | "step": 2 |
148 | 448 | } | 474 | } |
149 | @@ -522,7 +548,9 @@ | |||
150 | 522 | "expr": "system_n_users{host=~\"$host\"}", | 548 | "expr": "system_n_users{host=~\"$host\"}", |
151 | 523 | "format": "time_series", | 549 | "format": "time_series", |
152 | 524 | "intervalFactor": 2, | 550 | "intervalFactor": 2, |
153 | 551 | {% raw %} | ||
154 | 525 | "legendFormat": "Users {{host}}", | 552 | "legendFormat": "Users {{host}}", |
155 | 553 | {% endraw %} | ||
156 | 526 | "refId": "A", | 554 | "refId": "A", |
157 | 527 | "step": 2 | 555 | "step": 2 |
158 | 528 | } | 556 | } |
159 | @@ -600,7 +628,9 @@ | |||
160 | 600 | "expr": "rate(swap_in{host=~\"$host\"}[2m])", | 628 | "expr": "rate(swap_in{host=~\"$host\"}[2m])", |
161 | 601 | "format": "time_series", | 629 | "format": "time_series", |
162 | 602 | "intervalFactor": 2, | 630 | "intervalFactor": 2, |
163 | 631 | {% raw %} | ||
164 | 603 | "legendFormat": "Swap in {{host}}", | 632 | "legendFormat": "Swap in {{host}}", |
165 | 633 | {% endraw %} | ||
166 | 604 | "refId": "A", | 634 | "refId": "A", |
167 | 605 | "step": 2 | 635 | "step": 2 |
168 | 606 | }, | 636 | }, |
169 | @@ -608,7 +638,9 @@ | |||
170 | 608 | "expr": "rate(swap_out{host=~\"$host\"}[2m])", | 638 | "expr": "rate(swap_out{host=~\"$host\"}[2m])", |
171 | 609 | "format": "time_series", | 639 | "format": "time_series", |
172 | 610 | "intervalFactor": 2, | 640 | "intervalFactor": 2, |
173 | 641 | {% raw %} | ||
174 | 611 | "legendFormat": "Swap out {{host}}", | 642 | "legendFormat": "Swap out {{host}}", |
175 | 643 | {% endraw %} | ||
176 | 612 | "refId": "B", | 644 | "refId": "B", |
177 | 613 | "step": 2 | 645 | "step": 2 |
178 | 614 | } | 646 | } |
179 | @@ -713,7 +745,9 @@ | |||
180 | 713 | "expr": "netstat_tcp_established{host=~\"$host\"}", | 745 | "expr": "netstat_tcp_established{host=~\"$host\"}", |
181 | 714 | "format": "time_series", | 746 | "format": "time_series", |
182 | 715 | "intervalFactor": 2, | 747 | "intervalFactor": 2, |
183 | 748 | {% raw %} | ||
184 | 716 | "legendFormat": "Established {{host}}", | 749 | "legendFormat": "Established {{host}}", |
185 | 750 | {% endraw %} | ||
186 | 717 | "refId": "A", | 751 | "refId": "A", |
187 | 718 | "step": 4 | 752 | "step": 4 |
188 | 719 | }, | 753 | }, |
189 | @@ -721,7 +755,9 @@ | |||
190 | 721 | "expr": "netstat_tcp_syn_sent{host=~\"$host\"}", | 755 | "expr": "netstat_tcp_syn_sent{host=~\"$host\"}", |
191 | 722 | "format": "time_series", | 756 | "format": "time_series", |
192 | 723 | "intervalFactor": 2, | 757 | "intervalFactor": 2, |
193 | 758 | {% raw %} | ||
194 | 724 | "legendFormat": "Syn sent {{host}}", | 759 | "legendFormat": "Syn sent {{host}}", |
195 | 760 | {% endraw %} | ||
196 | 725 | "refId": "B", | 761 | "refId": "B", |
197 | 726 | "step": 4 | 762 | "step": 4 |
198 | 727 | }, | 763 | }, |
199 | @@ -729,7 +765,9 @@ | |||
200 | 729 | "expr": "netstat_tcp_syn_recv{host=~\"$host\"}", | 765 | "expr": "netstat_tcp_syn_recv{host=~\"$host\"}", |
201 | 730 | "format": "time_series", | 766 | "format": "time_series", |
202 | 731 | "intervalFactor": 2, | 767 | "intervalFactor": 2, |
203 | 768 | {% raw %} | ||
204 | 732 | "legendFormat": "Syn recv {{host}}", | 769 | "legendFormat": "Syn recv {{host}}", |
205 | 770 | {% endraw %} | ||
206 | 733 | "refId": "C", | 771 | "refId": "C", |
207 | 734 | "step": 4 | 772 | "step": 4 |
208 | 735 | }, | 773 | }, |
209 | @@ -737,7 +775,9 @@ | |||
210 | 737 | "expr": "netstat_tcp_fin_wait1{host=~\"$host\"}", | 775 | "expr": "netstat_tcp_fin_wait1{host=~\"$host\"}", |
211 | 738 | "format": "time_series", | 776 | "format": "time_series", |
212 | 739 | "intervalFactor": 2, | 777 | "intervalFactor": 2, |
213 | 778 | {% raw %} | ||
214 | 740 | "legendFormat": "Fin wait1 {{host}}", | 779 | "legendFormat": "Fin wait1 {{host}}", |
215 | 780 | {% endraw %} | ||
216 | 741 | "refId": "D", | 781 | "refId": "D", |
217 | 742 | "step": 4 | 782 | "step": 4 |
218 | 743 | }, | 783 | }, |
219 | @@ -745,7 +785,9 @@ | |||
220 | 745 | "expr": "netstat_tcp_fin_wait2{host=~\"$host\"}", | 785 | "expr": "netstat_tcp_fin_wait2{host=~\"$host\"}", |
221 | 746 | "format": "time_series", | 786 | "format": "time_series", |
222 | 747 | "intervalFactor": 2, | 787 | "intervalFactor": 2, |
223 | 788 | {% raw %} | ||
224 | 748 | "legendFormat": "Fin wait2 {{host}}", | 789 | "legendFormat": "Fin wait2 {{host}}", |
225 | 790 | {% endraw %} | ||
226 | 749 | "refId": "E", | 791 | "refId": "E", |
227 | 750 | "step": 4 | 792 | "step": 4 |
228 | 751 | }, | 793 | }, |
229 | @@ -753,7 +795,9 @@ | |||
230 | 753 | "expr": "netstat_tcp_time_wait{host=~\"$host\"}", | 795 | "expr": "netstat_tcp_time_wait{host=~\"$host\"}", |
231 | 754 | "format": "time_series", | 796 | "format": "time_series", |
232 | 755 | "intervalFactor": 2, | 797 | "intervalFactor": 2, |
233 | 798 | {% raw %} | ||
234 | 756 | "legendFormat": "Time wait {{host}}", | 799 | "legendFormat": "Time wait {{host}}", |
235 | 800 | {% endraw %} | ||
236 | 757 | "refId": "F", | 801 | "refId": "F", |
237 | 758 | "step": 4 | 802 | "step": 4 |
238 | 759 | }, | 803 | }, |
239 | @@ -761,7 +805,9 @@ | |||
240 | 761 | "expr": "netstat_tcp_close{host=~\"$host\"}", | 805 | "expr": "netstat_tcp_close{host=~\"$host\"}", |
241 | 762 | "format": "time_series", | 806 | "format": "time_series", |
242 | 763 | "intervalFactor": 2, | 807 | "intervalFactor": 2, |
243 | 808 | {% raw %} | ||
244 | 764 | "legendFormat": "Close {{host}}", | 809 | "legendFormat": "Close {{host}}", |
245 | 810 | {% endraw %} | ||
246 | 765 | "refId": "G", | 811 | "refId": "G", |
247 | 766 | "step": 4 | 812 | "step": 4 |
248 | 767 | }, | 813 | }, |
249 | @@ -769,7 +815,9 @@ | |||
250 | 769 | "expr": "netstat_tcp_close_wait{host=~\"$host\"}", | 815 | "expr": "netstat_tcp_close_wait{host=~\"$host\"}", |
251 | 770 | "format": "time_series", | 816 | "format": "time_series", |
252 | 771 | "intervalFactor": 2, | 817 | "intervalFactor": 2, |
253 | 818 | {% raw %} | ||
254 | 772 | "legendFormat": "Close wait {{host}}", | 819 | "legendFormat": "Close wait {{host}}", |
255 | 820 | {% endraw %} | ||
256 | 773 | "refId": "H", | 821 | "refId": "H", |
257 | 774 | "step": 4 | 822 | "step": 4 |
258 | 775 | }, | 823 | }, |
259 | @@ -777,7 +825,9 @@ | |||
260 | 777 | "expr": "netstat_tcp_last_ack{host=~\"$host\"}", | 825 | "expr": "netstat_tcp_last_ack{host=~\"$host\"}", |
261 | 778 | "format": "time_series", | 826 | "format": "time_series", |
262 | 779 | "intervalFactor": 2, | 827 | "intervalFactor": 2, |
263 | 828 | {% raw %} | ||
264 | 780 | "legendFormat": "Last ack {{host}}", | 829 | "legendFormat": "Last ack {{host}}", |
265 | 830 | {% endraw %} | ||
266 | 781 | "refId": "I", | 831 | "refId": "I", |
267 | 782 | "step": 4 | 832 | "step": 4 |
268 | 783 | }, | 833 | }, |
269 | @@ -785,7 +835,9 @@ | |||
270 | 785 | "expr": "netstat_tcp_listen{host=~\"$host\"}", | 835 | "expr": "netstat_tcp_listen{host=~\"$host\"}", |
271 | 786 | "format": "time_series", | 836 | "format": "time_series", |
272 | 787 | "intervalFactor": 2, | 837 | "intervalFactor": 2, |
273 | 838 | {% raw %} | ||
274 | 788 | "legendFormat": "Listen {{host}}", | 839 | "legendFormat": "Listen {{host}}", |
275 | 840 | {% endraw %} | ||
276 | 789 | "refId": "J", | 841 | "refId": "J", |
277 | 790 | "step": 4 | 842 | "step": 4 |
278 | 791 | }, | 843 | }, |
279 | @@ -793,7 +845,9 @@ | |||
280 | 793 | "expr": "netstat_tcp_closing{host=~\"$host\"}", | 845 | "expr": "netstat_tcp_closing{host=~\"$host\"}", |
281 | 794 | "format": "time_series", | 846 | "format": "time_series", |
282 | 795 | "intervalFactor": 2, | 847 | "intervalFactor": 2, |
283 | 848 | {% raw %} | ||
284 | 796 | "legendFormat": "Closing {{host}}", | 849 | "legendFormat": "Closing {{host}}", |
285 | 850 | {% endraw %} | ||
286 | 797 | "refId": "K", | 851 | "refId": "K", |
287 | 798 | "step": 4 | 852 | "step": 4 |
288 | 799 | }, | 853 | }, |
289 | @@ -801,7 +855,9 @@ | |||
290 | 801 | "expr": "netstat_tcp_none{host=~\"$host\"}", | 855 | "expr": "netstat_tcp_none{host=~\"$host\"}", |
291 | 802 | "format": "time_series", | 856 | "format": "time_series", |
292 | 803 | "intervalFactor": 2, | 857 | "intervalFactor": 2, |
293 | 858 | {% raw %} | ||
294 | 804 | "legendFormat": "None {{host}}", | 859 | "legendFormat": "None {{host}}", |
295 | 860 | {% endraw %} | ||
296 | 805 | "refId": "L", | 861 | "refId": "L", |
297 | 806 | "step": 4 | 862 | "step": 4 |
298 | 807 | } | 863 | } |
299 | @@ -897,7 +953,9 @@ | |||
300 | 897 | "instant": false, | 953 | "instant": false, |
301 | 898 | "interval": "1m", | 954 | "interval": "1m", |
302 | 899 | "intervalFactor": 2, | 955 | "intervalFactor": 2, |
303 | 956 | {% raw %} | ||
304 | 900 | "legendFormat": "In {{host}} {{interface}}", | 957 | "legendFormat": "In {{host}} {{interface}}", |
305 | 958 | {% endraw %} | ||
306 | 901 | "metric": "net_by", | 959 | "metric": "net_by", |
307 | 902 | "refId": "A", | 960 | "refId": "A", |
308 | 903 | "step": 4 | 961 | "step": 4 |
309 | @@ -908,7 +966,9 @@ | |||
310 | 908 | "hide": false, | 966 | "hide": false, |
311 | 909 | "interval": "1m", | 967 | "interval": "1m", |
312 | 910 | "intervalFactor": 2, | 968 | "intervalFactor": 2, |
313 | 969 | {% raw %} | ||
314 | 911 | "legendFormat": "Out {{host}} {{interface}}", | 970 | "legendFormat": "Out {{host}} {{interface}}", |
315 | 971 | {% endraw %} | ||
316 | 912 | "refId": "B", | 972 | "refId": "B", |
317 | 913 | "step": 4 | 973 | "step": 4 |
318 | 914 | } | 974 | } |
319 | @@ -991,7 +1051,9 @@ | |||
320 | 991 | "expr": "rate(net_packets_recv{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*\"}[5m])", | 1051 | "expr": "rate(net_packets_recv{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*\"}[5m])", |
321 | 992 | "format": "time_series", | 1052 | "format": "time_series", |
322 | 993 | "intervalFactor": 2, | 1053 | "intervalFactor": 2, |
323 | 1054 | {% raw %} | ||
324 | 994 | "legendFormat": "In {{interface}} {{host}}", | 1055 | "legendFormat": "In {{interface}} {{host}}", |
325 | 1056 | {% endraw %} | ||
326 | 995 | "refId": "A", | 1057 | "refId": "A", |
327 | 996 | "step": 4 | 1058 | "step": 4 |
328 | 997 | }, | 1059 | }, |
329 | @@ -999,7 +1061,9 @@ | |||
330 | 999 | "expr": "rate(net_packets_sent{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*\"}[5m])", | 1061 | "expr": "rate(net_packets_sent{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*\"}[5m])", |
331 | 1000 | "format": "time_series", | 1062 | "format": "time_series", |
332 | 1001 | "intervalFactor": 2, | 1063 | "intervalFactor": 2, |
333 | 1064 | {% raw %} | ||
334 | 1002 | "legendFormat": "Out {{interface}} {{host}}", | 1065 | "legendFormat": "Out {{interface}} {{host}}", |
335 | 1066 | {% endraw %} | ||
336 | 1003 | "refId": "B", | 1067 | "refId": "B", |
337 | 1004 | "step": 4 | 1068 | "step": 4 |
338 | 1005 | }, | 1069 | }, |
339 | @@ -1007,7 +1071,9 @@ | |||
340 | 1007 | "expr": "rate(net_drop_in{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*\"}[5m])", | 1071 | "expr": "rate(net_drop_in{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*\"}[5m])", |
341 | 1008 | "format": "time_series", | 1072 | "format": "time_series", |
342 | 1009 | "intervalFactor": 2, | 1073 | "intervalFactor": 2, |
343 | 1074 | {% raw %} | ||
344 | 1010 | "legendFormat": "Drop In {{interface}} {{host}}", | 1075 | "legendFormat": "Drop In {{interface}} {{host}}", |
345 | 1076 | {% endraw %} | ||
346 | 1011 | "refId": "C", | 1077 | "refId": "C", |
347 | 1012 | "step": 4 | 1078 | "step": 4 |
348 | 1013 | }, | 1079 | }, |
349 | @@ -1015,7 +1081,9 @@ | |||
350 | 1015 | "expr": "rate(net_drop_out{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*\"}[5m])", | 1081 | "expr": "rate(net_drop_out{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*\"}[5m])", |
351 | 1016 | "format": "time_series", | 1082 | "format": "time_series", |
352 | 1017 | "intervalFactor": 2, | 1083 | "intervalFactor": 2, |
353 | 1084 | {% raw %} | ||
354 | 1018 | "legendFormat": "Drop Out {{interface}} {{host}}", | 1085 | "legendFormat": "Drop Out {{interface}} {{host}}", |
355 | 1086 | {% endraw %} | ||
356 | 1019 | "refId": "D", | 1087 | "refId": "D", |
357 | 1020 | "step": 4 | 1088 | "step": 4 |
358 | 1021 | } | 1089 | } |
359 | @@ -1096,7 +1164,9 @@ | |||
360 | 1096 | "format": "time_series", | 1164 | "format": "time_series", |
361 | 1097 | "interval": "", | 1165 | "interval": "", |
362 | 1098 | "intervalFactor": 2, | 1166 | "intervalFactor": 2, |
363 | 1167 | {% raw %} | ||
364 | 1099 | "legendFormat": "Err in {{interface}} {{host}}", | 1168 | "legendFormat": "Err in {{interface}} {{host}}", |
365 | 1169 | {% endraw %} | ||
366 | 1100 | "metric": "net_err_in", | 1170 | "metric": "net_err_in", |
367 | 1101 | "refId": "A", | 1171 | "refId": "A", |
368 | 1102 | "step": 4 | 1172 | "step": 4 |
369 | @@ -1105,7 +1175,9 @@ | |||
370 | 1105 | "expr": "rate(net_err_out{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*|^br.*\"}[5m])", | 1175 | "expr": "rate(net_err_out{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*|^br.*\"}[5m])", |
371 | 1106 | "format": "time_series", | 1176 | "format": "time_series", |
372 | 1107 | "intervalFactor": 2, | 1177 | "intervalFactor": 2, |
373 | 1178 | {% raw %} | ||
374 | 1108 | "legendFormat": "Err out {{interface}} {{host}}", | 1179 | "legendFormat": "Err out {{interface}} {{host}}", |
375 | 1180 | {% endraw %} | ||
376 | 1109 | "metric": "net_d", | 1181 | "metric": "net_d", |
377 | 1110 | "refId": "B", | 1182 | "refId": "B", |
378 | 1111 | "step": 4 | 1183 | "step": 4 |
379 | @@ -1115,7 +1187,9 @@ | |||
380 | 1115 | "format": "time_series", | 1187 | "format": "time_series", |
381 | 1116 | "interval": "", | 1188 | "interval": "", |
382 | 1117 | "intervalFactor": 2, | 1189 | "intervalFactor": 2, |
383 | 1190 | {% raw %} | ||
384 | 1118 | "legendFormat": "Drop in {{interface}} {{host}}", | 1191 | "legendFormat": "Drop in {{interface}} {{host}}", |
385 | 1192 | {% endraw %} | ||
386 | 1119 | "refId": "C", | 1193 | "refId": "C", |
387 | 1120 | "step": 4 | 1194 | "step": 4 |
388 | 1121 | }, | 1195 | }, |
389 | @@ -1123,7 +1197,9 @@ | |||
390 | 1123 | "expr": "rate(net_drop_in{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*|^br.*\"}[5m])", | 1197 | "expr": "rate(net_drop_in{host=~\"$host\",interface=~\"^bond.*|^eth.*|^en.*|^br.*\"}[5m])", |
391 | 1124 | "format": "time_series", | 1198 | "format": "time_series", |
392 | 1125 | "intervalFactor": 2, | 1199 | "intervalFactor": 2, |
393 | 1200 | {% raw %} | ||
394 | 1126 | "legendFormat": "Drop out {{interface}} {{host}}", | 1201 | "legendFormat": "Drop out {{interface}} {{host}}", |
395 | 1202 | {% endraw %} | ||
396 | 1127 | "refId": "D", | 1203 | "refId": "D", |
397 | 1128 | "step": 4 | 1204 | "step": 4 |
398 | 1129 | } | 1205 | } |
399 | @@ -1206,7 +1282,9 @@ | |||
400 | 1206 | "instant": false, | 1282 | "instant": false, |
401 | 1207 | "interval": "1m", | 1283 | "interval": "1m", |
402 | 1208 | "intervalFactor": 2, | 1284 | "intervalFactor": 2, |
403 | 1285 | {% raw %} | ||
404 | 1209 | "legendFormat": "{{host}} - {{bond}} - {{interface}}", | 1286 | "legendFormat": "{{host}} - {{bond}} - {{interface}}", |
405 | 1287 | {% endraw %} | ||
406 | 1210 | "metric": "bond_slave_failures", | 1288 | "metric": "bond_slave_failures", |
407 | 1211 | "refId": "A", | 1289 | "refId": "A", |
408 | 1212 | "step": 4 | 1290 | "step": 4 |
409 | @@ -1286,7 +1364,9 @@ | |||
410 | 1286 | "format": "time_series", | 1364 | "format": "time_series", |
411 | 1287 | "interval": "", | 1365 | "interval": "", |
412 | 1288 | "intervalFactor": 2, | 1366 | "intervalFactor": 2, |
413 | 1367 | {% raw %} | ||
414 | 1289 | "legendFormat": "{{host}} - {{interface}}", | 1368 | "legendFormat": "{{host}} - {{interface}}", |
415 | 1369 | {% endraw %} | ||
416 | 1290 | "metric": "bond_slave_status", | 1370 | "metric": "bond_slave_status", |
417 | 1291 | "refId": "A", | 1371 | "refId": "A", |
418 | 1292 | "step": 4 | 1372 | "step": 4 |
419 | @@ -1365,7 +1445,9 @@ | |||
420 | 1365 | "format": "time_series", | 1445 | "format": "time_series", |
421 | 1366 | "interval": "", | 1446 | "interval": "", |
422 | 1367 | "intervalFactor": 2, | 1447 | "intervalFactor": 2, |
423 | 1448 | {% raw %} | ||
424 | 1368 | "legendFormat": "{{host}} - {{bond}}", | 1449 | "legendFormat": "{{host}} - {{bond}}", |
425 | 1450 | {% endraw %} | ||
426 | 1369 | "metric": "", | 1451 | "metric": "", |
427 | 1370 | "refId": "A", | 1452 | "refId": "A", |
428 | 1371 | "step": 4 | 1453 | "step": 4 |
429 | @@ -1462,7 +1544,9 @@ | |||
430 | 1462 | "expr": "irate(diskio_reads{name=~\"bcache.*|[a-z]+\",host=~\"$host\"}[2m])", | 1544 | "expr": "irate(diskio_reads{name=~\"bcache.*|[a-z]+\",host=~\"$host\"}[2m])", |
431 | 1463 | "format": "time_series", | 1545 | "format": "time_series", |
432 | 1464 | "intervalFactor": 2, | 1546 | "intervalFactor": 2, |
433 | 1547 | {% raw %} | ||
434 | 1465 | "legendFormat": "{{host}} {{name}}", | 1548 | "legendFormat": "{{host}} {{name}}", |
435 | 1549 | {% endraw %} | ||
436 | 1466 | "refId": "B", | 1550 | "refId": "B", |
437 | 1467 | "step": 2 | 1551 | "step": 2 |
438 | 1468 | } | 1552 | } |
439 | @@ -1543,7 +1627,9 @@ | |||
440 | 1543 | "expr": "irate(diskio_writes{name=~\"bcache.*|[a-z]+\",host=~\"$host\"}[2m])", | 1627 | "expr": "irate(diskio_writes{name=~\"bcache.*|[a-z]+\",host=~\"$host\"}[2m])", |
441 | 1544 | "format": "time_series", | 1628 | "format": "time_series", |
442 | 1545 | "intervalFactor": 2, | 1629 | "intervalFactor": 2, |
443 | 1630 | {% raw %} | ||
444 | 1546 | "legendFormat": "{{host}} {{name}}", | 1631 | "legendFormat": "{{host}} {{name}}", |
445 | 1632 | {% endraw %} | ||
446 | 1547 | "refId": "B", | 1633 | "refId": "B", |
447 | 1548 | "step": 2 | 1634 | "step": 2 |
448 | 1549 | } | 1635 | } |
449 | @@ -1624,7 +1710,9 @@ | |||
450 | 1624 | "expr": "irate(diskio_read_bytes{name=~\"bcache.*|[a-z]+\",host=~\"$host\"}[2m])", | 1710 | "expr": "irate(diskio_read_bytes{name=~\"bcache.*|[a-z]+\",host=~\"$host\"}[2m])", |
451 | 1625 | "format": "time_series", | 1711 | "format": "time_series", |
452 | 1626 | "intervalFactor": 2, | 1712 | "intervalFactor": 2, |
453 | 1713 | {% raw %} | ||
454 | 1627 | "legendFormat": "{{host}} {{name}}", | 1714 | "legendFormat": "{{host}} {{name}}", |
455 | 1715 | {% endraw %} | ||
456 | 1628 | "refId": "B", | 1716 | "refId": "B", |
457 | 1629 | "step": 2 | 1717 | "step": 2 |
458 | 1630 | } | 1718 | } |
459 | @@ -1705,7 +1793,9 @@ | |||
460 | 1705 | "expr": "irate(diskio_write_bytes{name=~\"bcache.*|[a-z]+\",host=~\"$host\"}[2m])", | 1793 | "expr": "irate(diskio_write_bytes{name=~\"bcache.*|[a-z]+\",host=~\"$host\"}[2m])", |
461 | 1706 | "format": "time_series", | 1794 | "format": "time_series", |
462 | 1707 | "intervalFactor": 2, | 1795 | "intervalFactor": 2, |
463 | 1796 | {% raw %} | ||
464 | 1708 | "legendFormat": "{{host}} {{name}}", | 1797 | "legendFormat": "{{host}} {{name}}", |
465 | 1798 | {% endraw %} | ||
466 | 1709 | "refId": "B", | 1799 | "refId": "B", |
467 | 1710 | "step": 2 | 1800 | "step": 2 |
468 | 1711 | } | 1801 | } |
469 | @@ -1797,7 +1887,9 @@ | |||
470 | 1797 | "format": "time_series", | 1887 | "format": "time_series", |
471 | 1798 | "interval": "", | 1888 | "interval": "", |
472 | 1799 | "intervalFactor": 2, | 1889 | "intervalFactor": 2, |
473 | 1890 | {% raw %} | ||
474 | 1800 | "legendFormat": "{{host}} {{bcache_dev}}/{{backing_dev}}", | 1891 | "legendFormat": "{{host}} {{bcache_dev}}/{{backing_dev}}", |
475 | 1892 | {% endraw %} | ||
476 | 1801 | "metric": "bcache_dirty_data", | 1893 | "metric": "bcache_dirty_data", |
477 | 1802 | "refId": "A", | 1894 | "refId": "A", |
478 | 1803 | "step": 4 | 1895 | "step": 4 |
479 | @@ -1877,7 +1969,9 @@ | |||
480 | 1877 | "format": "time_series", | 1969 | "format": "time_series", |
481 | 1878 | "interval": "", | 1970 | "interval": "", |
482 | 1879 | "intervalFactor": 2, | 1971 | "intervalFactor": 2, |
483 | 1972 | {% raw %} | ||
484 | 1880 | "legendFormat": "{{host}} {{bcache_dev}}/{{backing_dev}}", | 1973 | "legendFormat": "{{host}} {{bcache_dev}}/{{backing_dev}}", |
485 | 1974 | {% endraw %} | ||
486 | 1881 | "metric": "bcache_cache_hit_ratio", | 1975 | "metric": "bcache_cache_hit_ratio", |
487 | 1882 | "refId": "A", | 1976 | "refId": "A", |
488 | 1883 | "step": 4 | 1977 | "step": 4 |
489 | @@ -1956,7 +2050,9 @@ | |||
490 | 1956 | "format": "time_series", | 2050 | "format": "time_series", |
491 | 1957 | "interval": "", | 2051 | "interval": "", |
492 | 1958 | "intervalFactor": 2, | 2052 | "intervalFactor": 2, |
493 | 2053 | {% raw %} | ||
494 | 1959 | "legendFormat": "{{host}} {{bcache_dev}}/{{backing_dev}}", | 2054 | "legendFormat": "{{host}} {{bcache_dev}}/{{backing_dev}}", |
495 | 2055 | {% endraw %} | ||
496 | 1960 | "metric": "bcache_bypassed", | 2056 | "metric": "bcache_bypassed", |
497 | 1961 | "refId": "A", | 2057 | "refId": "A", |
498 | 1962 | "step": 4 | 2058 | "step": 4 |
499 | @@ -2048,7 +2144,9 @@ | |||
500 | 2048 | "format": "time_series", | 2144 | "format": "time_series", |
501 | 2049 | "interval": "", | 2145 | "interval": "", |
502 | 2050 | "intervalFactor": 2, | 2146 | "intervalFactor": 2, |
503 | 2147 | {% raw %} | ||
504 | 2051 | "legendFormat": "{{host}}", | 2148 | "legendFormat": "{{host}}", |
505 | 2149 | {% endraw %} | ||
506 | 2052 | "metric": "exec", | 2150 | "metric": "exec", |
507 | 2053 | "refId": "A", | 2151 | "refId": "A", |
508 | 2054 | "step": 2 | 2152 | "step": 2 |
509 | @@ -2127,7 +2225,9 @@ | |||
510 | 2127 | "format": "time_series", | 2225 | "format": "time_series", |
511 | 2128 | "interval": "", | 2226 | "interval": "", |
512 | 2129 | "intervalFactor": 2, | 2227 | "intervalFactor": 2, |
513 | 2228 | {% raw %} | ||
514 | 2130 | "legendFormat": "{{host}} - Count", | 2229 | "legendFormat": "{{host}} - Count", |
515 | 2230 | {% endraw %} | ||
516 | 2131 | "metric": "conntrack_ip_conntrack_count", | 2231 | "metric": "conntrack_ip_conntrack_count", |
517 | 2132 | "refId": "A", | 2232 | "refId": "A", |
518 | 2133 | "step": 2 | 2233 | "step": 2 |
519 | @@ -2184,18 +2284,38 @@ | |||
520 | 2184 | "templating": { | 2284 | "templating": { |
521 | 2185 | "list": [ | 2285 | "list": [ |
522 | 2186 | { | 2286 | { |
524 | 2187 | "allValue": ".*", | 2287 | "allValue": "", |
525 | 2188 | "current": {}, | 2288 | "current": {}, |
526 | 2189 | "datasource": "{{ datasource }}", | 2289 | "datasource": "{{ datasource }}", |
527 | 2190 | "hide": 0, | 2290 | "hide": 0, |
530 | 2191 | "includeAll": false, | 2291 | "includeAll": true, |
531 | 2192 | "label": "non-juju hosts", | 2292 | "label": null, |
532 | 2293 | "multi": true, | ||
533 | 2294 | "name": "juju_model", | ||
534 | 2295 | "options": [], | ||
535 | 2296 | "query": "system_load1{}", | ||
536 | 2297 | "refresh": 1, | ||
537 | 2298 | "regex": ".*host=\"([^:]+).*$", | ||
538 | 2299 | "sort": 1, | ||
539 | 2300 | "tagValuesQuery": "", | ||
540 | 2301 | "tags": [], | ||
541 | 2302 | "tagsQuery": "", | ||
542 | 2303 | "type": "query", | ||
543 | 2304 | "useTags": false | ||
544 | 2305 | }, | ||
545 | 2306 | { | ||
546 | 2307 | "allValue": "", | ||
547 | 2308 | "current": {}, | ||
548 | 2309 | "datasource": "{{ datasource }}", | ||
549 | 2310 | "hide": 0, | ||
550 | 2311 | "includeAll": true, | ||
551 | 2312 | "label": null, | ||
552 | 2193 | "multi": true, | 2313 | "multi": true, |
553 | 2194 | "name": "host", | 2314 | "name": "host", |
554 | 2195 | "options": [], | 2315 | "options": [], |
556 | 2196 | "query": "system_load1", | 2316 | "query": "system_load1{host=~\".*^($juju_model).*\"}", |
557 | 2197 | "refresh": 1, | 2317 | "refresh": 1, |
559 | 2198 | "regex": ".*host=\"([^\"]+)\".*$", | 2318 | "regex": ".*host=\"([^\"]+).*", |
560 | 2199 | "sort": 1, | 2319 | "sort": 1, |
561 | 2200 | "tagValuesQuery": "", | 2320 | "tagValuesQuery": "", |
562 | 2201 | "tags": [], | 2321 | "tags": [], |
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.