Skip to content

Commit

Permalink
remove clutter from singlestat panels in cos
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgameiroborges committed Dec 17, 2024
1 parent 5c8949f commit 6bd4aad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions src/grafana_dashboards/postgresql-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_static{release=\"$release\", instance=\"$instance\"}",
"expr": "topk(1, pg_static{release=\"$release\", instance=\"$instance\"})",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
Expand Down Expand Up @@ -212,7 +212,7 @@
"tableColumn": "",
"targets": [
{
"expr": "process_start_time_seconds{release=\"$release\", instance=\"$instance\"} * 1000",
"expr": "min(process_start_time_seconds{release=\"$release\", instance=\"$instance\"} * 1000) by (label)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand Down Expand Up @@ -556,7 +556,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_max_connections{release=\"$release\", instance=\"$instance\"}",
"expr": "max(pg_settings_max_connections{release=\"$release\", instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down Expand Up @@ -945,7 +945,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_shared_buffers_bytes{instance=\"$instance\"}",
"expr": "max(pg_settings_shared_buffers_bytes{instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down Expand Up @@ -1030,7 +1030,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_effective_cache_size_bytes{instance=\"$instance\"}",
"expr": "max(pg_settings_effective_cache_size_bytes{instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down Expand Up @@ -1115,7 +1115,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_maintenance_work_mem_bytes{instance=\"$instance\"}",
"expr": "max(pg_settings_maintenance_work_mem_bytes{instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down Expand Up @@ -1200,7 +1200,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_work_mem_bytes{instance=\"$instance\"}",
"expr": "max(pg_settings_work_mem_bytes{instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",
Expand Down Expand Up @@ -1287,7 +1287,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_max_wal_size_bytes{instance=\"$instance\"}",
"expr": "max(pg_settings_max_wal_size_bytes{instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down Expand Up @@ -1372,7 +1372,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_random_page_cost{instance=\"$instance\"}",
"expr": "max(pg_settings_random_page_cost{instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down Expand Up @@ -1457,7 +1457,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_seq_page_cost",
"expr": "max(pg_settings_seq_page_cost) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down Expand Up @@ -1542,7 +1542,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_max_worker_processes{instance=\"$instance\"}",
"expr": "max(pg_settings_max_worker_processes{instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down Expand Up @@ -1627,7 +1627,7 @@
"tableColumn": "",
"targets": [
{
"expr": "pg_settings_max_parallel_workers{instance=\"$instance\"}",
"expr": "max(pg_settings_max_parallel_workers{instance=\"$instance\"}) by (label)",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
Expand Down
8 changes: 4 additions & 4 deletions src/grafana_dashboards/postgresql-patroni-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "patroni_version{service_name=~\"$service_name\",scope=~\"$scope_name\"}",
"expr": "topk(1, patroni_version{service_name=~\"$service_name\",scope=~\"$scope_name\"})",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -246,7 +246,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "patroni_dcs_last_seen{service_name=~\"$service_name\",scope=~\"$scope_name\"}*1000",
"expr": "max(patroni_dcs_last_seen{service_name=~\"$service_name\",scope=~\"$scope_name\"}*1000) by (label)",
"format": "time_series",
"instant": true,
"interval": "$interval",
Expand Down Expand Up @@ -742,7 +742,7 @@
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "patroni_postgres_server_version{service_name=~\"$service_name\",scope=~\"$scope_name\"}",
"expr": "topk(1, patroni_postgres_server_version{service_name=~\"$service_name\",scope=~\"$scope_name\"})",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -826,7 +826,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "patroni_postmaster_start_time{service_name=~\"$service_name\",scope=~\"$scope_name\"}*1000",
"expr": "min(patroni_postmaster_start_time{service_name=~\"$service_name\",scope=~\"$scope_name\"}*1000) by (label)",
"format": "time_series",
"instant": true,
"interval": "$interval",
Expand Down

0 comments on commit 6bd4aad

Please sign in to comment.