Skip to content

Commit

Permalink
Cut down console template examples to just node and prometheus (prome…
Browse files Browse the repository at this point in the history
…theus#3099)

These haven't seen much love, and grafana.com dashboard sharing
has become more promiment. Keep 2 for the sake of demos.
  • Loading branch information
brian-brazil authored Aug 21, 2017
1 parent 41884f0 commit 7ebd74b
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 761 deletions.
72 changes: 0 additions & 72 deletions console_libraries/menu.lib
Original file line number Diff line number Diff line change
Expand Up @@ -31,40 +31,6 @@
<ul>
{{ template "_menuItem" (args . "index.html.example" "Overview") }}

{{ if query "up{job='haproxy'}" }}
{{ template "_menuItem" (args . "haproxy.html" "HAProxy") }}
{{ if match "^haproxy" .Path }}
<ul>
{{ template "_menuItem" (args . "haproxy-frontends.html" "Frontends") }}
{{ if .Params.frontend }}
<li>
<ul>
<li>
<a href="haproxy-frontend.html?frontend={{ .Params.frontend }}">{{ .Params.frontend }}</a></li>
</ul>
</li>
{{ end }}
{{ template "_menuItem" (args . "haproxy-backends.html" "Backends") }}
{{ if .Params.backend }}
<li>
<ul>
<li>
<a href="haproxy-backend.html?backend={{ .Params.backend }}">{{ .Params.backend }}</a></li>
</ul>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}

{{ if query "up{job='cassandra'}" }}
{{ template "_menuItem" (args . "cassandra.html" "Cassandra") }}
{{ end }}

{{ if query "up{job='blackbox'}" }}
{{ template "_menuItem" (args . "blackbox.html" "Blackbox") }}
{{ end }}

{{ if query "up{job='node'}" }}
{{ template "_menuItem" (args . "node.html" "Node") }}
{{ if match "^node" .Path }}
Expand Down Expand Up @@ -99,44 +65,6 @@
{{ end }}
{{ end }}


{{ if query "up{job='snmp'}" }}
{{ template "_menuItem" (args . "snmp.html" "SNMP") }}
{{ if match "^snmp" .Path }}
{{ if .Params.instance }}
<ul>
<li {{ if eq .Path "snmp-overview.html" }}class="prom_lhs_menu_selected"{{ end }}>
<a href="snmp-overview.html?instance={{ .Params.instance }}">{{.Params.instance }}</a>
</li>
</ul>
{{ end }}
{{ end }}
{{ end }}


{{ if query "up{job='cloudwatch'}" }}
{{ template "_menuItem" (args . "cloudwatch.html" "CloudWatch") }}
{{ end }}

{{ if query "aws_elasticache_cpuutilization_average{job='aws_elasticache'}" }}
{{ template "_menuItem" (args . "aws_elasticache.html" "ElastiCache") }}
{{ end }}

{{ if query "aws_elb_healthy_host_count_average{job='aws_elb'}" }}
{{ template "_menuItem" (args . "aws_elb.html" "ELB") }}
{{ end }}

{{ if query "aws_redshift_health_status_average{job='aws_redshift'}" }}
{{ template "_menuItem" (args . "aws_redshift.html" "Redshift") }}
{{ if and (eq "aws_redshift-cluster.html" .Path) .Params.cluster_identifier }}
<ul>
<li class="prom_lhs_menu_selected">
{{ reReplaceAll "^(.{8}).{8,}(.{8})$" "$1...$2" .Params.cluster_identifier }}
</li>
</ul>
{{ end }}
{{ end }}

</ul>
</div>
{{ end }}
Expand Down
45 changes: 0 additions & 45 deletions consoles/aws_elasticache.html

This file was deleted.

46 changes: 0 additions & 46 deletions consoles/aws_elb.html

This file was deleted.

83 changes: 0 additions & 83 deletions consoles/aws_redshift-cluster.html

This file was deleted.

28 changes: 0 additions & 28 deletions consoles/aws_redshift.html

This file was deleted.

52 changes: 0 additions & 52 deletions consoles/blackbox.html

This file was deleted.

Loading

0 comments on commit 7ebd74b

Please sign in to comment.