diff --git a/console_libraries/menu.lib b/console_libraries/menu.lib index 6c5c54e618..929dc362a3 100644 --- a/console_libraries/menu.lib +++ b/console_libraries/menu.lib @@ -31,40 +31,6 @@ {{ end }} diff --git a/consoles/aws_elasticache.html b/consoles/aws_elasticache.html deleted file mode 100644 index 15f76ede29..0000000000 --- a/consoles/aws_elasticache.html +++ /dev/null @@ -1,45 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} -{{ range printf "sum by (cache_cluster_id)(aws_elasticache_cpuutilization_average{job='aws_elasticache'})" | query | sortByLabel "cache_cluster_id" }} - - {{ .Labels.cache_cluster_id }} - - - CPU - {{ template "prom_query_drilldown" (args (printf "aws_elasticache_cpuutilization_average{job='aws_elasticache',cache_cluster_id='%s'}" .Labels.cache_cluster_id) "%" "printf.3g") }} - - - Cache Size - {{ template "prom_query_drilldown" (args (printf "aws_elasticache_bytes_used_for_cache_average{job='aws_elasticache',cache_cluster_id='%s'}" .Labels.cache_cluster_id) "B" "humanize1024") }} - - - Cache Items - {{ template "prom_query_drilldown" (args (printf "aws_elasticache_curr_items_average{job='aws_elasticache',cache_cluster_id='%s'}" .Labels.cache_cluster_id) "" "humanize") }} - - - Freeable Memory - {{ template "prom_query_drilldown" (args (printf "aws_elasticache_freeable_memory_average{job='aws_elasticache',cache_cluster_id='%s'}" .Labels.cache_cluster_id) "B" "humanize1024") }} - -{{ end }} -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" . }} -

AWS ElastiCache

- -

CPU

-
- -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/aws_elb.html b/consoles/aws_elb.html deleted file mode 100644 index 5626880ad8..0000000000 --- a/consoles/aws_elb.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} -{{ range query "sum by (load_balancer_name)(aws_elb_healthy_host_count_average{job='aws_elb'})" | sortByLabel "load_balancer_name" }} - - {{ .Labels.load_balancer_name }} - - - Healthy Hosts - {{ template "prom_query_drilldown" (args (printf "avg(aws_elb_healthy_host_count_average{job='aws_elb',load_balancer_name='%s'})" .Labels.load_balancer_name) ) }} / {{ template "prom_query_drilldown" (args (printf "avg(aws_elb_healthy_host_count_average{job='aws_elb',load_balancer_name='%s'}) + avg(aws_elb_un_healthy_host_count_average{job='aws_elb',load_balancer_name='%s'})" .Labels.load_balancer_name .Labels.load_balancer_name) ) }} - - - Queries - {{ template "prom_query_drilldown" (args (printf "sum(aws_elb_request_count_sum{job='aws_elb',load_balancer_name='%s'}) / 60" .Labels.load_balancer_name) "/s" "humanizeNoSmallPrefix") }} - - - Latency - {{ template "prom_query_drilldown" (args (printf "avg(aws_elb_latency_average{job='aws_elb',load_balancer_name='%s'})" .Labels.load_balancer_name) "s" "humanize") }} - - - Surge Queue - {{ template "prom_query_drilldown" (args (printf "sum(aws_elb_surge_queue_length_sum{job='aws_elb',load_balancer_name='%s'})" .Labels.load_balancer_name) "" "humanize") }} - -{{ end }} -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" . }} -

AWS Elastic Load Balancer

-

This console assumes that period_seconds in the CloudWatch Exporter is the default of 60s.

- -

Queries

-
- -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/aws_redshift-cluster.html b/consoles/aws_redshift-cluster.html deleted file mode 100644 index 5d75dfb25f..0000000000 --- a/consoles/aws_redshift-cluster.html +++ /dev/null @@ -1,83 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} - - Nodes - {{ template "prom_query_drilldown" (args (printf "count(aws_redshift_percentage_disk_space_used_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier)) }} - - - Healthy - {{ with printf "aws_redshift_health_status_average{job='aws_redshift',cluster_identifier='%s'}" .Params.cluster_identifier | query }}{{ if eq (. | first | value) 1.0 }}Yes{{ else }}No{{ end }} {{ end }} - - - Maintenance mode - {{ with printf "aws_redshift_maintenance_mode_average{job='aws_redshift',cluster_identifier='%s'}" .Params.cluster_identifier | query }}{{ if eq (. | first | value) 1.0 }}Yes{{ else }}No{{ end }} {{ end }} - - - Connections - {{ template "prom_query_drilldown" (args (printf "aws_redshift_database_connections_average{job='aws_redshift',cluster_identifier='%s'}" .Params.cluster_identifier)) }} - - - CPU - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_cpuutilization_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "%" "printf.3g") }} - - - Disk Used - {{ template "prom_query_drilldown" (args (printf "max(aws_redshift_percentage_disk_space_used_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "%" "printf.3g") }} - - - Network Transmitted - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_network_transmit_throughput_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "B/s" "humanize") }} - - - Network Received - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_network_receive_throughput_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "B/s" "humanize") }} - - - Read Throughput - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_read_throughput_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "B/s" "humanize") }} - - - Read IOPS - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_read_iops_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "/s" "humanizeNoSmallPrefix") }} - - - Read Latency - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_read_latency_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "s" "humanize") }} - - - Write Throughput - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_write_throughput_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "B/s" "humanize") }} - - - Write IOPS - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_write_iops_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "/s" "humanizeNoSmallPrefix") }} - - - Write Latency - {{ template "prom_query_drilldown" (args (printf "avg(aws_redshift_write_latency_average{job='aws_redshift',cluster_identifier='%s'})" .Params.cluster_identifier) "s" "humanize") }} - -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" . }} -

AWS Redshift

-

Cluster: {{ .Params.cluster_identifier }}

- -

CPU Usage

-
- - - -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/aws_redshift.html b/consoles/aws_redshift.html deleted file mode 100644 index 42ef272f7c..0000000000 --- a/consoles/aws_redshift.html +++ /dev/null @@ -1,28 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_content_head" . }} -

AWS Redshift

- -

Overview

- - - - - - - - -{{ range printf "sum by (cluster_identifier)(aws_redshift_health_status_average{job='aws_redshift'})" | query | sortByLabel "cluster_identifier" }} - - - - - - - -{{ end }} -
ClusterHealthyMaintenance ModeNodesDisk Used
{{ .Labels.cluster_identifier }}{{ with printf "aws_redshift_health_status_average{job='aws_redshift',cluster_identifier='%s'}" .Labels.cluster_identifier | query }}{{ if eq (. | first | value) 1.0 }}Yes{{ else }}No{{ end }} {{ end }}{{ with printf "aws_redshift_maintenance_mode_average{job='aws_redshift',cluster_identifier='%s'}" .Labels.cluster_identifier | query }}{{ if eq (. | first | value) 1.0 }}Yes{{ else }}No{{ end }} {{ end }}{{ template "prom_query_drilldown" (args (printf "count(aws_redshift_percentage_disk_space_used_average{job='aws_redshift',cluster_identifier='%s'})" .Labels.cluster_identifier)) }}{{ template "prom_query_drilldown" (args (printf "max(aws_redshift_percentage_disk_space_used_average{job='aws_redshift',cluster_identifier='%s'})" .Labels.cluster_identifier) "%" "printf.3g") }}
- -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/blackbox.html b/consoles/blackbox.html deleted file mode 100644 index 737faa74b2..0000000000 --- a/consoles/blackbox.html +++ /dev/null @@ -1,52 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} - - Blackbox - {{ template "prom_query_drilldown" (args "sum(up{job='blackbox'})") }} / {{ template "prom_query_drilldown" (args "count(up{job='blackbox'})") }} - - - - Currently - -{{ range query "probe_success{job='blackbox'}" | sortByLabel "instance" }} - - - {{ .Labels.instance }} - Up{{ else }} class="alert-danger">Down{{ end }} - -{{ end }} - - - Past Day % - -{{ range query "avg_over_time(probe_success{job='blackbox'}[1d]) * 100" | sortByLabel "instance" }} - - {{ .Labels.instance }} - - {{ (. | value | printf "%.2f") }}% - -{{ end }} - -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" .}} -

Blackbox

- -

Response times

-
- - -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/cassandra.html b/consoles/cassandra.html deleted file mode 100644 index 4691949226..0000000000 --- a/consoles/cassandra.html +++ /dev/null @@ -1,77 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} -{{ template "prom_right_table_job_head" "cassandra" }} - - Queries - {{ template "prom_query_drilldown" (args "sum by (job)(irate(cassandra_clientrequest_latency{job='cassandra'}[5m]))" "/s" "humanizeNoSmallPrefix") }} - - - Timeout Ratio - {{ template "prom_query_drilldown" (args "sum by (job)(irate(cassandra_clientrequest_timeouts{job='cassandra'}[5m])) / sum by (job)(irate(cassandra_clientrequest_latency{job='cassandra'}[5m]))" "" "humanizeNoSmallPrefix") }} - - - Unavailable Ratio - {{ template "prom_query_drilldown" (args "sum by (job)(irate(cassandra_clientrequest_unavailables{job='cassandra'}[5m])) / sum by (job)(irate(cassandra_clientrequest_latency{job='cassandra'}[5m]))" "" "humanizeNoSmallPrefix") }} - -Internals - - Hints Inprogress - {{ template "prom_query_drilldown" (args "sum by (job)(cassandra_storage_totalhintsinprogress{job='cassandra'})" "" "humanize") }} - - - Blocked Tasks - {{ template "prom_query_drilldown" (args "sum by (job)(cassandra_threadpools_currentlyblockedtasks{job='cassandra'})" "" "humanize") }} - -Average Node Disk - - Compacted - {{ template "prom_query_drilldown" (args "avg by (job)(irate(cassandra_compaction_bytescompacted{job='cassandra'}[5m]))" "B/s" "humanize1024") }} - - - Live CF - {{ template "prom_query_drilldown" (args "avg by (job)(sum by (job, instance)(cassandra_columnfamily_totaldiskspaceused{job='cassandra'}))" "B" "humanize1024") }} - - - Total CF - {{ template "prom_query_drilldown" (args "avg by (job)(sum by (job, instance)(cassandra_columnfamily_totaldiskspaceused{job='cassandra'}))" "B" "humanize1024") }} - - - Commit Log - {{ template "prom_query_drilldown" (args "avg by (job)(cassandra_commitlog_totalcommitlogsize{job='cassandra'})" "B" "humanize1024") }} - -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" .}} -

Cassandra

- -

Client Queries

-
- - -

Client Latency

-
- -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/cloudwatch.html b/consoles/cloudwatch.html deleted file mode 100644 index 760d2b8296..0000000000 --- a/consoles/cloudwatch.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} - - cloudwatch - {{ template "prom_query_drilldown" (args "sum(up{job='cloudwatch'})") }} / {{ template "prom_query_drilldown" (args "count(up{job='cloudwatch'})") }} - - - - API Requests - {{ template "prom_query_drilldown" (args "sum by (job)(irate(cloudwatch_requests_total{job='cloudwatch'}[5m]))" "/s" "humanizeNoSmallPrefix") }} - -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" . }} -

CloudWatch Exporter

-{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/haproxy-backend.html b/consoles/haproxy-backend.html deleted file mode 100644 index a8032ebae3..0000000000 --- a/consoles/haproxy-backend.html +++ /dev/null @@ -1,58 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} - {{ .Params.backend }}{{ template "prom_query_drilldown" (args (printf "sum(min by (server)(haproxy_server_up{job='haproxy',backend='%s'}))" .Params.backend)) }} / {{ template "prom_query_drilldown" (args (printf "count(sum by (server)(haproxy_server_up{job='haproxy',backend='%s'}))" .Params.backend))}} - - Responses - {{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_backend_http_responses_total{job='haproxy',backend='%s'}[5m]))" .Params.backend) "/s" "humanizeNoSmallPrefix") }} - - - Data In - {{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_backend_bytes_in_total{job='haproxy',backend='%s'}[5m]))" .Params.backend) "B/s" "humanize") }} - - - Data Out - {{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_backend_bytes_out_total{job='haproxy',backend='%s'}[5m]))" .Params.backend) "B/s" "humanize") }} - - - Current Sessions - {{ template "prom_query_drilldown" (args (printf "sum(haproxy_backend_current_sessions{job='haproxy',backend='%s'})" .Params.backend) "" "humanize") }} - - - Current Queue - {{ template "prom_query_drilldown" (args (printf "sum(haproxy_backend_current_queue{job='haproxy',backend='%s'})" .Params.backend) "" "humanize") }} - - Server Errors - - Connection Errors - {{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_backend_connection_errors_total{job='haproxy',backend='%s'}[5m]))" .Params.backend) "/s" "humanizeNoSmallPrefix") }} - - - Response Errors - {{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_backend_connection_errors_total{job='haproxy',backend='%s'}[5m]))" .Params.backend) "/s" "humanizeNoSmallPrefix") }} - - - Retry Warnings - {{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_backend_retry_warnings_total{job='haproxy',backend='%s'}[5m]))" .Params.backend) "/s" "humanizeNoSmallPrefix") }} - -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" . }} -

HAProxy Backend - {{ .Params.backend }}

- -

Responses

-
- -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/haproxy-backends.html b/consoles/haproxy-backends.html deleted file mode 100644 index c7de35f525..0000000000 --- a/consoles/haproxy-backends.html +++ /dev/null @@ -1,29 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_content_head" . }} -

HAProxy Backends

- - - - - - - - - -{{ range query "count by (backend)(haproxy_backend_http_responses_total{job='haproxy'})" | sortByLabel "backend" }} - - - - - - -{{ else }} - -{{ end }} - - -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/haproxy-frontend.html b/consoles/haproxy-frontend.html deleted file mode 100644 index 8dfabffcec..0000000000 --- a/consoles/haproxy-frontend.html +++ /dev/null @@ -1,45 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} - - - - - - - - - - - - - - - - - - - - - -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" . }} -

HAProxy Frontend - {{ .Params.frontend }}

- -

Responses

-
- -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/haproxy-frontends.html b/consoles/haproxy-frontends.html deleted file mode 100644 index d7833801f6..0000000000 --- a/consoles/haproxy-frontends.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_content_head" . }} -

HAProxy Frontends

- -
BackendServers HealthyResponsesSessionsQueue
{{ .Labels.backend }}{{ template "prom_query_drilldown" (args (printf "sum(min by (server)(haproxy_server_up{job='haproxy',backend='%s'}))" .Labels.backend)) }} / {{ template "prom_query_drilldown" (args (printf "count(sum by (server)(haproxy_server_up{job='haproxy',backend='%s'}))" .Labels.backend))}} - {{ template "prom_query_drilldown" (args (printf "sum by(backend)(irate(haproxy_backend_http_responses_total{job='haproxy',backend='%s'}[5m]))" .Labels.backend) "/s" "humanizeNoSmallPrefix") }}{{ template "prom_query_drilldown" (args (printf "sum by(backend)(haproxy_backend_current_sessions{job='haproxy',backend='%s'})" .Labels.backend) "" "humanize") }}{{ template "prom_query_drilldown" (args (printf "sum by(backend)(haproxy_backend_current_queue{job='haproxy',backend='%s'})" .Labels.backend) "" "humanize") }}
No backends found.
{{ .Params.frontend }}
Requests{{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_frontend_http_requests_total{job='haproxy',frontend='%s'}[5m]))" .Params.frontend) "/s" "humanizeNoSmallPrefix") }}
Requests Denied{{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_frontend_requests_denied_total{job='haproxy',frontend='%s'}[5m]))" .Params.frontend) "/s" "humanizeNoSmallPrefix") }}
Data In{{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_frontend_bytes_in_total{job='haproxy',frontend='%s'}[5m]))" .Params.frontend) "B/s" "humanize") }}
Data Out{{ template "prom_query_drilldown" (args (printf "sum(irate(haproxy_frontend_bytes_out_total{job='haproxy',frontend='%s'}[5m]))" .Params.frontend) "B/s" "humanize") }}
Current Sessions{{ template "prom_query_drilldown" (args (printf "sum(haproxy_frontend_current_sessions{job='haproxy',frontend='%s'})" .Params.frontend) "" "humanize") }}
- - - - - -{{ range query "count by (frontend)(haproxy_frontend_http_requests_total{job='haproxy'})" | sortByLabel "frontend" }} - - - - - -{{ else }} - -{{ end }} - - -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/haproxy.html b/consoles/haproxy.html deleted file mode 100644 index 66a6a0b7c1..0000000000 --- a/consoles/haproxy.html +++ /dev/null @@ -1,84 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" . }} -

HAProxy

- -

Frontend Requests

-
- -

Backend Responses

-
- -

Current Sessions

-
- -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/index.html.example b/consoles/index.html.example index 12f3e29d22..e20e009f06 100644 --- a/consoles/index.html.example +++ b/consoles/index.html.example @@ -5,7 +5,7 @@ {{ template "prom_content_head" . }}

Overview

-

These are example consoles for Prometheus, they are still under development.

+

These are example consoles for Prometheus.

These consoles expect exporters to have the following job labels:

FrontendRequestsSessions
{{ .Labels.frontend }}{{ template "prom_query_drilldown" (args (printf "sum by(frontend)(irate(haproxy_frontend_http_requests_total{job='haproxy',frontend='%s'}[5m]))" .Labels.frontend) "/s" "humanizeNoSmallPrefix") }}{{ template "prom_query_drilldown" (args (printf "sum by(frontend)(haproxy_frontend_current_sessions{job='haproxy',frontend='%s'})" .Labels.frontend) "" "humanize") }}
No frontends found.
HAProxy{{ template "prom_query_drilldown" (args "sum(haproxy_up{job='haproxy'})") }} / {{ template "prom_query_drilldown" (args "count(up{job='haproxy'})") }}
CPU{{ template "prom_query_drilldown" (args "avg by(job)(irate(haproxy_process_cpu_seconds_total{job='haproxy'}[5m]))" "s/s" "humanizeNoSmallPrefix") }}
Memory{{ template "prom_query_drilldown" (args "avg by(job)(haproxy_process_resident_memory_bytes{job='haproxy'})" "B" "humanize1024") }}
Frontend
Requests{{ template "prom_query_drilldown" (args "sum(irate(haproxy_frontend_http_requests_total{job='haproxy'}[5m]))" "/s" "humanizeNoSmallPrefix") }}
Requests Denied{{ template "prom_query_drilldown" (args "sum(irate(haproxy_frontend_requests_denied_total{job='haproxy'}[5m]))" "/s" "humanizeNoSmallPrefix") }}
Data In{{ template "prom_query_drilldown" (args "sum(irate(haproxy_frontend_bytes_in_total{job='haproxy'}[5m]))" "B/s" "humanize") }}
Data Out{{ template "prom_query_drilldown" (args "sum(irate(haproxy_frontend_bytes_out_total{job='haproxy'}[5m]))" "B/s" "humanize") }}
Current Sessions{{ template "prom_query_drilldown" (args "sum(haproxy_frontend_current_sessions{job='haproxy'})" "" "humanize") }}
@@ -21,26 +21,6 @@ - - - - - - - - - - - - - - - - - - - -
Prometheus prometheus
SNMP Exportersnmp
HAProxy Exporterhaproxy
CloudWatch Exportercloudwatch
Cassandra (JMX Exporter)cassandra
Blackbox (Prober)blackbox
{{ template "prom_content_tail" . }} diff --git a/consoles/snmp-overview.html b/consoles/snmp-overview.html deleted file mode 100644 index 052e0b6fff..0000000000 --- a/consoles/snmp-overview.html +++ /dev/null @@ -1,36 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_content_head" . }} -

SNMP Device Overview - {{ .Params.instance }}

- - - - - - - - - - - -{{ range query (printf "ifOperStatus{job='snmp',instance='%s'}" .Params.instance) | sortByLabel "ifDescr" }} - - - - - - - - - -{{ end }} -{{ template "prom_content_tail" . }} - -{{ template "tail" }} diff --git a/consoles/snmp.html b/consoles/snmp.html deleted file mode 100644 index 13e24626d8..0000000000 --- a/consoles/snmp.html +++ /dev/null @@ -1,41 +0,0 @@ -{{ template "head" . }} - -{{ template "prom_right_table_head" }} - - - - -{{ template "prom_right_table_tail" }} - -{{ template "prom_content_head" . }} -

SNMP

- -
PortStatusSpeedInOutDiscardsErrors
{{ .Labels.ifDescr }}up - {{ else if eq (. | value) 2.0}}">down - {{ else if eq (. | value) 3.0}}">testing - {{ else if eq (. | value) 4.0}}">unknown - {{ else if eq (. | value) 5.0}}">dormant - {{ else if eq (. | value) 6.0}}">notPresent - {{ else if eq (. | value) 7.0}}">lowerLayerDown - {{else}}">{{ end }}{{ template "prom_query_drilldown" (args (printf "ifHighSpeed{job='snmp',instance='%s',ifDescr='%s'} * 1e6 or ifSpeed{job='snmp',instance='%s',ifDescr='%s'}" .Labels.instance .Labels.ifDescr .Labels.instance .Labels.ifDescr) "b/s" "humanize")}}{{ template "prom_query_drilldown" (args (printf "irate(ifHCInOctets{job='snmp',instance='%s',ifDescr='%s'}[5m]) * 8 or irate(ifInOctets{job='snmp',instance='%s',ifDescr='%s'}[5m]) * 8" .Labels.instance .Labels.ifDescr .Labels.instance .Labels.ifDescr) "b/s" "humanize")}}{{ template "prom_query_drilldown" (args (printf "irate(ifHCOutOctets{job='snmp',instance='%s',ifDescr='%s'}[5m]) * 8 or irate(ifOutOctets{job='snmp',instance='%s',ifDescr='%s'}[5m]) * 8" .Labels.instance .Labels.ifDescr .Labels.instance .Labels.ifDescr) "b/s" "humanize")}}{{ template "prom_query_drilldown" (args (printf "irate(ifInDiscards{job='snmp',instance='%s',ifDescr='%s'}[5m]) + irate(ifOutDiscards{job='snmp',instance='%s',ifDescr='%s'}[5m]) * 8" .Labels.instance .Labels.ifDescr .Labels.instance .Labels.ifDescr) "/s" "humanizeNoSmallPrefix")}}{{ template "prom_query_drilldown" (args (printf "irate(ifInErrors{job='snmp',instance='%s',ifDescr='%s'}[5m]) + irate(ifOutErrors{job='snmp',instance='%s',ifDescr='%s'}[5m]) * 8" .Labels.instance .Labels.ifDescr .Labels.instance .Labels.ifDescr) "/s" "humanizeNoSmallPrefix")}}
SNMP{{ template "prom_query_drilldown" (args "sum(up{job='snmp'})") }} / {{ template "prom_query_drilldown" (args "count(up{job='snmp'})") }}
- - - - - - - - - - -{{ range query "up{job='snmp'}" | sortByLabel "instance" }} - - - - - - - - - - -{{ else }} - -{{ end }} - -{{ template "prom_content_tail" . }} - -{{ template "tail" }}
DeviceUpPorts UpPorts TotalInOutDiscardsErrors
{{ .Labels.instance }}Yes{{ else }} class="alert-danger">No{{ end }}{{ query (printf "ifOperStatus{job='snmp',instance='%s'} == 1" .Labels.instance) | len }}{{ template "prom_query_drilldown" (args (printf "count(ifOperStatus{job='snmp',instance='%s'})" .Labels.instance) ) }}{{ template "prom_query_drilldown" (args (printf "8 * sum by (instance)(irate(ifHCInOctets{job='snmp',instance='%s'}[5m]) or irate(ifInOctets{job='snmp',instance='%s'}[5m]))" .Labels.instance .Labels.instance) "b/s" "humanize")}}{{ template "prom_query_drilldown" (args (printf "8 * sum by (instance)(irate(ifHCOutOctets{job='snmp',instance='%s'}[5m]) or irate(ifOutOctets{job='snmp',instance='%s'}[5m]))" .Labels.instance .Labels.instance) "b/s" "humanize")}}{{ template "prom_query_drilldown" (args (printf "8 * sum by (instance)(irate(ifInDiscards{job='snmp',instance='%s'}[5m]) or irate(ifOutDiscards{job='snmp',instance='%s'}[5m]))" .Labels.instance .Labels.instance) "/s" "humanizeNoSmallPrefix")}}{{ template "prom_query_drilldown" (args (printf "8 * sum by (instance)(irate(ifInErrors{job='snmp',instance='%s'}[5m]) or irate(ifOutErrors{job='snmp',instance='%s'}[5m]))" .Labels.instance .Labels.instance) "/s" "humanizeNoSmallPrefix")}}
No devices found.