{
  "annotations":{"list":[{"builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations & Alerts","target":{"limit":100,"matchAny":false,"tags":[],"type":"dashboard"},"type":"dashboard"}]},
  "author":"Ruohang Feng (rh@vonng.com)",
  "description":"PostgreSQL Catalog Explorer for Single Instance",
  "editable":true,
  "fiscalYearStartMonth":0,
  "graphTooltip":0,
  "id":null,
  "license":"https://pigsty.io/docs/about/license/",
  "links":[{"asDropdown":true,"icon":"external link","includeVars":true,"keepTime":true,"tags":["Pigsty","Overview"],"targetBlank":false,"title":"Overview","tooltip":"","type":"dashboards","url":""},{"asDropdown":true,"icon":"external link","includeVars":false,"keepTime":false,"tags":["Pigsty","INFRA","Overview"],"targetBlank":false,"title":"INFRA","tooltip":"","type":"dashboards","url":""}],
  "panels":[
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":0},"id":162,"panels":[],"title":"Overview","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"string"},"overrides":[]},
      "gridPos":{"h":11,"w":5,"x":0,"y":1},
      "id":178,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"/^value$/","values":true},"showPercentChange":false,"text":{"titleSize":16,"valueSize":18},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT  key, to_json(value) #>> '{}' AS value FROM pigsty.global_config WHERE key\n    in ('admin_ip', 'version', 'region');",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Meta",
      "transformations":[{"id":"convertFieldType","options":{}}],
      "type":"stat"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Meta"},"properties":[{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},{"id":"custom.width","value":60},{"id":"custom.align","value":"center"},{"id":"mappings","value":[{"options":{"false":{"color":"#f79f64","index":0,"text":"No"},"true":{"color":"#346f36cc","index":1,"text":"Yes"}},"type":"value"}]}]}]
      },
      "gridPos":{"h":11,"w":4,"x":5,"y":1},
      "id":158,
      "options":{"cellHeight":"sm","showHeader":false},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT cls FROM pigsty.group",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Groups",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{},"renameByName":{"cls":"Group","is_meta":"Meta"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[
          { "matcher":{"id":"byName","options":"Name"}    ,"properties":[{"id":"custom.width","value":140}]                                                                                                                                        },
          { "matcher":{"id":"byName","options":"Domain"}  ,"properties":[{"id":"links","value":[{"title":"http://${__data.fields.Name} : http://${__data.fields.Domain}","url":"http://${__data.fields.Domain}"}]}]                                },
          { "matcher":{"id":"byName","options":"Endpoint"},"properties":[{"id":"custom.width","value":140},{"id":"links","value":[{"title":"${__data.fields.Name} : http://${__data.fields.Endpoint}","url":"http://${__data.fields.Endpoint}"}]}] }
        ]
      },
      "gridPos":{"h":11,"w":9,"x":9,"y":1},
      "id":179,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT d.key                  AS name,\n       d.value ->> 'domain'   AS domain,\n       replace(d.value ->> 'endpoint', '${admin_ip}', pigsty.get_param('admin_ip') ) AS endpoint\nFROM pigsty.global_config v,\n     jsonb_each(v.value) d\nWHERE v.key = 'infra_portal';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Portals",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"domain":2,"endpoint":1,"name":0},"renameByName":{"domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"links":[{"title":"Infra Overview","url":"/d/infra-overview?${__url_time_range}"}],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
        "overrides":[{"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"links","value":[{"title":"Node Instance: ${__data.fields.IP}","url":"/d/node-instance?var-ip=${__data.fields.IP}&${__url_time_range}"}]},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.width","value":80}]}]
      },
      "gridPos":{"h":5,"w":6,"x":18,"y":1},
      "id":221,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT key AS ip, (value ->> 'infra_seq')::INTEGER AS infra_seq, \n       'infra-' || (value ->> 'infra_seq') AS name\nFROM pigsty.group_config gc, jsonb_each(gc.hosts)\nWHERE cls = 'infra';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Infra Nodes",
      "transformations":[
        {
          "id":"organize",
          "options":{
            "excludeByName":{"conf":true,"haproxy":true,"infra_seq":false,"is_meta":true,"node_exporter":true,"pg_exporter":true,"pgb_exporter":true,"pgbouncer":true,"postgres":true,"redis_exporter":true,"vector":true},
            "includeByName":{},
            "indexByName":{"infra_seq":0,"ip":2,"name":1},
            "renameByName":{"consul":"Consul","docker":"Docker","etcd":"Etcd","grafana":"Grafana","groups":"Groups","infra_seq":"ID","ip":"IP","is_meta":"","key":"Name","loki":"Loki","name":"Name","nameserver":"DNS","nginx":"Nginx","node_exporter":"","prometheus":"Prometheus","value":"IP"}
          }
        }
      ],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"links":[{"title":"ETCD Overview","url":"/d/etcd-overview?${__url_time_range}"}],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
        "overrides":[{"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"links","value":[{"title":"Node Instance: ${__data.fields.IP}","url":"/d/node-instance?var-ip=${__data.fields.IP}&${__url_time_range}"}]},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.width","value":80}]}]
      },
      "gridPos":{"h":6,"w":6,"x":18,"y":6},
      "id":223,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT seq, ip, ins FROM pigsty.etcd_instance;",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Etcd Cluster",
      "transformations":[
        {
          "id":"organize",
          "options":{
            "excludeByName":{"cls":true,"conf":true,"haproxy":true,"instance":true,"is_meta":true,"node_exporter":true,"pg_exporter":true,"pgb_exporter":true,"pgbouncer":true,"postgres":true,"redis_exporter":true,"seq":true,"vector":true},
            "indexByName":{"cls":3,"ins":1,"instance":4,"ip":2,"seq":0},
            "renameByName":{"consul":"Consul","docker":"Docker","etcd":"Etcd","grafana":"Grafana","groups":"Groups","infra_seq":"ID","ins":"Name","ip":"IP","is_meta":"","key":"Name","loki":"Loki","nameserver":"DNS","nginx":"Nginx","node_exporter":"","prometheus":"Prometheus","seq":"ID","value":"IP"}
          }
        }
      ],
      "type":"table"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":12},"id":160,"panels":[],"title":"PGSQL Cluster","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"auto","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
        "overrides":[
          { "matcher":{"id":"byName","options":"Cluster"}                                ,"properties":[{"id":"custom.align","value":"auto"},{"id":"links","value":[{"title":"PGSQL Cluster : ${__data.fields.Cluster}","url":"/d/pgsql-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]}] },
          { "matcher":{"id":"byRegexp","options":"/Hosts|Vars|Databases|Users|Services/"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}}]                                                                                                                                         },
          { "matcher":{"id":"byName","options":"Group"}                                  ,"properties":[{"id":"custom.align","value":"center"}]                                                                                                                                                           }
        ]
      },
      "gridPos":{"h":8,"w":24,"x":0,"y":13},
      "id":163,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"postgres","uid":"ds-meta"},"format":"table","group":[],"metricColumn":"none","rawQuery":true,"rawSql":"SELECT * FROM pigsty.pg_cluster","refId":"A","select":[[{"params":["value"],"type":"column"}]],"timeColumn":"time","where":[{"name":"$__timeFilter","params":[],"type":"macro"}]}],
      "title":"PGSQL Clusters",
      "transformations":[{"id":"organize","options":{"excludeByName":{"pg_databases":false,"pg_hba":false,"pg_services":false,"pg_users":false,"pgbouncer_hba":false},"indexByName":{},"renameByName":{"cls":"Group","hosts":"Hosts","is_meta":"Meta","name":"Cluster","pg_databases":"Databases","pg_hba":"HBA","pg_services":"Services","pg_users":"Users","pgbouncer_hba":"PGB HBA","vars":"Vars"}}}],
      "type":"table"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":21},"id":171,"panels":[],"title":"PGSQL Instance","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[
          {"matcher":{"id":"byRegexp","options":"/pg.*/"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}}]},{"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"links","value":[{"title":"Node Instance : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]},{"id":"custom.width","value":117}]},
          {"matcher":{"id":"byName","options":"Instance"},"properties":[{"id":"custom.align","value":"left"},{"id":"links","value":[{"title":"PGSQL Instance : ${__data.fields.Instance}","url":"/d/pgsql-instance?var-ins=${__data.fields.Instance}&${__url_time_range}"}]}]},{"matcher":{"id":"byName","options":"Seqence"},"properties":[{"id":"custom.width","value":83}]},
          {
            "matcher":{"id":"byName","options":"Role"},
            "properties":[
              { "id":"custom.width"      ,"value":80                                                                                                                                                                                                                                                                   },
              { "id":"mappings"          ,"value":[{"options":{"offline":{"color":"#3e668f","index":2,"text":"Offline"},"primary":{"color":"#f79f64","index":0,"text":"Primary"},"replica":{"color":"#346f36cc","index":1,"text":"Replica"},"standby":{"color":"#b783af","index":3,"text":"Standby"}},"type":"value"}] },
              { "id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}                                                                                                                                                                                                                        }
            ]
          },
          {"matcher":{"id":"byName","options":"Offline Query"},"properties":[{"id":"custom.width","value":116},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},{"id":"custom.inspect","value":false},{"id":"mappings","value":[{"options":{"false":{"color":"#f79f64","index":0,"text":"Disabled"},"true":{"color":"#346f36cc","index":1,"text":"Enabled"}},"type":"value"}]}]},
          {"matcher":{"id":"byName","options":"Weight"},"properties":[{"id":"custom.width","value":70},{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"red","value":0},{"color":"#f79f64","value":2},{"color":"#346f36cc","value":100},{"color":"dark-green","value":101},{"color":"dark-blue","value":254}]}},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}}]},
          {"matcher":{"id":"byName","options":"Upstream"},"properties":[{"id":"custom.width","value":100},{"id":"links","value":[{"title":"Upstream Node : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]}]},
          {"matcher":{"id":"byName","options":"Cluster"},"properties":[{"id":"links","value":[{"title":"PGSQL Cluster : ${__data.fields.Cluster}","url":"/d/pgsql-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]},{"id":"custom.width","value":130}]},{"matcher":{"id":"byName","options":"Raw"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}}]}
        ]
      },
      "gridPos":{"h":9,"w":24,"x":0,"y":22},
      "id":164,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"postgres","uid":"ds-meta"},"format":"table","group":[],"metricColumn":"none","rawQuery":true,"rawSql":"SELECT * FROM pigsty.pg_instance","refId":"A","select":[[{"params":["value"],"type":"column"}]],"timeColumn":"time","where":[{"name":"$__timeFilter","params":[],"type":"macro"}]}],
      "title":"PGSQL Instance",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"cls":0,"ins":2,"instance":8,"ip":1,"offline_query":5,"role":4,"seq":3,"upstream":7,"weight":6},"renameByName":{"cls":"Cluster","ins":"Instance","instance":"Raw","ip":"IP","is_meta":"Meta","offline_query":"Offline Query","role":"Role","seq":"Seqence","upstream":"Upstream","weight":"Weight"}}}],
      "type":"table"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":31},"id":169,"panels":[],"title":"PGSQL Service","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
        "overrides":[
          {"matcher":{"id":"byName","options":"Cluster"},"properties":[{"id":"custom.width","value":130},{"id":"links","value":[{"title":"PGSQL Cluster : ${__data.fields.Cluster}","url":"/d/pgsql-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]}]},
          {"matcher":{"id":"byName","options":"Service"},"properties":[{"id":"links","value":[{"title":"PGSQL Service : ${__data.fields.Service}","url":"/d/pgsql-service?var-svc=${__data.fields.Service}&${__url_time_range}"}]}]},
          {
            "matcher":{"id":"byName","options":"Name"},
            "properties":[{"id":"custom.width","value":80},{"id":"mappings","value":[{"options":{"default":{"color":"red","index":2},"offline":{"color":"#3e668f","index":3},"primary":{"color":"#f79f64","index":0},"replica":{"color":"#346f36cc","index":1},"standby":{"color":"#b783af","index":4}},"type":"value"}]},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}}]
          },{
            "matcher":{"id":"byName","options":"SRC Port"},
            "properties":[{"id":"custom.width","value":80},{"id":"mappings","value":[{"options":{"5433":{"color":"#f79f64","index":0},"5434":{"color":"#346f36cc","index":1},"5435":{"color":"#fcdb72","index":2},"5436":{"color":"red","index":3},"5437":{"color":"#b783af","index":4},"5438":{"color":"#3e668f","index":5}},"type":"value"}]},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}}]
          },
          {"matcher":{"id":"byName","options":"SRC Port"},"properties":[{"id":"custom.width","value":80}]},{"matcher":{"id":"byName","options":"SRC IP"},"properties":[{"id":"custom.width","value":60}]},{"matcher":{"id":"byName","options":"RAW"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}},{"id":"custom.align","value":"left"}]},
          {"matcher":{"id":"byRegexp","options":"/Selector|Selector (backup)|HAProxy|RAW/"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}},{"id":"custom.align","value":"left"}]},
          {"matcher":{"id":"byName","options":"DST Port"},"properties":[{"id":"mappings","value":[{"options":{"pgbouncer":{"color":"#346f36cc","index":1,"text":"Pgbouncer"},"postgres":{"color":"#f79f64","index":0,"text":"Postgres"}},"type":"value"}]},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},{"id":"custom.width","value":90}]},
          {"matcher":{"id":"byName","options":"Check Path"},"properties":[{"id":"custom.width","value":130}]},{"matcher":{"id":"byName","options":"Max Conn"},"properties":[{"id":"custom.width","value":90}]},{"matcher":{"id":"byName","options":"Balance"},"properties":[{"id":"custom.width","value":85}]},{"matcher":{"id":"byName","options":"Options"},"properties":[{"id":"custom.width","value":82}]}
        ]
      },
      "gridPos":{"h":10,"w":24,"x":0,"y":32},
      "id":166,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"    SELECT cls,\n           cls || '-' || (value ->> 'name') AS svc,\n           value ->> 'name'                 AS name,\n           value ->> 'ip'                   AS src_ip,\n           value ->> 'port'                 AS src_port,\n           value ->> 'dest'                 AS dst_port,\n           value ->> 'check'                AS check_url,\n           value ->> 'selector'             AS selector,\n           value ->> 'backup'               AS selector_backup,\n           (value ->> 'maxconn')::INTEGER   AS maxconn,\n           (value ->> 'balance')            AS balance,\n           (value ->> 'options')            AS options,\n           value                            AS service\n    FROM pigsty.pg_cluster, jsonb_array_elements(pg_services) ORDER BY 1 ,3;",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"PGSQL Service",
      "transformations":[
        {
          "id":"organize",
          "options":{
            "excludeByName":{},
            "indexByName":{"cls":0,"ins":2,"instance":8,"ip":1,"offline_query":5,"role":4,"seq":3,"upstream":7,"weight":6},
            "renameByName":{
              "balance":"Balance",
              "check_url":"Check Path",
              "cls":"Cluster",
              "dst_port":"DST Port",
              "haproxy":"HAProxy",
              "ins":"Instance",
              "instance":"Raw",
              "ip":"IP",
              "is_meta":"Meta",
              "maxconn":"Max Conn",
              "name":"Name",
              "offline_query":"Offline Query",
              "options":"Options",
              "role":"Role",
              "selector":"Selector",
              "selector_backup":"Selector (backup)",
              "seq":"Seqence",
              "service":"RAW",
              "src_ip":"SRC IP",
              "src_port":"SRC Port",
              "svc":"Service",
              "upstream":"Upstream",
              "weight":"Weight"
            }
          }
        }
      ],
      "type":"table"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":42},"id":173,"panels":[],"title":"PGSQL Database","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[
          { "matcher":{"id":"byName","options":"Meta"}         ,"properties":[{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},{"id":"custom.width","value":60},{"id":"custom.align","value":"center"}]                                            },
          { "matcher":{"id":"byRegexp","options":"/pg.*/"}     ,"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}}]                                                                                                                                             },
          { "matcher":{"id":"byName","options":"IP"}           ,"properties":[{"id":"links","value":[{"title":"Node Instance : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]}]                                                     },
          { "matcher":{"id":"byName","options":"Instance"}     ,"properties":[{"id":"custom.align","value":"left"},{"id":"links","value":[{"title":"PGSQL Instance : ${__data.fields.Instance}","url":"/d/pgsql-instance?var-ins=${__data.fields.Instance}&${__url_time_range}"}]}] },
          { "matcher":{"id":"byName","options":"Seqence"}      ,"properties":[{"id":"custom.width","value":73}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"Role"}         ,"properties":[{"id":"custom.width","value":93}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"Offline Query"},"properties":[{"id":"custom.width","value":100},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},{"id":"custom.inspect","value":false}]                                            },
          { "matcher":{"id":"byName","options":"Template"}     ,"properties":[{"id":"custom.width","value":89}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"Encoding"}     ,"properties":[{"id":"custom.width","value":83}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"Locale"}       ,"properties":[{"id":"custom.width","value":74}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"LC Collate"}   ,"properties":[{"id":"custom.width","value":87}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"LC CType"}     ,"properties":[{"id":"custom.width","value":80}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"AllowConn"}    ,"properties":[{"id":"custom.width","value":85}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"RevokeConn"}   ,"properties":[{"id":"custom.width","value":98}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"Tablespace"}   ,"properties":[{"id":"custom.width","value":98}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"ConnLimit"}    ,"properties":[{"id":"custom.width","value":87}]                                                                                                                                                                     },
          { "matcher":{"id":"byName","options":"Pgbouncer"}    ,"properties":[{"id":"custom.width","value":87}]                                                                                                                                                                     }
        ]
      },
      "gridPos":{"h":8,"w":24,"x":0,"y":43},
      "id":167,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"postgres","uid":"ds-meta"},"format":"table","group":[],"metricColumn":"none","rawQuery":true,"rawSql":"SELECT * FROM pigsty.pg_database;","refId":"A","select":[[{"params":["value"],"type":"column"}]],"timeColumn":"time","where":[{"name":"$__timeFilter","params":[],"type":"macro"}]}],
      "title":"PGSQL Database",
      "transformations":[
        {
          "id":"organize",
          "options":{
            "excludeByName":{},
            "indexByName":{"cls":0,"ins":2,"instance":8,"ip":1,"offline_query":5,"role":4,"seq":3,"upstream":7,"weight":6},
            "renameByName":{
              "allowconn":"AllowConn",
              "cls":"Group",
              "comment":"Comment",
              "connlimit":"ConnLimit",
              "database":"RAW",
              "datname":"Database",
              "encoding":"Encoding",
              "extensions":"Extensionss",
              "ins":"Instance",
              "instance":"Raw",
              "ip":"IP",
              "is_meta":"Meta",
              "lc_collate":"LC Collate",
              "lc_ctype":"LC CType",
              "locale":"Locale",
              "offline_query":"Offline Query",
              "owner":"Owner",
              "parameters":"Parameters",
              "pgbouncer":"Pgbouncer",
              "pool_connlimit":"Pool ConnLimit",
              "pool_mode":"Pool Mode",
              "revokeconn":"RevokeConn",
              "role":"Role",
              "schemas":"Schemas",
              "seq":"Seqence",
              "tablespace":"Tablespace",
              "template":"Template",
              "upstream":"Upstream",
              "weight":"Weight"
            }
          }
        }
      ],
      "type":"table"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":51},"id":212,"panels":[],"title":"REDIS Cluster","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"auto","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
        "overrides":[
          { "matcher":{"id":"byName","options":"Cluster"}                                ,"properties":[{"id":"custom.align","value":"auto"},{"id":"links","value":[{"title":"Redis Cluster : ${__data.fields.Cluster}","url":"/d/redis-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]}] },
          { "matcher":{"id":"byRegexp","options":"/Hosts|Vars|Databases|Users|Services/"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}}]                                                                                                                                         },
          { "matcher":{"id":"byName","options":"Group"}                                  ,"properties":[{"id":"custom.align","value":"center"}]                                                                                                                                                           },
          { "matcher":{"id":"byName","options":"mode"}                                   ,"properties":[{"id":"custom.width","value":104}]                                                                                                                                                                },
          { "matcher":{"id":"byName","options":"conf"}                                   ,"properties":[{"id":"custom.width","value":96}]                                                                                                                                                                 },
          { "matcher":{"id":"byName","options":"max_memory"}                             ,"properties":[{"id":"custom.width","value":111}]                                                                                                                                                                },
          { "matcher":{"id":"byName","options":"Password"}                               ,"properties":[{"id":"custom.width","value":89}]                                                                                                                                                                 },
          { "matcher":{"id":"byName","options":"Mem Policy"}                             ,"properties":[{"id":"custom.width","value":103}]                                                                                                                                                                }
        ]
      },
      "gridPos":{"h":7,"w":24,"x":0,"y":52},
      "id":211,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT * FROM pigsty.redis_cluster",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"PGSQL Clusters",
      "transformations":[
        {
          "id":"organize",
          "options":{
            "excludeByName":{"password":false,"pg_databases":false,"pg_hba":false,"pg_services":false,"pg_users":false,"pgbouncer_hba":false},
            "includeByName":{},
            "indexByName":{},
            "renameByName":{"cls":"Group","conf":"Conf","hosts":"Hosts","is_meta":"Meta","max_memory":"Max Mem","mem_policy":"Mem Policy","mode":"Mode","name":"Cluster","password":"Password","pg_databases":"Databases","pg_hba":"HBA","pg_services":"Services","pg_users":"Users","pgbouncer_hba":"PGB HBA","vars":"Vars"}
          }
        }
      ],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[
          {"matcher":{"id":"byRegexp","options":"/pg.*/"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}}]},{"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"links","value":[{"title":"Node Instance : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]},{"id":"custom.width","value":117}]},
          {"matcher":{"id":"byName","options":"Instance"},"properties":[{"id":"custom.align","value":"left"},{"id":"links","value":[{"title":"PGSQL Instance : ${__data.fields.Instance}","url":"/d/pgsql-instance?var-ins=${__data.fields.Instance}&${__url_time_range}"}]}]},{"matcher":{"id":"byName","options":"Seqence"},"properties":[{"id":"custom.width","value":70}]},
          {
            "matcher":{"id":"byName","options":"Role"},
            "properties":[
              { "id":"custom.width"      ,"value":80                                                                                                                                                                                                                                                                   },
              { "id":"mappings"          ,"value":[{"options":{"offline":{"color":"#3e668f","index":2,"text":"Offline"},"primary":{"color":"#f79f64","index":0,"text":"Primary"},"replica":{"color":"#346f36cc","index":1,"text":"Replica"},"standby":{"color":"#b783af","index":3,"text":"Standby"}},"type":"value"}] },
              { "id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}                                                                                                                                                                                                                        }
            ]
          },
          {"matcher":{"id":"byName","options":"Offline Query"},"properties":[{"id":"custom.width","value":100},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},{"id":"custom.inspect","value":false},{"id":"mappings","value":[{"options":{"false":{"color":"#f79f64","index":0,"text":"Disabled"},"true":{"color":"#346f36cc","index":1,"text":"Enabled"}},"type":"value"}]}]},
          {"matcher":{"id":"byName","options":"Weight"},"properties":[{"id":"custom.width","value":70},{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"red","value":0},{"color":"#f79f64","value":2},{"color":"#346f36cc","value":100},{"color":"dark-green","value":101},{"color":"dark-blue","value":254}]}},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}}]},
          {"matcher":{"id":"byName","options":"Upstream"},"properties":[{"id":"custom.width","value":130},{"id":"links","value":[{"title":"Upstream Node : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]}]},
          {"matcher":{"id":"byName","options":"Cluster"},"properties":[{"id":"links","value":[{"title":"PGSQL Cluster : ${__data.fields.Cluster}","url":"/d/pgsql-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]},{"id":"custom.width","value":130}]},
          {"matcher":{"id":"byName","options":"Raw"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}},{"id":"custom.align","value":"auto"}]},{"matcher":{"id":"byName","options":"Port"},"properties":[{"id":"custom.width","value":80}]},{"matcher":{"id":"byName","options":"Node ID"},"properties":[{"id":"custom.width","value":70}]},
          {"matcher":{"id":"byName","options":"Mode"},"properties":[{"id":"custom.width","value":120}]}
        ]
      },
      "gridPos":{"h":9,"w":24,"x":0,"y":59},
      "id":213,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"postgres","uid":"ds-meta"},"format":"table","group":[],"metricColumn":"none","rawQuery":true,"rawSql":"SELECT * FROM pigsty.redis_instance","refId":"A","select":[[{"params":["value"],"type":"column"}]],"timeColumn":"time","where":[{"name":"$__timeFilter","params":[],"type":"macro"}]}],
      "title":"REDIS Instance",
      "transformations":[
        {
          "id":"organize",
          "options":{
            "excludeByName":{},
            "includeByName":{},
            "indexByName":{"cls":0,"ins":1,"instance":8,"ip":4,"mode":5,"node_id":3,"port":6,"redis_node":2,"replica_of":7},
            "renameByName":{"cls":"Cluster","ins":"Instance","instance":"Raw","ip":"IP","is_meta":"Meta","mode":"Mode","node_id":"Node ID","offline_query":"Offline Query","port":"Port","redis_node":"Redis Node","replica_of":"Upstream","role":"Role","seq":"Seqence","upstream":"Upstream","weight":"Weight"}
          }
        }
      ],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[
          {"matcher":{"id":"byRegexp","options":"/pg.*/"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}}]},{"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"links","value":[{"title":"Node Instance : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]},{"id":"custom.width","value":117}]},
          {"matcher":{"id":"byName","options":"Instance"},"properties":[{"id":"custom.align","value":"left"},{"id":"links","value":[{"title":"PGSQL Instance : ${__data.fields.Instance}","url":"/d/pgsql-instance?var-ins=${__data.fields.Instance}&${__url_time_range}"}]}]},{"matcher":{"id":"byName","options":"Seqence"},"properties":[{"id":"custom.width","value":70}]},
          {
            "matcher":{"id":"byName","options":"Role"},
            "properties":[
              { "id":"custom.width"      ,"value":80                                                                                                                                                                                                                                                                   },
              { "id":"mappings"          ,"value":[{"options":{"offline":{"color":"#3e668f","index":2,"text":"Offline"},"primary":{"color":"#f79f64","index":0,"text":"Primary"},"replica":{"color":"#346f36cc","index":1,"text":"Replica"},"standby":{"color":"#b783af","index":3,"text":"Standby"}},"type":"value"}] },
              { "id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}                                                                                                                                                                                                                        }
            ]
          },
          {"matcher":{"id":"byName","options":"Offline Query"},"properties":[{"id":"custom.width","value":100},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},{"id":"custom.inspect","value":false},{"id":"mappings","value":[{"options":{"false":{"color":"#f79f64","index":0,"text":"Disabled"},"true":{"color":"#346f36cc","index":1,"text":"Enabled"}},"type":"value"}]}]},
          {"matcher":{"id":"byName","options":"Weight"},"properties":[{"id":"custom.width","value":70},{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"red","value":0},{"color":"#f79f64","value":2},{"color":"#346f36cc","value":100},{"color":"dark-green","value":101},{"color":"dark-blue","value":254}]}},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}}]},
          {"matcher":{"id":"byName","options":"Upstream"},"properties":[{"id":"custom.width","value":100},{"id":"links","value":[{"title":"Upstream Node : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]}]},
          {"matcher":{"id":"byName","options":"Cluster"},"properties":[{"id":"links","value":[{"title":"PGSQL Cluster : ${__data.fields.Cluster}","url":"/d/pgsql-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]},{"id":"custom.width","value":130}]},
          {"matcher":{"id":"byName","options":"Raw"},"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}},{"id":"custom.align","value":"left"}]},{"matcher":{"id":"byName","options":"NodeID"},"properties":[{"id":"custom.width","value":79}]},{"matcher":{"id":"byName","options":"Mode"},"properties":[{"id":"custom.width","value":98}]}
        ]
      },
      "gridPos":{"h":7,"w":24,"x":0,"y":68},
      "id":214,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"postgres","uid":"ds-meta"},"format":"table","group":[],"metricColumn":"none","rawQuery":true,"rawSql":"SELECT * FROM pigsty.redis_node;","refId":"A","select":[[{"params":["value"],"type":"column"}]],"timeColumn":"time","where":[{"name":"$__timeFilter","params":[],"type":"macro"}]}],
      "title":"REDIS Node",
      "transformations":[
        {
          "id":"organize",
          "options":{
            "excludeByName":{},
            "indexByName":{"cls":0,"ins":2,"instance":8,"ip":1,"offline_query":5,"role":4,"seq":3,"upstream":7,"weight":6},
            "renameByName":{"cls":"Cluster","ins":"Instance","instance":"Raw","instances":"Raw","ip":"IP","is_meta":"Meta","mode":"Mode","node_id":"NodeID","offline_query":"Offline Query","redis_node":"Redis Node","role":"Role","seq":"Seqence","upstream":"Upstream","weight":"Weight"}
          }
        }
      ],
      "type":"table"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":75},"id":186,"panels":[],"title":"DNS / Hosts","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"links":[],"mappings":[{"options":{"false":{"color":"#f79f64","index":0,"text":"False"},"true":{"color":"#346f36cc","index":1,"text":"True"}},"type":"value"}],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"string"},"overrides":[]},
      "gridPos":{"h":4,"w":4,"x":0,"y":76},
      "id":195,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"/.*/","values":true},"showPercentChange":false,"text":{"titleSize":14,"valueSize":20},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT  to_json(value) #>> '{}' AS \"DNS Enabled\" FROM pigsty.global_config WHERE key = 'dns_enabled';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "description":"Dynamic DNS records to be resolved by DNSMASQ on infra nodes",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":8,"w":7,"x":4,"y":76},
      "id":197,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT replace(record, '${admin_ip}', pigsty.get_param('admin_ip'))\nFROM pigsty.global_config v, jsonb_array_elements_text(v.value) record\nWHERE v.key = 'dns_records';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"DNS Records",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","pkg":"Repo Packages","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "description":"Local DNS Configuration to be added to all nodes",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":8,"w":7,"x":11,"y":76},
      "id":200,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT replace(record, '${admin_ip}', pigsty.get_param('admin_ip'))\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) record\nWHERE v.key = 'node_dns_options'\nUNION ALL\nSELECT replace(record, '${admin_ip}', pigsty.get_param('admin_ip'))\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) record\nWHERE v.key = 'node_dns_servers';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"/etc/resolv.conf",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","pkg":"Repo Packages","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "description":"Static records to be added to all nodes",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":8,"w":6,"x":18,"y":76},
      "id":199,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT replace(record, '${admin_ip}', pigsty.get_param('admin_ip'))\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) record\nWHERE v.key = 'node_default_etc_hosts'\nUNION ALL\nSELECT replace(record, '${admin_ip}', pigsty.get_param('admin_ip'))\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) record\nWHERE v.key = 'node_etc_hosts';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"/etc/hosts",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","pkg":"Repo Packages","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"links":[],"mappings":[{"options":{"add":{"color":"#346f36cc","index":0,"text":"Add"},"none":{"color":"#3e668f","index":1,"text":"None"},"overwrite":{"color":"#fcdb72","index":2,"text":"Overwrite"}},"type":"value"}],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]},"unit":"string"},"overrides":[]},
      "gridPos":{"h":4,"w":4,"x":0,"y":80},
      "id":198,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"/.*/","values":true},"showPercentChange":false,"text":{"titleSize":14,"valueSize":20},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"postgres","uid":"ds-meta"},"format":"table","group":[],"metricColumn":"none","rawQuery":true,"rawSql":"SELECT  to_json(value) #>> '{}' AS \"Node DNS Method\" FROM pigsty.global_config WHERE key = 'node_dns_method';","refId":"A","select":[[{"params":["value"],"type":"column"}]],"timeColumn":"time","where":[{"name":"$__timeFilter","params":[],"type":"macro"}]}],
      "type":"stat"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":84},"id":182,"panels":[],"title":"Repository","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"links":[{"title":"Nginx Overview","url":"/d/nginx-instance?${__url_time_range}"}],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"string"},"overrides":[]},
      "gridPos":{"h":5,"w":20,"x":0,"y":85},
      "id":220,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"/^value$/","values":true},"showPercentChange":false,"text":{"titleSize":16,"valueSize":18},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT  key, to_json(value) #>> '{}' AS value FROM pigsty.global_config WHERE key\n    in ('nginx_port', 'nginx_sslmode', 'nginx_home', 'nginx_port', 'nginx_ssl_port', 'repo_name');",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Nginx / Repo Address",
      "transformations":[{"id":"convertFieldType","options":{}}],
      "type":"stat"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":23,"w":4,"x":20,"y":85},
      "id":184,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT pkg\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) pkg\nWHERE v.key = 'repo_packages'\nUNION ALL\nSELECT pkg\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) pkg\nWHERE v.key = 'repo_extra_packages';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Repo Packages",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","pkg":"Repo Packages","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"grafana-postgresql-datasource","uid":"ds-meta"},
      "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"string"},"overrides":[]},
      "gridPos":{"h":4,"w":20,"x":0,"y":90},
      "id":193,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"/^value$/","values":true},"showPercentChange":false,"text":{"titleSize":16,"valueSize":18},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT  key, to_json(value) #>> '{}' AS value FROM pigsty.global_config WHERE key\n    in ('repo_enabled', 'repo_modules', 'repo_remove','node_repo_modules', 'node_repo_remove');",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[
          { "matcher":{"id":"byName","options":"Name"}       ,"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}] },{ "matcher":{"id":"byName","options":"BaseURL"}    ,"properties":[{"id":"custom.cellOptions","value":{"type":"json-view"}}]                 },
          { "matcher":{"id":"byName","options":"Version"}    ,"properties":[{"id":"custom.width","value":180},{"id":"custom.align","value":"left"}]   },{ "matcher":{"id":"byName","options":"Description"},"properties":[{"id":"custom.width","value":191}]                                        },
          { "matcher":{"id":"byName","options":"Module"}     ,"properties":[{"id":"custom.width","value":80},{"id":"custom.align","value":"center"}]  },{ "matcher":{"id":"byName","options":"Arch"}       ,"properties":[{"id":"custom.width","value":170}]                                        }
        ]
      },
      "gridPos":{"h":14,"w":20,"x":0,"y":94},
      "id":183,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT d ->> 'name'        AS name,\n       d ->> 'module'      AS module,\n       d ->> 'releases'    AS releases,\n       d ->> 'arch'        AS arch,\n       d ->> 'description' AS description,\n       d -> 'baseurl'      AS baseurl\nFROM pigsty.global_config v,\n     jsonb_array_elements(v.value) d\nWHERE v.key = 'repo_upstream';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Repo Upstream",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"includeByName":{},"indexByName":{"arch":3,"baseurl":5,"description":4,"module":1,"name":0,"releases":2},"renameByName":{"arch":"Arch","baseurl":"BaseURL","comment":"Desc","description":"Description","domain":"Domain","endpoint":"Endpoint","key":"Name","module":"Module","name":"Name","releases":"Version","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":108},"id":226,"panels":[],"title":"Packages","type":"row"},
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":5,"w":24,"x":0,"y":109},
      "id":187,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT pkg\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) pkg\nWHERE v.key = 'node_default_packages'\nUNION ALL\nSELECT pkg\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) pkg\nWHERE v.key = 'node_packages';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Node Packages",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","pkg":"Repo Packages","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":5,"w":24,"x":0,"y":114},
      "id":188,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT pkg\nFROM pigsty.global_config v,\n     jsonb_array_elements_text(v.value) pkg\nWHERE v.key = 'infra_packages'\nUNION ALL\nSELECT to_json(value) #>> '{}' AS \"DCS Type\" FROM pigsty.global_config WHERE key = 'node_pip_packages';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Infra Packages",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","pkg":"Repo Packages","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "description":"PostgreSQL Main Packages to be installed (global default)\n\nAlias will be translate according to package_map",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":6,"w":12,"x":0,"y":119},
      "id":189,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"WITH ver AS (SELECT  to_json(value) #>> '{}' AS \"version\" FROM pigsty.global_config WHERE key = 'pg_version' LIMIT 1)\nSELECT replace(pkg, '$v' , (SELECT version FROM ver LIMIT 1))\nFROM pigsty.global_config v, jsonb_array_elements_text(v.value) pkg\nWHERE v.key = 'pg_packages'\nUNION ALL\nSELECT replace(pkg, '$v' , (SELECT version FROM ver LIMIT 1))\nFROM pigsty.global_config v, jsonb_array_elements_text(v.value) pkg\nWHERE v.key = 'pg_extensions'",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"PGSQL Packages",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","pkg":"Repo Packages","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"grafana-postgresql-datasource","uid":"ds-meta"},
      "description":"PostgreSQL Extension Packages to be instsalled (global default)\n\nAlias will be translate according to package_map",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"center"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":6,"w":12,"x":12,"y":119},
      "id":225,
      "options":{"cellHeight":"sm","showHeader":false,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"WITH ver AS (SELECT  to_json(value) #>> '{}' AS \"version\" FROM pigsty.global_config WHERE key = 'pg_version' LIMIT 1)\nSELECT replace(pkg, '$v' , (SELECT version FROM ver LIMIT 1))\nFROM pigsty.global_config v, jsonb_array_elements_text(v.value) pkg\nWHERE v.key = 'pg_extensions';",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"PGSQL Extensions",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Name","name":"Name","pkg":"Repo Packages","url":"URL","value":"IP"}}}],
      "type":"table"
    },
    {
      "datasource":{"type":"postgres","uid":"ds-meta"},
      "description":"Translate package alias into real package names. $v will be replaced with pg major version",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"left","cellOptions":{"type":"json-view"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Alias"},"properties":[{"id":"custom.width","value":140},{"id":"custom.align","value":"left"}]},{"matcher":{"id":"byName","options":"URL"},"properties":[{"id":"links","value":[{"title":"${__data.fields.Name} : ${__data.fields.URL}","url":"${__data.fields.URL}"}]}]}]
      },
      "gridPos":{"h":12,"w":24,"x":0,"y":125},
      "id":227,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
      "pluginVersion":"12.3.1",
      "targets":[
        {
          "datasource":{"type":"postgres","uid":"ds-meta"},
          "editorMode":"code",
          "format":"table",
          "group":[],
          "metricColumn":"none",
          "rawQuery":true,
          "rawSql":"SELECT * FROM pigsty.package_map;",
          "refId":"A",
          "select":[[{"params":["value"],"type":"column"}]],
          "sql":{"columns":[{"parameters":[],"type":"function"}],"groupBy":[{"property":{"type":"string"},"type":"groupBy"}],"limit":50},
          "timeColumn":"time",
          "where":[{"name":"$__timeFilter","params":[],"type":"macro"}]
        }
      ],
      "title":"Package Map",
      "transformations":[{"id":"organize","options":{"excludeByName":{},"includeByName":{},"indexByName":{"comment":1,"domain":2,"name":0},"renameByName":{"comment":"Desc","domain":"Domain","endpoint":"Endpoint","key":"Alias","name":"Name","pkg":"Repo Packages","url":"URL","value":"Package"}}}],
      "type":"table"
    }
  ],
  "preload":false,
  "refresh":"",
  "schemaVersion":42,
  "tags":["Pigsty","INFRA","Overview"],
  "templating":{"list":[]},
  "time":{"from":"now-1h","to":"now"},
  "timepicker":{"refresh_intervals":["2s","3s","5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]},
  "timezone":"browser",
  "title":"Inventory CMDB",
  "uid":"inventory-cmdb",
  "version":1,
  "weekStart":""
}