> This page location: /docs.md > /docs/management.md > /docs/atlas/monitoring-alerts.md > /docs/atlas/tutorial/third-party-service-integrations.md

> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

<!--
Tab options on this page. Append to the .md URL to filter:
  ?tabs=<id,...>   select specific tabs (e.g. ?tabs=nodejs,shell)
  ?allTabs=true    include every tab
  (no param)       default: one tab per tabset

Available tabs:
  other tabs: shell-command, python-script
-->

# Integrate with Prometheus

[Prometheus](https://prometheus.io/) collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts when it observes specific conditions.

Our integration allows you to configure Atlas to send metric data about your deployment to your [Prometheus](https://prometheus.io/) instance.

## Limitations

Atlas for Government does not support the [Prometheus](https://prometheus.io/) integration.

## Prerequisites

- [Prometheus](https://prometheus.io/) integration is available only on `M10+` clusters.

- Have a working Prometheus instance. To set up a working instance, see their [Installation Guide.](https://prometheus.io/docs/prometheus/latest/installation/)

- Add the IP of the device hosting your Prometheus instance to the [IP Access List.](https://www.mongodb.com/docs/atlas/security/ip-access-list.md#std-label-access-list)

  **Note:**

  If you add to the IP Access List any IPv4 `/0` CIDR, such as `0.0.0.0/0` which allows cluster access from anywhere on the public Internet, Atlas disables the Prometheus integration.

  If a `/0` CIDR is already on the IP Access List, Atlas stops you from configuring the Prometheus integration.

  If you add to a project access list any IPv4 `/0` CIDR, such as `0.0.0.0/0` or `10.0.0.0/0`, Atlas sends an alert email to all users directly granted a role to the project, or indirectly granted a role through team membership (if the team is granted a role to the project).

- (Optional) Use [Grafana](https://prometheus.io/docs/visualization/grafana/) to visualize your Prometheus metrics.

## Procedure

To configure an Atlas integration with [Prometheus](https://prometheus.io/):

1. In Atlas, go to the Project Settings page.

   If it's not already displayed, select the organization that contains your desired project from the  Organizations menu in the navigation bar.

   If it's not already displayed, select your desired project from the Projects menu in the navigation bar.

   In the sidebar, click the  icon next to Project Overview.

   The [Project Settings](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fsettings%2FgroupSettings) page displays.

2. In Atlas, go to the Project Integrations page.

   Click the Integrations tab.

   The [Project Integrations](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fintegrations) page displays.

3. Click Configure for the Prometheus integration card.

4. Enter your preferred username and password.

   Prometheus authentication credentials are specifically designed for use with the Prometheus integration in MongoDB Atlas. Atlas uses these credentials to only access the Prometheus discovery endpoint and scrape Prometheus metrics from Atlas nodes. They are strictly limited to these functions and do not have any additional permissions or capabilities beyond accessing and collecting monitoring data.

   **Important:**

   Copy your username and password in a secure location. You can't access the password after you leave this screen.

5. Select your preferred Service Discovery method.

   | Discovery Method | Description |
   | --- | --- |
   | [HTTP Service Discovery](https://prometheus.io/docs/prometheus/latest/http_sd/) | This method requires Prometheus v2.28 and later. It automatically generates the [scrape_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config) part of your [configuration file](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#configuration-file) to discover targets over an HTTP endpoint. Add the IP of the device hosting your Prometheus instance to the [IP Access List](https://www.mongodb.com/docs/atlas/security/ip-access-list.md#std-label-access-list). This grants Prometheus the network access to scrape metrics from your Atlas clusters. Ensure that `0.0.0.0/0` isn't on the list. Having this entry disables the integration.In the Choose Discovery API Target Type step in the Atlas UI, do one of the following tasks:Select Public Internet.; Select Private IP for Peering.; Select Private Endpoint, and then select or create the endpoints.(Optional) To enable sending custom resource tags to Prometheus, toggle Send Resource Tags to On.You must opt-in to this feature to send custom resource tags to Prometheus metrics. When you enable this feature, Atlas sends the [resource tags](https://www.mongodb.com/docs/atlas/tags.md#std-label-configure-resource-tags) as labels on Prometheus metrics. This allows you to filter, organize, and define monitoring logic based on your custom tags. To learn more about resource tags, see [Resource Tags.](https://www.mongodb.com/docs/atlas/tags.md#std-label-configure-resource-tags)Insert the following snippet into the `scrape_configs` section of your `Prometheus.yml` file and update it with values for your Prometheus integration.For private endpoints, the configuration is autogenerated based on the selected endpoints.`- job_name: "<insert-job-name>"
     scrape_interval: 10s
     metrics_path: /metrics
     scheme: https
     basic_auth:
        username: <insert-prometheus-user-id>
        password: <insert-password>
     http_sd_configs:
       - url: <url-of-the-service-discovery-configuration>
         refresh_interval: 60s
         basic_auth:
           username: <insert-prometheus-user-id>
           password: <insert-password>` |
   | [File Service Discovery](https://prometheus.io/docs/guides/file-sd/#use-file-based-service-discovery-to-discover-scrape-targets) | This method allows Prometheus to read YAML or JSON documents to configure the targets to scrape from. You are responsible for providing the targets by making a request to the [Discovery API](https://www.mongodb.com/docs/atlas/reference/third-party-integration-settings-discovery.md#std-label-prometheus-discovery-endpoint) and storing its results in a `targets.json` file. To make the request, substitute the placeholder text in one of the following tabs or create your own script in another language. |

   ### Shell Command

   ```sh
   curl --header 'Accept: application/json'
   # Sets the `Authorization` header on every scrape request with the
   # username and password from the previous step.
   --user <username>:<password>
   # The URL that Prometheus fetches the targets from.
   # Replace the <group-id> with the project ID of your Atlas instance.
   --request GET "https://cloud.mongodb.com/prometheus/v1.0/groups/<group_id>/discovery"
   ```

   To learn more about the Discovery API, see [Return the Latest Targets for Prometheus.](https://www.mongodb.com/docs/atlas/reference/third-party-integration-settings-discovery.md#std-label-prometheus-discovery-endpoint)

   If you add to a project access list any IPv4 `/0` CIDR, such as `0.0.0.0/0` or `10.0.0.0/0`, Atlas sends an alert email to all users directly granted a role to the project, or indirectly granted a role through team membership (if the team is granted a role to the project).

   **Warning:**

   Adding the `/0` CIDR (Classless Inter-Domain Routing), such as `0.0.0.0/0`, allows access from anywhere. This configuration can expose your deployment to unauthorized access, data exfiltration, and other malicious activity. Restrict access to trusted IP addresses or CIDR (Classless Inter-Domain Routing) ranges whenever possible, and use strong credentials for all database users when allowing access from the public Internet.

6. Click Save.

7. View Your Cluster Metrics on Prometheus.

   Copy the generated snippet into the [scrape\_configs](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config) section of your [configuration file](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#configuration-file) and substitute the placeholder text.

   For an example of the configuration file in either method, see [Example Configurations.](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-example-prometheus-configurations)

   Restart your Prometheus instance.

   In your Prometheus instance, click `Status` in the top navigation bar, and click `Targets` to see the metrics of your deployment.

## Example Configurations

The following shows examples of the [configuration file](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#configuration-file) when you use the [HTTP SD](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-httpsd-prometheus-config) or [File Service Discovery](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-filesd-prometheus-config) method.

The configuration file in both methods contains the following fields:

| Field | Description |
| --- | --- |
| `scrape_interval` | Time that indicates how frequently to scrape targets. This setting supports a minimum time of 10s. |
| `job_name` | Human-readable label assigned to scraped metrics. |
| `metrics_path` | HTTP resource path that indicates where to fetch metrics from targets. |
| `scheme` | Protocol scheme that you want to configure for requests. |
| `basic_auth` | Authorization header to use on every scrape request. |

### HTTP Service Discovery

The HTTP Service Discovery method also contains the `http_sd_configs` field with the following sub-fields:

| Field | Description |
| --- | --- |
| `url` | URL from which Prometheus fetches the targets. |
| `refresh_interval` | Time that indicates when to re-query the endpoint. |
| `basic_auth` | Credentials to use for authenticating to the API server. |

```yaml
global:
  scrape_interval: 15s

scrape_configs:

  - job_name: "Cloud-Testing-mongo-metrics"
    scrape_interval: 10s
    metrics_path: /metrics
    scheme : https
    basic_auth:
      username: prom_user_618d48e05277a606ed2496fe
      password: fSIMUngfTmOTVEB4
    http_sd_configs:
      - url: https://cloud.mongodb.com/prometheus/v1.0/groups/618d48e05277a606ed2496fe/discovery
        refresh_interval: 60s
        basic_auth:
          username: prom_user_618d48e05277a606ed2496fe
          password: fSIMUngfTmOTVEB4
```

### AWS PrivateLink

The HTTP Service Discovery method for AWS PrivateLink also contains the `url` field with the following variables that you should define with your values:

**Note:**

Each private endpoint handles metric scraping for a single region. For multi-region clusters, you must specify different scrape configurations for the Prometheus instances in each regions.

| Field | Description |
| --- | --- |
| `group_id` | Unique string that identifies the Atlas project. For example, `5f4a8b9c1d2e3f4a5b6c7d8e`. |
| `endpoint_id` | AWS PrivateLink Endpoint ID (format: `vpce-xxxxxxxxxxxxx`). For example, `vpce-0a1b2c3d4e5f6g7h8`. To find your endpoint ID, do one of the following steps: In the Atlas UI, go to the Network Access tab, Private Endpoint section, and copy the Endpoint ID value.; In the AWS Console, go to the VPC service, Endpoints section, and copy the VPC Endpoint ID value for your Atlas endpoint. |

```yaml
global:
  scrape_interval: 10s
  evaluation_interval: 10s

scrape_configs:
  - job_name: "Cloud-Testing-mongo-metrics"
    scrape_interval: 10s
    scrape_timeout: 10s
    metrics_path: /metrics
    scheme : https
    basic_auth:
      username: prom_user_618d48e05277a606ed2496fe
      password: fSIMUngfTmOTVEB4
    http_sd_configs:
      - url: https://cloud.mongodb.com/prometheus/v1.0/groups/{group_id}/discovery?targetScheme=PRIVATE_ENDPOINT&endpointId={endpoint_id}
        refresh_interval: 60s
        basic_auth:
          username: prom_user_618d48e05277a606ed2496fe
          password: fSIMUngfTmOTVEB4
    relabel_configs:
      - source_labels: [__metrics_path__]
        target_label: __metrics_path__
      - source_labels: [__instance__]
        target_label: instance
```

### File Service Discovery

The File Service Discovery method also contains the `file_sd_configs` field with the following sub-field:

| Field | Description |
| --- | --- |
| `files` | List that contains the files from which to extract the metrics scraping targets. |

```yaml
global:
  scrape_interval: 15s

scrape_configs:

  - job_name: "Cloud-Testing-mongo-metrics"
    scrape_interval: 10s
    metrics_path: /metrics
    scheme : https
    basic_auth:
      username: prom_user_618d48e05277a606ed2496fe
      password: fSIMUngfTmOTVEB4
    file_sd_configs:
      - files:
        - /usr/local/etc/targets.json
```

## Import a Sample Grafana Dashboard

To import a sample Grafana dashboard:

1. Navigate to the Import screen.

   In the Grafana UI, click the  button, and then click Import.

2. Click Upload JSON File.

3. Copy over the `mongo-metrics.json` or the `hardware-metrics.json` file to create a dashboard.

   ##### mongo-metrics.json

   ```json
   {
     "__inputs": [
       {
         "name": "DS_PROMETHEUS",
         "label": "prometheus",
         "description": "Select your Prometheus datasource",
         "type": "datasource",
         "pluginId": "prometheus",
         "pluginName": "Prometheus"
       }
     ],
     "__elements": {},
     "__requires": [
       {
         "type": "grafana",
         "id": "grafana",
         "name": "Grafana",
         "version": "12.3.1"
       },
       {
         "type": "datasource",
         "id": "prometheus",
         "name": "Prometheus",
         "version": "1.0.0"
       },
       {
         "type": "panel",
         "id": "state-timeline",
         "name": "State timeline",
         "version": ""
       },
       {
         "type": "panel",
         "id": "table",
         "name": "Table",
         "version": ""
       },
       {
         "type": "panel",
         "id": "timeseries",
         "name": "Time series",
         "version": ""
       }
     ],
     "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"
         }
       ]
     },
     "editable": true,
     "fiscalYearStartMonth": 0,
     "graphTooltip": 0,
     "links": [],
     "panels": [
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 0
         },
         "id": 10,
         "panels": [],
         "title": "Overview",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "thresholds"
             },
             "custom": {
               "align": "auto",
               "cellOptions": {
                 "type": "auto"
               },
               "footer": {
                 "reducers": []
               },
               "inspect": false
             },
             "decimals": 2,
             "displayName": "",
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "short"
           },
           "overrides": [
             {
               "matcher": {
                 "id": "byName",
                 "options": "Value"
               },
               "properties": [
                 {
                   "id": "unit",
                   "value": "short"
                 },
                 {
                   "id": "decimals",
                   "value": 2
                 },
                 {
                   "id": "custom.align"
                 }
               ]
             }
           ]
         },
         "gridPos": {
           "h": 4,
           "w": 24,
           "x": 0,
           "y": 1
         },
         "id": 41,
         "options": {
           "cellHeight": "sm",
           "showHeader": true
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": false,
             "expr": "label_replace( sum(mongodb_info{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (group_id, org_id, rs_nm, cl_name), \"hostname\", \"$1\", \"instance\", \"(.*)\")\n",
             "format": "table",
             "instant": true,
             "interval": "${interval:value}",
             "legendFormat": "",
             "refId": "A"
           }
         ],
         "title": "Group Metadata",
         "transformations": [
           {
             "id": "organize",
             "options": {
               "excludeByName": {
                 "Time": true,
                 "Value #A": true,
                 "instance": true,
                 "rs_nm": false
               },
               "indexByName": {
                 "": 2,
                 "Time": 0,
                 "Value #A": 6,
                 "cl_name": 4,
                 "group_id": 3,
                 "org_id": 1,
                 "rs_nm": 5
               },
               "renameByName": {
                 "": "Group Name ",
                 "Time": "",
                 "cl_name": "Cluster Name",
                 "group_id": "Group Id",
                 "hostname": "Host",
                 "instance": "",
                 "org_id": "Org Id",
                 "process_port": "Port",
                 "replica_state": "ReplicaSet State",
                 "rs_nm": "ReplicaSet Name"
               }
             }
           },
           {
             "id": "groupBy",
             "options": {
               "fields": {
                 "Cluster Name": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Group Id": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Group Name ": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Host": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Host ": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Org Id": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Replica set state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "ReplicaSet Name": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "ReplicaSet State": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "host ": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "hostname": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "instance": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "process_port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica set": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica set state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica_state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "rs_nm": {
                   "aggregations": [],
                   "operation": "groupby"
                 }
               }
             }
           },
           {
             "id": "merge",
             "options": {
               "reducers": []
             }
           }
         ],
         "type": "table"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "thresholds"
             },
             "custom": {
               "align": "auto",
               "cellOptions": {
                 "type": "auto"
               },
               "footer": {
                 "reducers": []
               },
               "inspect": false
             },
             "decimals": 0,
             "displayName": "",
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 6,
           "w": 24,
           "x": 0,
           "y": 5
         },
         "id": 42,
         "options": {
           "cellHeight": "sm",
           "showHeader": true
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": false,
             "expr": "label_replace( sum(mongodb_info{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance, replica_state_name, process_port, rs_nm, process_type), \"hostname\", \"$1\", \"instance\", \"(.*):.*\")\n",
             "format": "table",
             "instant": true,
             "interval": "${interval:value}",
             "legendFormat": "",
             "refId": "A"
           }
         ],
         "title": "Cluster host list",
         "transformations": [
           {
             "id": "organize",
             "options": {
               "excludeByName": {
                 "Time": true,
                 "Value #A": true,
                 "instance": false,
                 "rs_nm": false
               },
               "indexByName": {
                 "Time": 0,
                 "Value": 6,
                 "instance": 1,
                 "process_port": 2,
                 "process_type": 4,
                 "replica_state_name": 5,
                 "rs_nm": 3
               },
               "renameByName": {
                 "Time": "",
                 "Value": "",
                 "hostname": "Host",
                 "instance": "Hostname",
                 "process_port": "Port",
                 "process_type": "Process Type",
                 "replica_state": "ReplicaSet State",
                 "replica_state_name": "Replica State",
                 "rs_nm": "ReplicaSet Name"
               }
             }
           },
           {
             "id": "groupBy",
             "options": {
               "fields": {
                 "Host": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Host ": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Hostname": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Process Type": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Replica State": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Replica set state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "ReplicaSet Name": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "ReplicaSet State": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "host ": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "hostname": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "instance": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "process_port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica set": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica set state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica_state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "rs_nm": {
                   "aggregations": [],
                   "operation": "groupby"
                 }
               }
             }
           },
           {
             "id": "merge",
             "options": {
               "reducers": []
             }
           }
         ],
         "type": "table"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The RS State for each node at a given time.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisPlacement": "auto",
               "fillOpacity": 70,
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineWidth": 0,
               "spanNulls": false
             },
             "links": [],
             "mappings": [
               {
                 "options": {
                   "0": {
                     "color": "green",
                     "index": 0,
                     "text": "Primary"
                   },
                   "1": {
                     "color": "yellow",
                     "index": 1,
                     "text": "Secondary"
                   }
                 },
                 "type": "value"
               }
             ],
             "max": 1,
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 12,
           "x": 0,
           "y": 11
         },
         "id": 134,
         "interval": "${interval:value}",
         "options": {
           "alignValue": "left",
           "legend": {
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "mergeValues": true,
           "rowHeight": 0.9,
           "showValue": "always",
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": false,
             "expr": "label_replace(\n  sum(\n    mongodb_repl_secondary{\n      group_id=~\"$group_id\",\n      cl_name=~\"$cl_name\",\n      instance=~\"$host.*\"\n    }\n  ) by (instance) > bool 0,\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\n)",
             "format": "time_series",
             "instant": false,
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "ReplicatSet State (Failovers)",
         "type": "state-timeline"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The amount of time the instance has been Up since last restart.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 12,
           "x": 12,
           "y": 11
         },
         "id": 135,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace(sum\r\n  (\r\n    mongodb_uptime{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance),\r\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\r\n)",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "Node Uptime (Restarts)",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 18
         },
         "id": 126,
         "panels": [],
         "title": "Catalog",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "Total number of collections across all non-system databases.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 19
         },
         "id": 127,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_catalogStats_collections{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "Catalog - total collections",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "Total number of views across all non-system databases.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 6,
           "y": 19
         },
         "id": 128,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_catalogStats_views{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "Catalog - total views",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "Total number of indexes across all non-system databases.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 12,
           "y": 19
         },
         "id": 129,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_indexStats_count{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "Catalog - total indexes",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 27
         },
         "id": 8,
         "panels": [],
         "title": "Memory",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of megabytes resident. MMAPv1: It is typical over time, on a dedicated database server, for this number to approach the amount of physical ram on the box. WiredTiger: In a standard deployment resident is the amount of memory used by the WiredTiger cache plus the memory dedicated to other in memory structures used by the mongod process. By default, mongod with WiredTiger reserves 50% of the total physical memory on the server for the cache and at steady state, WiredTiger tries to limit cache usage to 80% of that total. For example, if a server has 16GB of memory, WiredTiger will assume it can use 8GB for cache and at steady state should use about 6.5GB.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 0,
           "y": 28
         },
         "id": 2,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_mem_resident{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\") * 1024 * 1024",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Memory - Resident",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The virtual megabytes for the mongod process. MMAPv1: Generally virtual should be a little larger than mapped (or 2x with --journal), but if virtual is many gigabytes larger, it indicates that excessive memory is being used by other aspects than the memory mapping of files -- that would be bad/suboptimal. The most common case of usage of a high amount of memory for non-mapped is that there are very many connections to the database. Each connection has a thread stack and the memory for those stacks can add up to a considerable amount. WiredTiger: Generally virtual should be a little larger than mapped, but if virtual is many gigabytes larger, it indicates that excessive memory is being used by other aspects than the memory mapping of files -- that would be bad/suboptimal. The most common case of usage of a high amount of memory for non-mapped is that there are very many connections to the database. Each connection has a thread stack and the memory for those stacks can add up to a considerable amount.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 12,
           "y": 28
         },
         "id": 72,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_mem_virtual{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\") * 1024 * 1024",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Memory - Virtual",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 36
         },
         "id": 17,
         "panels": [],
         "title": "Asserts",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of regular asserts raised per second over the selected sample period\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 37
         },
         "id": 73,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_asserts_regular{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Asserts - Regular",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of warnings per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 6,
           "y": 37
         },
         "id": 74,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_asserts_warning{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Asserts - Warning",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of message asserts per second over the selected sample period. These are internal server errors that have a well defined text string. Stack traces are logged for these",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 12,
           "y": 37
         },
         "id": 75,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_asserts_msg{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Asserts - Message",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of user asserts per second over the selected sample period. These are errors that can be generated by a user such as out of disk space or duplicate key",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 18,
           "y": 37
         },
         "id": 76,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_asserts_user{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Asserts - User",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 45
         },
         "id": 44,
         "panels": [],
         "title": "Cache",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of bytes per second read into WiredTiger's cache over the selected sample period.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "binBps"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 46
         },
         "id": 77,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_wiredTiger_cache_bytes_read_into_cache{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Cache Activity - Read Into",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of bytes per second written from WiredTiger's cache over the selected sample period.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "binBps"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 6,
           "y": 46
         },
         "id": 78,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_wiredTiger_cache_bytes_written_from_cache{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Cache Activity - Write From",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of bytes currently in the WiredTiger cache.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 12,
           "y": 46
         },
         "id": 79,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_wiredTiger_cache_bytes_currently_in_the_cache{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Cache Usage - Used",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of tracked dirty bytes currently in the WiredTiger cache.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 18,
           "y": 46
         },
         "id": 80,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_wiredTiger_cache_tracked_dirty_bytes_in_the_cache{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Cache Usage - Dirty",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "Cache fill ratio measures how full a cache is. It is calculated by dividing the number of bytes currently in the cache by the maximum number of bytes configured, represented as a percentage. A cache fill ratio close to 100% indicates that the query working set is larger than the configured cache size, and increasing the size of the cache could therefore reduce disk I/O.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 54
         },
         "id": 125,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace(\r\n  clamp_max(\r\n    (\r\n      sum(mongodb_wiredTiger_cache_bytes_currently_in_the_cache{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\", process_port=~\"$process_port\"}) by (instance, process_port) \r\n      / \r\n      sum(mongodb_wiredTiger_cache_maximum_bytes_configured{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\", process_port=~\"$process_port\"}) by (instance, process_port)\r\n    ) * 100,\r\n    100\r\n  ),\r\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\r\n)",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "Cache Ratio - Fill Ratio",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "Dirty fill ratio represents the proportion of dirty bytes (pages modified in memory but not yet written to disk) relative to the total cache. A high dirty fill ratio suggests that a significant amount of data is waiting to be flushed to disk, which can impact performance if not managed properly. This metric is important when monitoring write-heavy workloads to ensure data durability.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 6,
           "y": 54
         },
         "id": 124,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace(\r\n  clamp_max(\r\n    (\r\n      sum(mongodb_wiredTiger_cache_tracked_dirty_bytes_in_the_cache{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\", process_port=~\"$process_port\"}) by (instance, process_port) \r\n      / \r\n      sum(mongodb_wiredTiger_cache_maximum_bytes_configured{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\", process_port=~\"$process_port\"}) by (instance, process_port)\r\n    ) * 100,\r\n    100\r\n  ),\r\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\r\n)",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "Cache Ratio - Dirty Fill Ratio",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 62
         },
         "id": 28,
         "panels": [],
         "title": "Connections",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of currently active connections to this server. A stack is allocated per connection; thus very many connections can result in significant RAM usage.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 9,
           "w": 24,
           "x": 0,
           "y": 63
         },
         "id": 81,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_connections_current{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Connections - Current",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 72
         },
         "id": 30,
         "panels": [],
         "title": "Cursors",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of cursors that the server is maintaining for clients. Because MongoDB exhausts unused cursors, typically this value is small or zero. However, if there is a queue, stale tailable cursors, or a large number of operations this value may rise.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 13,
           "x": 0,
           "y": 73
         },
         "id": 82,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_metrics_cursor_open_total{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Cursors - Total Open",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of cursors that have timed out per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 11,
           "x": 13,
           "y": 73
         },
         "id": 83,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_metrics_cursor_timedOut{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Cursors - Timed Out",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 81
         },
         "id": 32,
         "panels": [],
         "title": "Document Metrics",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate per second of documents returned by queries over the selected sample period.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 82
         },
         "id": 84,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_metrics_document_returned{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Document Metrics - Returned",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate per second of documents inserted over the selected sample period.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 6,
           "y": 82
         },
         "id": 87,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_metrics_document_inserted{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Document Metrics - Inserted",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate per second of documents updated over the selected sample period.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 12,
           "y": 82
         },
         "id": 86,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_metrics_document_updated{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Document Metrics - Updated",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate per second of documents deleted over the selected sample period.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 18,
           "y": 82
         },
         "id": 85,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_metrics_document_deleted{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Document Metrics - Deleted",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 90
         },
         "id": 69,
         "panels": [],
         "title": "Network",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of requests sent to this database server per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 0,
           "y": 91
         },
         "id": 88,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_network_numRequests{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Network - Num Requests",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of physical (after any wire compression) bytes sent to this database server per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "binBps"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 16,
           "x": 8,
           "y": 91
         },
         "id": 90,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_network_bytesIn{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "bytes in - {{hostname}}:{{process_port}}",
             "refId": "A"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "expr": "label_replace(sum(rate(mongodb_network_bytesOut{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "legendFormat": "bytes out - {{hostname}}:{{process_port}}",
             "refId": "B"
           }
         ],
         "title": "Network - Bytes In/Out",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 99
         },
         "id": 93,
         "panels": [],
         "title": "Opcounters",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of commands performed per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 0,
           "y": 100
         },
         "id": 96,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opcounters_command{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Opcounters - Command",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of queries performed per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 8,
           "y": 100
         },
         "id": 101,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opcounters_query{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Opcounters - Query",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of updates performed per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 16,
           "y": 100
         },
         "id": 100,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opcounters_update{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Opcounters - Update",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of deletes performed per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 0,
           "y": 108
         },
         "id": 99,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opcounters_delete{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Opcounters - Delete",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of getMores performed per second on any cursor over the selected sample period. On a primary, this number can be high even if the query count is low as the secondaries \"getMore\" from the primary often as part of replication.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 8,
           "y": 108
         },
         "id": 97,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opcounters_getmore{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Opcounters - Getmore",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of inserts performed per second over the selected sample period",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 16,
           "y": 108
         },
         "id": 98,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opcounters_insert{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Opcounters - Insert",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of TTL deletes performed per second over the selected sample period. TTL deletes only apply to the primary member of a replica set. TTL deletes do not apply to secondaries, as these deletions are replicated to secondary replica set members. History of previous primary hosts TTL deletes are maintained on the originating primary.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 0,
           "y": 116
         },
         "id": 130,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_metrics_ttl_deletedDocuments{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Opcounters - TTL Deleted",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 124
         },
         "id": 95,
         "panels": [],
         "title": "Operation Execution Times",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average execution time in milliseconds per read operation over the selected sample period.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "µs"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 0,
           "y": 125
         },
         "id": 102,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opLatencies_reads_latency{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])/rate(mongodb_opLatencies_reads_ops{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Operation Execution Times - Avg Ms/Read",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average execution time in milliseconds per write operation over the selected sample period.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "µs"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 8,
           "y": 125
         },
         "id": 104,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opLatencies_writes_latency{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])/rate(mongodb_opLatencies_writes_ops{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Operation Execution Times - Avg Ms/Write",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average execution time in milliseconds per command operation over the selected sample period.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "µs"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 16,
           "y": 125
         },
         "id": 103,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_opLatencies_commands_latency{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])/rate(mongodb_opLatencies_commands_ops{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Operation Execution Times - Avg Ms/Command",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 133
         },
         "id": 106,
         "panels": [],
         "title": "Page Faults",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of page faults on this process per second over the selected sample period. In non-Windows environments this is hard page faults only.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 24,
           "x": 0,
           "y": 134
         },
         "id": 107,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_extra_info_page_faults{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Page Faults",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 142
         },
         "id": 111,
         "panels": [],
         "title": "Query Executor",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate per second over the selected sample period of index items scanned during queries and query-plan evaluation. This rate is driven by the same value as totalKeysExamined in the output of explain().",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 0,
           "y": 143
         },
         "id": 108,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_metrics_queryExecutor_scanned{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Query Executor - Scanned",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate per second over the selected sample period of documents scanned during queries and query-plan evaluation. This rate is driven by the same value as totalDocsExamined in the output of explain().",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 12,
           "y": 143
         },
         "id": 109,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_metrics_queryExecutor_scannedObjects{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Query Executor - Scanned Objects",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 151
         },
         "id": 113,
         "panels": [],
         "title": "Queues",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of operations queued waiting for any lock",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 0,
           "y": 152
         },
         "id": 114,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_globalLock_currentQueue_total{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Queues - Total",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of operations queued waiting for a read lock",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 8,
           "y": 152
         },
         "id": 115,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_globalLock_currentQueue_readers{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Queues - Readers",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of operations queued waiting for a write lock",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 16,
           "y": 152
         },
         "id": 116,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_globalLock_currentQueue_writers{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Queues - Writers",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 160
         },
         "id": 118,
         "panels": [],
         "title": "Sorting",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate per second over the selected sample period of queries that return sorted results that cannot perform the sort operation using an index.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 0,
           "y": 161
         },
         "id": 119,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(mongodb_metrics_operation_scanAndOrder{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}[${interval:text}])) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Scan and Order",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The total number of writes to disk caused by sort stages. A high number can be due to resource-intensive queries that are performing a collection scan and are using a $sort stage. These resource-intensive queries result in temporary file creation that exceed available memory and utilize disk space for sorting. Identify offending queries in the Query Profiler by looking for collection scans with a $sort stage around the same time the database experiences an increase in disk usage.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 12,
           "y": 161
         },
         "id": 131,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(\r\n  sum(mongodb_metrics_query_sort_spillToDisk{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\", process_port=~\"$process_port\"}) by (instance, process_port),\r\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\r\n)",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "spill to disk during sort",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 169
         },
         "id": 123,
         "panels": [],
         "title": "Tickets Available",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of read tickets available to the WiredTiger storage engine. Read tickets represent the number of concurrent read operations allowed into the storage engine. When this value reaches zero new read requests may queue until a read ticket becomes available.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 0,
           "y": 170
         },
         "id": 120,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_queues_execution_read_available{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Tickets Available - Reads",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of write tickets available to the WiredTiger storage engine. Write tickets represent the number of concurrent write operations allowed into the storage engine. When this value reaches zero new write requests may queue until a write ticket becomes available.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 12,
           "y": 170
         },
         "id": 121,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(mongodb_queues_execution_write_available{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\",  process_port=~\"$process_port\"}) by (instance, process_port) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Tickets Available - Writes",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 178
         },
         "id": 132,
         "panels": [],
         "title": "Replication",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The approximate number of hours available in the replication oplog for the sync source (in most cases, the primary). If a secondary is behind real-time by more than this amount, it cannot catch up and will require a full resync.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "days"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 12,
           "x": 0,
           "y": 179
         },
         "id": 133,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(\r\n  (\r\n    mongodb_oplog_latestOptime{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\", process_port=~\"$process_port\"}\r\n    - on(instance, process_port) \r\n    mongodb_oplog_earliestOptime{group_id=~\"$group_id\", cl_name=~\"$cl_name\", rs_nm=~\"$rs_nm\", instance=~\"$host.*\", process_port=~\"$process_port\"}\r\n  ) / 60 / 60 / 24,\r\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\r\n)",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Replication Oplog Window",
         "type": "timeseries"
       }
     ],
     "preload": false,
     "refresh": "",
     "schemaVersion": 42,
     "tags": [],
     "templating": {
       "list": [
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up, job)",
           "includeAll": false,
           "name": "job",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up, job)",
             "refId": "thanos-job-Variable-Query"
           },
           "refresh": 2,
           "regex": "",
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{job=\"$job\"}, group_id)",
           "includeAll": false,
           "label": "Group Id",
           "name": "group_id",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{job=\"$job\"}, group_id)",
             "refId": "thanos-group_id-Variable-Query"
           },
           "refresh": 1,
           "regex": "",
           "sort": 5,
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{group_id='$group_id'}, cl_name)",
           "includeAll": false,
           "label": "Cluster Name",
           "name": "cl_name",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{group_id='$group_id'}, cl_name)",
             "refId": "thanos-cl_name-Variable-Query"
           },
           "refresh": 2,
           "regex": "",
           "sort": 5,
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name'}, rs_nm)",
           "includeAll": true,
           "label": "ReplicaSet Name",
           "multi": true,
           "name": "rs_nm",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name'}, rs_nm)",
             "refId": "thanos-rs_nm-Variable-Query"
           },
           "refresh": 1,
           "regex": "",
           "sort": 5,
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name',rs_nm='$rs_nm'},instance)",
           "includeAll": true,
           "label": "Host",
           "multi": true,
           "name": "host",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name',rs_nm='$rs_nm'},instance)",
             "refId": "thanos-host-Variable-Query"
           },
           "refresh": 2,
           "regex": "",
           "sort": 5,
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name',rs_nm='$rs_nm'},process_port)",
           "description": "Only applicable for process level metrics",
           "includeAll": true,
           "label": "Process Port",
           "multi": true,
           "name": "process_port",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name',rs_nm='$rs_nm'},process_port)",
             "refId": "thanos-process_port-Variable-Query"
           },
           "refresh": 1,
           "regex": "",
           "sort": 5,
           "type": "query"
         },
         {
           "allowCustomValue": true,
           "current": {
             "text": "1m",
             "value": "1m"
           },
           "description": "Controls the rate window and derived step interval.\nAdjust options to match your Prometheus scrape interval (for example, if your scrape interval is 60s, remove the 15s–1m entries).",
           "label": "Interval",
           "name": "interval",
           "options": [
             {
               "selected": false,
               "text": "45s",
               "value": "15s"
             },
             {
               "selected": true,
               "text": "1m",
               "value": "1m"
             },
             {
               "selected": true,
               "text": "3m",
               "value": "1m"
             },
             {
               "selected": false,
               "text": "5m",
               "value": "5m"
             },
             {
               "selected": false,
               "text": "1h",
               "value": "1h"
             },
             {
               "selected": false,
               "text": "1d",
               "value": "1d"
             }
           ],
           "query": "45s : 15s, 1m : 1m, 3m : 1m, 5m : 5m, 1h : 1h, 1d : 1d",
           "type": "custom"
         }
       ]
     },
     "time": {
       "from": "now-6h",
       "to": "now"
     },
     "timepicker": {},
     "timezone": "",
     "title": "Dedicated Atlas Clusters - Mongo Metrics",
     "uid": "W0lo7Gx7j",
     "version": 2,
     "weekStart": "",
     "id": null
   }
   ```

   ##### hardware-metrics.json

   ```json
   {
     "__inputs": [
       {
         "name": "DS_PROMETHEUS",
         "label": "prometheus",
         "description": "Select your Prometheus datasource",
         "type": "datasource",
         "pluginId": "prometheus",
         "pluginName": "Prometheus"
       }
     ],
     "__elements": {},
     "__requires": [
       {
         "type": "grafana",
         "id": "grafana",
         "name": "Grafana",
         "version": "12.3.1"
       },
       {
         "type": "datasource",
         "id": "prometheus",
         "name": "Prometheus",
         "version": "1.0.0"
       },
       {
         "type": "panel",
         "id": "state-timeline",
         "name": "State timeline",
         "version": ""
       },
       {
         "type": "panel",
         "id": "table",
         "name": "Table",
         "version": ""
       },
       {
         "type": "panel",
         "id": "timeseries",
         "name": "Time series",
         "version": ""
       }
     ],
     "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"
         }
       ]
     },
     "editable": true,
     "fiscalYearStartMonth": 0,
     "graphTooltip": 0,
     "links": [],
     "panels": [
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 0
         },
         "id": 10,
         "panels": [],
         "title": "Overview",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "fieldConfig": {
           "defaults": {
             "custom": {
               "align": "auto",
               "cellOptions": {
                 "type": "auto"
               },
               "footer": {
                 "reducers": []
               },
               "inspect": false
             },
             "decimals": 2,
             "displayName": "",
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "short"
           },
           "overrides": [
             {
               "matcher": {
                 "id": "byName",
                 "options": "Time"
               },
               "properties": [
                 {
                   "id": "displayName",
                   "value": "Time"
                 },
                 {
                   "id": "custom.hideFrom.viz",
                   "value": true
                 },
                 {
                   "id": "custom.align"
                 }
               ]
             },
             {
               "matcher": {
                 "id": "byName",
                 "options": "Value"
               },
               "properties": [
                 {
                   "id": "unit",
                   "value": "short"
                 },
                 {
                   "id": "decimals",
                   "value": 2
                 },
                 {
                   "id": "custom.hideFrom.viz",
                   "value": true
                 },
                 {
                   "id": "custom.align"
                 }
               ]
             }
           ]
         },
         "gridPos": {
           "h": 3,
           "w": 24,
           "x": 0,
           "y": 1
         },
         "id": 41,
         "options": {
           "cellHeight": "sm",
           "frameIndex": 0,
           "showHeader": true,
           "sortBy": [
             {
               "desc": true,
               "displayName": "Value #A"
             }
           ]
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(mongodb_up{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by ( group_id, org_id, rs_nm, cl_name), \"hostname\", \"$1\", \"instance\", \"(.*)\")\n",
             "format": "table",
             "instant": true,
             "interval": "${interval:value}",
             "legendFormat": "",
             "refId": "A"
           }
         ],
         "title": "Group Metadata",
         "transformations": [
           {
             "id": "merge",
             "options": {
               "reducers": []
             }
           }
         ],
         "type": "table"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "thresholds"
             },
             "custom": {
               "align": "auto",
               "cellOptions": {
                 "type": "auto"
               },
               "footer": {
                 "reducers": []
               },
               "inspect": false
             },
             "decimals": 2,
             "displayName": "",
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 5,
           "w": 24,
           "x": 0,
           "y": 4
         },
         "id": 42,
         "options": {
           "cellHeight": "sm",
           "showHeader": true
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": false,
             "expr": "label_replace( sum(mongodb_info{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance, replica_state_name, process_port, rs_nm, process_type), \"hostname\", \"$1\", \"instance\", \"(.*):.*\")\n",
             "format": "table",
             "instant": true,
             "interval": "${interval:value}",
             "legendFormat": "",
             "refId": "A"
           }
         ],
         "title": "Cluster host list",
         "transformations": [
           {
             "id": "organize",
             "options": {
               "excludeByName": {
                 "Time": true,
                 "Value": true,
                 "Value #A": true,
                 "instance": false,
                 "process_type": false,
                 "rs_nm": false
               },
               "indexByName": {
                 "Time": 0,
                 "Value #A": 6,
                 "hostname": 1,
                 "instance": 2,
                 "process_port": 3,
                 "replica_state": 4,
                 "rs_nm": 5
               },
               "renameByName": {
                 "Time": "",
                 "Value": "",
                 "hostname": "Host",
                 "instance": "Hostname",
                 "process_port": "Port",
                 "process_type": "Type",
                 "replica_state": "ReplicaSet State",
                 "replica_state_name": "Replica State Name",
                 "rs_nm": "ReplicaSet Name"
               }
             }
           },
           {
             "id": "groupBy",
             "options": {
               "fields": {
                 "Host": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Host ": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Hostname": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Replica State Name": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Replica set state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "ReplicaSet Name": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "ReplicaSet State": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "Type": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "host ": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "hostname": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "instance": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "process_port": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "process_type": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica set": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica set state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica_state": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "replica_state_name": {
                   "aggregations": [],
                   "operation": "groupby"
                 },
                 "rs_nm": {
                   "aggregations": [],
                   "operation": "groupby"
                 }
               }
             }
           },
           {
             "id": "merge",
             "options": {
               "reducers": []
             }
           }
         ],
         "type": "table"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The RS State for each node at a given time.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisPlacement": "auto",
               "fillOpacity": 70,
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineWidth": 0,
               "spanNulls": false
             },
             "links": [],
             "mappings": [
               {
                 "options": {
                   "0": {
                     "color": "green",
                     "index": 0,
                     "text": "Primary"
                   },
                   "1": {
                     "color": "yellow",
                     "index": 1,
                     "text": "Secondary"
                   }
                 },
                 "type": "value"
               }
             ],
             "max": 1,
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 12,
           "x": 0,
           "y": 9
         },
         "id": 134,
         "interval": "${interval:value}",
         "options": {
           "alignValue": "left",
           "legend": {
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "mergeValues": true,
           "rowHeight": 0.9,
           "showValue": "always",
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": false,
             "expr": "label_replace(\n  sum(\n    mongodb_repl_secondary{\n      group_id=~\"$group_id\",\n      cl_name=~\"$cl_name\",\n      instance=~\"$host.*\"\n    }\n  ) by (instance) > bool 0,\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\n)",
             "format": "time_series",
             "instant": false,
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "ReplicatSet State (Failovers)",
         "type": "state-timeline"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The amount of time the instance has been Up since last restart.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 0,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "auto",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "s"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 12,
           "x": 12,
           "y": 9
         },
         "id": 135,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "single",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace(sum\r\n  (\r\n    mongodb_uptime{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance),\r\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\r\n)",
             "interval": "${interval:value}",
             "legendFormat": "{{hostname}}:{{process_port}}",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "Node Uptime (Restarts)",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 16
         },
         "id": 8,
         "panels": [],
         "title": "System Memory",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of kilobytes of used shared memory (shared between several processes, thus including RAM disks, SYS-V-IPC and BSD like SHMEM)",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 0,
           "y": 17
         },
         "id": 2,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(hardware_system_memory_shared_mem_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\") * 1024",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System Memory - Shared",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of kilobytes of buffer cache, relatively temporary storage for raw disk blocks",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 8,
           "y": 17
         },
         "id": 6,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(hardware_system_memory_buffers_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\") * 1024",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System Memory - Buffers",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of kilobytes in the page cache.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 16,
           "y": 17
         },
         "id": 11,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace (sum(hardware_system_memory_cached_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\") * 1024",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System Memory - Cached",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The number of kilobytes of physical memory in use\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 0,
           "y": 25
         },
         "id": 13,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(\r\n  sum(hardware_system_memory_mem_total_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance) \r\n  - sum(hardware_system_memory_mem_free_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance)\r\n  - sum(hardware_system_memory_buffers_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance)\r\n  - sum(hardware_system_memory_cached_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance),\r\n  \"hostname\", \"$1\", \"instance\", \"(.*)\"\r\n) * 1024",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System Memory - Used",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The total amount of swap space in free and used, measured in kilobytes\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 8,
           "y": 25
         },
         "id": 37,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(hardware_system_memory_swap_total_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance) - sum(hardware_system_memory_swap_free_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\") * 1024",
             "interval": "${interval:value}",
             "legendFormat": "swap used for host - {{hostname}}",
             "refId": "A"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace (sum(hardware_system_memory_swap_free_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\") * 1024",
             "hide": false,
             "interval": "${interval:value}",
             "legendFormat": "swap free for host - {{hostname}}",
             "refId": "B"
           }
         ],
         "title": "System Memory - Swap",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "An estimate of the number of kilobytes of system memory available for running new applications, without swapping",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 8,
           "x": 16,
           "y": 25
         },
         "id": 15,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( \r\n  sum(hardware_system_memory_mem_available_kilobytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance)\r\n   , \"hostname\", \"$1\", \"instance\", \"(.*)\") * 1024",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System Memory - Available",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 33
         },
         "id": 17,
         "panels": [],
         "title": "System CPU",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU had something runnable, but the hypervisor chose to run something else. For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 0,
           "y": 34
         },
         "id": 19,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_steal_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 10) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System cpu - steal",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing guest, which is included in user. For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 6,
           "y": 34
         },
         "id": 20,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_guest_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 10) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System cpu - guest",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent performing software interrupts. For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 12,
           "y": 34
         },
         "id": 21,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_soft_irq_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 10) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System cpu - softirq",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent performing hardware interrupts. For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 18,
           "y": 34
         },
         "id": 22,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_irq_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 10) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System cpu - irq",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent waiting for IO operations to complete. For servers with more than 1 CPU core, this value can exceed 100%\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 0,
           "y": 41
         },
         "id": 23,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(hardware_system_cpu_io_wait_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 10) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System cpu - iowait",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent occupied by all processes with a positive nice value. For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 6,
           "y": 41
         },
         "id": 24,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_nice_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 10) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System cpu - nice",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing operating system calls from all processes. For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 12,
           "y": 41
         },
         "id": 25,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_kernel_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 10) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System cpu - kernel",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing all user applications (not just MongoDB processes). For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 18,
           "y": 41
         },
         "id": 26,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_user_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 10) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "System cpu - user",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 48
         },
         "id": 44,
         "panels": [],
         "title": "Normalized System Cpu",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU had something runnable, but the hypervisor chose to run something else. It is scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 0,
           "y": 49
         },
         "id": 46,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_steal_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / (10 * hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"})) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "Normalized System cpu - steal",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing guest, which is included in user. It is scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 6,
           "y": 49
         },
         "id": 47,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_guest_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / (10 * hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"})) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "Normalized System cpu - guest",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent performing software interrupts. It is scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 12,
           "y": 49
         },
         "id": 48,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_soft_irq_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / (10 * hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"})) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "Normalized System cpu - softirq",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent performing hardware interrupts. It is scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 18,
           "y": 49
         },
         "id": 49,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_irq_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / (10 * hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"})) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "Normalized System cpu - irq",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent waiting for IO operations to complete. It is scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 0,
           "y": 56
         },
         "id": 51,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(hardware_system_cpu_io_wait_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / (10 * hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"})) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "Normalized System cpu - iowait",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent occupied by all processes with a positive nice value. It is scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 6,
           "y": 56
         },
         "id": 52,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_nice_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / (10 * hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"})) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "Normalized System cpu - nice",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing operating system calls from all processes. It is scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 12,
           "y": 56
         },
         "id": 53,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_kernel_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / (10 * hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"})) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "Normalized System cpu - kernel",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing all user applications (not just MongoDB processes). It is scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "min": 0,
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 18,
           "y": 56
         },
         "id": 50,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_cpu_user_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / (10 * hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"})) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}}",
             "refId": "A"
           }
         ],
         "title": "Normalized System cpu - user",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 63
         },
         "id": 28,
         "panels": [],
         "title": "System Network",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average rate of physical bytes received per second by the eth0 network interface\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "binBps"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 9,
           "w": 24,
           "x": 0,
           "y": 64
         },
         "id": 73,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_network_eth0_bytes_in_bytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}])) by (instance) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "legendFormat": "bytes in - {{hostname}}",
             "range": true,
             "refId": "A"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "expr": "label_replace(sum(rate(hardware_system_network_eth0_bytes_out_bytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}])) by (instance), \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "legendFormat": "bytes out - {{hostname}}",
             "range": true,
             "refId": "B"
           }
         ],
         "title": "Network traffic",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 73
         },
         "id": 30,
         "panels": [],
         "title": "System Disk",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The total bytes of free disk space on the disk partition used by MongoDB.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 74
         },
         "id": 14,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(hardware_disk_metrics_disk_space_free_bytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance, disk_name) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}}, host - {{hostname}} ",
             "refId": "A"
           }
         ],
         "title": "System Disk - Free",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percent of free disk space on the partition used by MongoDB.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 6,
           "y": 74
         },
         "id": 71,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(hardware_disk_metrics_disk_space_free_bytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"} / (hardware_disk_metrics_disk_space_used_bytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"} + hardware_disk_metrics_disk_space_free_bytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) * 100) by (instance, disk_name) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}}, host - {{hostname}} ",
             "refId": "A"
           }
         ],
         "title": "System Disk Percent Free",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The total bytes of used disk space on the partition that runs MongoDB.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "bytes"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 12,
           "y": 74
         },
         "id": 36,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(hardware_disk_metrics_disk_space_used_bytes{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance, disk_name) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}} host - {{hostname}} ",
             "refId": "A"
           }
         ],
         "title": "System Disk - Used",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The write throughput of I/O operations per second for the disk partition used for MongoDB.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/ sec"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 18,
           "y": 74
         },
         "id": 63,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_disk_metrics_write_count{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}])) by (instance, disk_name) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "hide": false,
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}} host - {{hostname}} ",
             "refId": "B"
           }
         ],
         "title": "System Disk Write IOPS",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The write latency in milliseconds of the disk partition used by MongoDB.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "ms"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 82
         },
         "id": 64,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_disk_metrics_write_time_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / rate(hardware_disk_metrics_write_count{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}])) by (instance, disk_name), \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "hide": false,
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}} host - {{hostname}} ",
             "refId": "B"
           }
         ],
         "title": "System Disk Write Latency",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The Read latency in milliseconds of the disk partition used by MongoDB.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "ms"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 6,
           "y": 82
         },
         "id": 65,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_disk_metrics_read_time_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / rate(hardware_disk_metrics_read_count{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}])) by (instance, disk_name), \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "hide": false,
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}} host - {{hostname}} ",
             "refId": "B"
           }
         ],
         "title": "System Disk Read Latency",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The read throughput of I/O operations per second for the disk partition used for MongoDB.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/ sec"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 12,
           "y": 82
         },
         "id": 62,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_disk_metrics_read_count{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}])) by (instance, disk_name) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}} host - {{hostname}} ",
             "refId": "A"
           }
         ],
         "title": "System Disk Read IOPS",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time during which requests are being issued to and serviced by the partition. This includes requests from any process, not just MongoDB processes.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 18,
           "y": 82
         },
         "id": 67,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_disk_metrics_total_time_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) ) by (instance, disk_name) / 10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "hide": false,
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}} host - {{hostname}} ",
             "refId": "B"
           }
         ],
         "title": "System Disk Util %",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The average length of queue of requests issued to the disk partition used by MongoDB.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "none"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 90
         },
         "id": 66,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_disk_metrics_weighted_time_io_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) / 1000) by (instance, DiskName), \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "hide": false,
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}} host - {{hostname}} ",
             "range": true,
             "refId": "B"
           }
         ],
         "title": "System Disk Queue Depth",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "Disk Read Throughput refers to the rate at which data is read from disk in Megabytes per second, indicating how efficiently the database retrieves data that is not cached in memory.",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "binBps"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 6,
           "y": 90
         },
         "id": 74,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "editorMode": "code",
             "exemplar": true,
             "expr": "label_replace( sum(hardware_disk_metrics_read_throughput_bytes_per_second{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}) by (instance, disk_name) , \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "disk - {{disk_name}} host - {{hostname}} ",
             "range": true,
             "refId": "A"
           }
         ],
         "title": "System Disk Throughput - read throughput",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 98
         },
         "id": 32,
         "panels": [],
         "title": "Process CPU",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing this MongoDB process, scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 0,
           "y": 99
         },
         "id": 54,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace((sum(rate(hardware_process_cpu_user_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\", process_port=~\"$process_port\" } [${interval:text}])) by (instance, process_port)  / on(instance) group_left  hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\" })/10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}} port - {{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Normalized Process cpu - user",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 6,
           "y": 99
         },
         "id": 58,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace((sum(rate(hardware_process_cpu_children_user_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\", process_port=~\"$process_port\" } [${interval:text}])) by (instance, process_port)  / on(instance) group_left  hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\" })/10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}} port - {{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Normalized Process cpu - children user",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing operating system calls for this MongoDB process, scaled to a range of 0-100% by dividing by the number of CPU cores.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 12,
           "y": 99
         },
         "id": 55,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace((sum(rate(hardware_process_cpu_kernel_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\", process_port=~\"$process_port\" } [${interval:text}])) by (instance, process_port)  / on(instance) group_left  hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\" })/10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}} port - {{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Normalized Process cpu - kernel",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 18,
           "y": 99
         },
         "id": 57,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace((sum(rate(hardware_process_cpu_children_kernel_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\", process_port=~\"$process_port\" } [${interval:text}])) by (instance, process_port)  / on(instance) group_left  hardware_platform_num_logical_cpus{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\" })/10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}} port - {{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Normalized Process cpu - children kernel",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing this MongoDB process. For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 0,
           "y": 106
         },
         "id": 56,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(hardware_process_cpu_user_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\", process_port=~\"$process_port\" } [${interval:text}])) by (instance, process_port)  / 10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}} port - {{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Process cpu - user",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 6,
           "y": 106
         },
         "id": 59,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(hardware_process_cpu_children_user_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\", process_port=~\"$process_port\" } [${interval:text}])) by (instance, process_port)  / 10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}} port - {{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Process cpu - child user",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The percentage of time the CPU spent servicing operating system calls for this MongoDB process. For servers with more than 1 CPU core, this value can exceed 100%.\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 12,
           "y": 106
         },
         "id": 60,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(hardware_process_cpu_kernel_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\", process_port=~\"$process_port\" } [${interval:text}])) by (instance, process_port)  / 10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}} port - {{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Process cpu - kernel",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "percent"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 6,
           "x": 18,
           "y": 106
         },
         "id": 61,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace(sum(rate(hardware_process_cpu_children_kernel_milliseconds{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\", process_port=~\"$process_port\" } [${interval:text}])) by (instance, process_port)  / 10, \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "interval": "${interval:value}",
             "legendFormat": "host - {{hostname}} port - {{process_port}}",
             "refId": "A"
           }
         ],
         "title": "Process cpu - children kernel",
         "type": "timeseries"
       },
       {
         "collapsed": false,
         "gridPos": {
           "h": 1,
           "w": 24,
           "x": 0,
           "y": 113
         },
         "id": 69,
         "panels": [],
         "title": "Misc.",
         "type": "row"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "${DS_PROMETHEUS}"
         },
         "description": "The total number of pages swapped in and out per second\n",
         "fieldConfig": {
           "defaults": {
             "color": {
               "mode": "palette-classic"
             },
             "custom": {
               "axisBorderShow": false,
               "axisCenteredZero": false,
               "axisColorMode": "text",
               "axisLabel": "",
               "axisPlacement": "auto",
               "barAlignment": 0,
               "barWidthFactor": 0.6,
               "drawStyle": "line",
               "fillOpacity": 10,
               "gradientMode": "none",
               "hideFrom": {
                 "legend": false,
                 "tooltip": false,
                 "viz": false
               },
               "insertNulls": false,
               "lineInterpolation": "linear",
               "lineWidth": 1,
               "pointSize": 5,
               "scaleDistribution": {
                 "type": "linear"
               },
               "showPoints": "never",
               "showValues": false,
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "links": [],
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": 0
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             },
             "unit": "/ sec"
           },
           "overrides": []
         },
         "gridPos": {
           "h": 8,
           "w": 6,
           "x": 0,
           "y": 114
         },
         "id": 70,
         "interval": "${interval:value}",
         "options": {
           "alertThreshold": true,
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom",
             "showLegend": true
           },
           "tooltip": {
             "hideZeros": false,
             "mode": "multi",
             "sort": "none"
           }
         },
         "pluginVersion": "12.3.1",
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_vm_page_swap_in{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) ) by (instance), \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "hide": false,
             "interval": "${interval:value}",
             "legendFormat": "swap in for host - {{hostname}} ",
             "refId": "B"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "${DS_PROMETHEUS}"
             },
             "exemplar": true,
             "expr": "label_replace( sum(rate(hardware_system_vm_page_swap_out{group_id=~\"$group_id\", cl_name=~\"$cl_name\", instance=~\"$host.*\"}[${interval:text}]) ) by (instance), \"hostname\", \"$1\", \"instance\", \"(.*)\")",
             "hide": false,
             "interval": "${interval:value}",
             "legendFormat": "swap out for host - {{hostname}} ",
             "refId": "A"
           }
         ],
         "title": "System VM Swap IO",
         "type": "timeseries"
       }
     ],
     "preload": false,
     "refresh": "",
     "schemaVersion": 42,
     "tags": [],
     "templating": {
       "list": [
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up, job)",
           "includeAll": false,
           "name": "job",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up, job)",
             "refId": "thanos-job-Variable-Query"
           },
           "refresh": 1,
           "regex": "",
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{job=\"$job\"}, group_id)",
           "includeAll": false,
           "label": "Group Id",
           "name": "group_id",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{job=\"$job\"}, group_id)",
             "refId": "thanos-group_id-Variable-Query"
           },
           "refresh": 1,
           "regex": "",
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{group_id='$group_id'}, cl_name)",
           "includeAll": false,
           "label": "Cluster Name",
           "name": "cl_name",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{group_id='$group_id'}, cl_name)",
             "refId": "thanos-cl_name-Variable-Query"
           },
           "refresh": 2,
           "regex": "",
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name'}, rs_nm)",
           "includeAll": true,
           "label": "Replica set name",
           "multi": true,
           "name": "rs_nm",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name'}, rs_nm)",
             "refId": "thanos-rs_nm-Variable-Query"
           },
           "refresh": 1,
           "regex": "",
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name',rs_nm='$rs_nm'},instance)",
           "includeAll": true,
           "multi": true,
           "name": "host",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name',rs_nm='$rs_nm'},instance)",
             "refId": "thanos-host-Variable-Query"
           },
           "refresh": 2,
           "regex": "",
           "type": "query"
         },
         {
           "current": {},
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "definition": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name',rs_nm='$rs_nm'},process_port)",
           "description": "Only applicable for process level metrics",
           "includeAll": true,
           "label": "Process Port",
           "multi": true,
           "name": "process_port",
           "options": [],
           "query": {
             "query": "label_values(mongodb_up{group_id='$group_id', cl_name='$cl_name',rs_nm='$rs_nm'},process_port)",
             "refId": "thanos-process_port-Variable-Query"
           },
           "refresh": 1,
           "regex": "",
           "type": "query"
         },
         {
           "allowCustomValue": true,
           "current": {
             "text": "1m",
             "value": "1m"
           },
           "description": "Controls the rate window and derived step interval.\nAdjust options to match your Prometheus scrape interval (for example, if your scrape interval is 60s, remove the 15s–1m entries).",
           "label": "Interval",
           "name": "interval",
           "options": [
             {
               "selected": false,
               "text": "45s",
               "value": "15s"
             },
             {
               "selected": true,
               "text": "1m",
               "value": "1m"
             },
             {
               "selected": true,
               "text": "3m",
               "value": "1m"
             },
             {
               "selected": false,
               "text": "5m",
               "value": "5m"
             },
             {
               "selected": false,
               "text": "1h",
               "value": "1h"
             },
             {
               "selected": false,
               "text": "1d",
               "value": "1d"
             }
           ],
           "query": "45s : 15s, 1m : 1m, 3m : 1m, 5m : 5m, 1h : 1h, 1d : 1d",
           "type": "custom"
         }
       ]
     },
     "time": {
       "from": "now-6h",
       "to": "now"
     },
     "timepicker": {},
     "timezone": "",
     "title": "Dedicated Atlas Clusters - Hardware Metrics",
     "uid": "_s7Pjkb7j",
     "version": 2,
     "weekStart": "",
     "id": null
   }
   ```

To learn more about importing Grafana dashboards, see [the Grafana documentation.](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/import-dashboards/)

## Grafana Dashboard Configuration Considerations

### Scrape Interval Configuration

**Warning:**

The supplied Grafana dashboards use the PromQL `rate()` function for some panels. You should have at least 4 data points for the lowest granularity you want to achieve. For example, if you want to visualize metrics at 1-minute granularity, set your Prometheus scrape interval to 15 seconds or less for safe implementation.

For more information, see the [Prometheus rate() function documentation](https://prometheus.io/docs/prometheus/latest/querying/functions/#rate) and the [Prometheus documentation on histograms.](https://prometheus.io/docs/practices/histograms/#apdex-score)

Alternatively, you can replace the `$interval` variable in the dashboard templates with `$__rate_interval`. This automatically resolves to an appropriate interval based on your scrape interval. For example, on a dashboard with a 1-minute step and a 10-second scrape interval, `$__rate_interval` resolves to 1 minute and 10 seconds. To learn more, see the [Grafana blog post on rate intervals.](https://grafana.com/blog/new-in-grafana-7-2-rate-interval-for-prometheus-rate-queries-that-just-work/)

### Managed Grafana Metric Filtering

**Note:**

**For Managed Grafana Users**

The Atlas Prometheus integration provides over 3,000 metrics available to scrape. If you have spend requirements and the supplied dashboards satisfy your monitoring needs, you can filter to scrape only the specific metrics used by these dashboards.

The dashboards use the following distinct metrics:

- `hardware_disk_metrics_disk_space_free_bytes`

- `hardware_disk_metrics_disk_space_used_bytes`

- `hardware_disk_metrics_read_count`

- `hardware_disk_metrics_read_throughput_bytes_per_second`

- `hardware_disk_metrics_read_time_milliseconds`

- `hardware_disk_metrics_total_time_milliseconds`

- `hardware_disk_metrics_weighted_time_io_milliseconds`

- `hardware_disk_metrics_write_count`

- `hardware_disk_metrics_write_time_milliseconds`

- `hardware_platform_num_logical_cpus`

- `hardware_process_cpu_children_kernel_milliseconds`

- `hardware_process_cpu_children_user_milliseconds`

- `hardware_process_cpu_kernel_milliseconds`

- `hardware_process_cpu_user_milliseconds`

- `hardware_system_cpu_guest_milliseconds`

- `hardware_system_cpu_io_wait_milliseconds`

- `hardware_system_cpu_irq_milliseconds`

- `hardware_system_cpu_kernel_milliseconds`

- `hardware_system_cpu_nice_milliseconds`

- `hardware_system_cpu_soft_irq_milliseconds`

- `hardware_system_cpu_steal_milliseconds`

- `hardware_system_cpu_user_milliseconds`

- `hardware_system_memory_buffers_kilobytes`

- `hardware_system_memory_cached_kilobytes`

- `hardware_system_memory_mem_available_kilobytes`

- `hardware_system_memory_mem_free_kilobytes`

- `hardware_system_memory_mem_total_kilobytes`

- `hardware_system_memory_shared_mem_kilobytes`

- `hardware_system_memory_swap_free_kilobytes`

- `hardware_system_memory_swap_total_kilobytes`

- `hardware_system_network_eth0_bytes_in_bytes`

- `hardware_system_network_eth0_bytes_out_bytes`

- `hardware_system_vm_page_swap_in`

- `hardware_system_vm_page_swap_out`

- `mongodb_asserts_msg`

- `mongodb_asserts_regular`

- `mongodb_asserts_user`

- `mongodb_asserts_warning`

- `mongodb_catalogStats_collections`

- `mongodb_catalogStats_views`

- `mongodb_connections_current`

- `mongodb_extra_info_page_faults`

- `mongodb_globalLock_currentQueue_readers`

- `mongodb_globalLock_currentQueue_total`

- `mongodb_globalLock_currentQueue_writers`

- `mongodb_indexStats_count`

- `mongodb_info`

- `mongodb_mem_resident`

- `mongodb_mem_virtual`

- `mongodb_metrics_cursor_open_total`

- `mongodb_metrics_cursor_timedOut`

- `mongodb_metrics_document_deleted`

- `mongodb_metrics_document_inserted`

- `mongodb_metrics_document_returned`

- `mongodb_metrics_document_updated`

- `mongodb_metrics_operation_scanAndOrder`

- `mongodb_metrics_queryExecutor_scanned`

- `mongodb_metrics_queryExecutor_scannedObjects`

- `mongodb_metrics_query_sort_spillToDisk`

- `mongodb_metrics_ttl_deletedDocuments`

- `mongodb_network_bytesIn`

- `mongodb_network_bytesOut`

- `mongodb_network_numRequests`

- `mongodb_opLatencies_commands_latency`

- `mongodb_opLatencies_commands_ops`

- `mongodb_opLatencies_reads_latency`

- `mongodb_opLatencies_reads_ops`

- `mongodb_opLatencies_writes_latency`

- `mongodb_opLatencies_writes_ops`

- `mongodb_opcounters_command`

- `mongodb_opcounters_delete`

- `mongodb_opcounters_getmore`

- `mongodb_opcounters_insert`

- `mongodb_opcounters_query`

- `mongodb_opcounters_update`

- `mongodb_oplog_earliestOptime`

- `mongodb_oplog_latestOptime`

- `mongodb_queues_execution_read_available`

- `mongodb_queues_execution_write_available`

- `mongodb_repl_secondary`

- `mongodb_up`

- `mongodb_uptime`

- `mongodb_wiredTiger_cache_bytes_currently_in_the_cache`

- `mongodb_wiredTiger_cache_bytes_read_into_cache`

- `mongodb_wiredTiger_cache_bytes_written_from_cache`

- `mongodb_wiredTiger_cache_maximum_bytes_configured`

- `mongodb_wiredTiger_cache_tracked_dirty_bytes_in_the_cache`

## Performance Metrics Available to Prometheus

The following metrics are available when you use the Prometheus integration with your Atlas cluster:

- [MongoDB Metric Labels](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-prometheus-metric-labels)

  - [serverStatus](https://www.mongodb.com/docs/manual/reference/command/serverStatus/) metrics

  - [replSetGetStatus](https://www.mongodb.com/docs/manual/reference/command/replSetGetStatus/) metrics

- [MongoDB Information Metrics](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-prometheus-mongodb-info-metrics)

- [Hardware Metrics](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-prometheus-hardware-metrics)

**Note:**

On an Atlas Infinite cluster, the available metrics describe the cluster's compute nodes rather than the storage layer, and some listed metrics aren't available. For the metrics available on Atlas Infinite, see [Review Available Metrics.](https://www.mongodb.com/docs/atlas/review-available-metrics.md#std-label-review-available-metrics)

## MongoDB Metric Labels

Each MongoDB metric contains the following labels:

**Note:**

In addition to the labels listed below, Atlas sends user-defined [resource tags](https://www.mongodb.com/docs/atlas/tags.md#std-label-configure-resource-tags) to Prometheus as labels. This is an opt-in feature that you enable through the UI or the API. See [the Procedure section in this document](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-prometheus-integration) to learn more about each procedure.

| Label | Description |
| --- | --- |
| `availability_zone` | AWS (Amazon Web Services) availability zone ID, Google Cloud fully-qualified name for a zone, or Azure (Microsoft Azure) zone number. Azure (Microsoft Azure) supports availability zones only in a subset of regions. Atlas provides pre-defined availability zone tags for Azure (Microsoft Azure) only for regions that support availability zones. To learn more, see [Microsoft Azure.](https://www.mongodb.com/docs/atlas/reference/microsoft-azure.md#std-label-microsoft-azure) For more information about the possible `availabilityZone` values for each cloud provider, see the [AWS](http://docs.aws.amazon.com/ram/latest/userguide/working-with-az-ids.html), [GCP](https://cloud.google.com/compute/docs/regions-zones), or [Azure](https://docs.microsoft.com/en-us/azure/reliability/availability-zones-overview) documentation. |
| `cl_name` | Human-readable label that identifies the cluster. |
| `cl_role` | Human readable label that defines the cluster role. |
| `group_id` | Unique hexadecimal digit string that identifies the project. |
| `group_name` | Label that uniquely identifies the project. |
| `org_id` | Unique hexadecimal digit string that identifies the organization. |
| `node_type` | Node type. Possible values are `ELECTABLE`, `READ_ONLY`, and `ANALYTICS`. For more information, see [Node Types.](https://www.mongodb.com/docs/atlas/reference/replica-set-tags.md#std-label-repl-set-node-types) |
| `process_port` | Port on which the process runs. |
| `provider` | Cloud provider on which the node is provisioned. Possible values are `AWS`, `GCP`, and `AZURE`. |
| `region` | Cloud region in which the node resides. For a complete list of possible `region` values, see the [AWS](https://www.mongodb.com/docs/atlas/reference/amazon-aws.md#std-label-amazon-aws), [GCP](https://www.mongodb.com/docs/atlas/reference/google-gcp.md#std-label-google-gcp), or [Azure](https://www.mongodb.com/docs/atlas/reference/microsoft-azure.md#std-label-microsoft-azure) reference page. |
| `rs_nm` | Human-readable label that identifies the replica set. |
| `rs_state` | Number that indicates the [replica set state.](https://www.mongodb.com/docs/manual/reference/replica-states/) |

## MongoDB Information Metrics

`mongodb_info` is a gauge that always has the value of `1`. This metric contains all the [MongoDB Metric Labels](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-prometheus-metric-labels) and also the following labels:

| Label | Description |
| --- | --- |
| `mongodb_version` | String that represents the major, minor, and patch versions. |
| `replica_state_name` | String that indicates the [replica set member status.](https://www.mongodb.com/docs/manual/reference/replica-states/) |
| `process_type` | String that indicates the process running. Its values can be `mongod`, `mongos`, or `config`. |

## Hardware Metrics

**Note:**

You can also view descriptions of each hardware metric in the [Prometheus expression browser.](https://prometheus.io/docs/visualization/browser/)

| Name | Type | Description |
| --- | --- | --- |
| `hardware_disk_metrics_disk_space_free_bytes` | Gauge | Disk space available in the mounted file system. |
| `hardware_disk_metrics_disk_space_used_bytes` | Gauge | Disk space used in the mounted file system. |
| `hardware_disk_metrics_read_count` | Counter | Number of read I/O's processed. |
| `hardware_disk_metrics_read_time_milliseconds` | Counter | Total wait time for read requests. |
| `hardware_disk_metrics_sectors_read` | Counter | Number of sectors read. |
| `hardware_disk_metrics_sectors_written` | Counter | Number of sectors written. |
| `hardware_disk_metrics_total_time_milliseconds` | Counter | Total time this block device is active. |
| `hardware_disk_metrics_weighted_time_io_milliseconds` | Counter | Weighted time spent doing I/O's. |
| `hardware_disk_metrics_write_count` | Counter | Number of write I/O's processed. |
| `hardware_disk_metrics_write_time_milliseconds` | Counter | Total wait time for write requests. |
| `hardware_platform_num_logical_cpus` | Gauge | Number of logical CPUs usable by the current process. |
| `hardware_process_cpu_children_kernel_milliseconds` | Counter | Amount of time scheduled in kernel mode for this process to wait for children. |
| `hardware_process_cpu_children_user_milliseconds` | Counter | Amount of time scheduled in user mode for this process to wait for children. |
| `hardware_process_cpu_kernel_milliseconds` | Counter | Amount of time scheduled in kernel mode for this process. |
| `hardware_process_cpu_user_milliseconds` | Counter | Amount of time scheduled in user mode for this process. |
| `hardware_system_cpu_guest_milliseconds` | Counter | Time spent running a virtual CPU for the guest operating systems under the control of the Linux kernel. |
| `hardware_system_cpu_guest_nice_milliseconds` | Counter | Time spent running a guest with an adjusted niceness. |
| `hardware_system_cpu_idle_milliseconds` | Counter | Time spent in the idle task. |
| `hardware_system_cpu_io_wait_milliseconds` | Counter | Time waiting for I/O to complete. |
| `hardware_system_cpu_irq_milliseconds` | Counter | Time spent servicing interrupts. |
| `hardware_system_cpu_kernel_milliseconds` | Counter | Time spent in system mode. |
| `hardware_system_cpu_nice_milliseconds` | Counter | Time spent in user mode with low priority (nice). |
| `hardware_system_cpu_soft_irq_milliseconds` | Counter | Time spent servicing `softirqs`. |
| `hardware_system_cpu_steal_milliseconds` | Counter | Time spent in other operating systems when running in a virtual environment. |
| `hardware_system_cpu_user_milliseconds` | Counter | Time spent in user mode. |
| `hardware_system_memory_buffers_kilobytes` | Gauge | Temporary storage for raw disk blocks that shouldn't get tremendously large. |
| `hardware_system_memory_cached_kilobytes` | Gauge | In-memory cache for files read from the disk. This doesn't include `SwapCached`. |
| `hardware_system_memory_mem_available_kilobytes` | Gauge | An estimate of how much memory is available for starting new applications, without swapping. |
| `hardware_system_memory_mem_free_kilobytes` | Gauge | Sum of `LowFree` + `HighFree`. |
| `hardware_system_memory_mem_total_kilobytes` | Gauge | Total usable RAM (physical RAM minus a few reserved bits and the kernel binary code). |
| `hardware_system_memory_shared_mem_kilobytes` | Gauge | Amount of memory consumed in file systems whose contents reside in virtual memory. |
| `hardware_system_memory_swap_free_kilobytes` | Gauge | Total amount of swap space unused. |
| `hardware_system_memory_swap_total_kilobytes` | Gauge | Total amount of swap space available. |
| `hardware_system_network_eth0_bytes_in_bytes` | Counter | Number of bytes of data received by the interface. |
| `hardware_system_network_eth0_bytes_out_bytes` | Counter | Number of bytes of data transmitted by the interface. |
| `hardware_system_network_lo_bytes_in_bytes` | Counter | Number of bytes of data received by the interface. |
| `hardware_system_network_lo_bytes_out_bytes` | Counter | Number of bytes of data transmitted by the interface. |
| `hardware_system_vm_page_swap_in` | Counter | Number of pages the system has swapped in from disk. |
| `hardware_system_vm_page_swap_out` | Counter | Number of pages the system has swapped out to disk. |

## Hardware Metric Labels

Each hardware metric contains the following labels:

**Note:**

In addition to the labels listed below, Atlas sends user-defined [resource tags](https://www.mongodb.com/docs/atlas/tags.md#std-label-configure-resource-tags) to Prometheus as labels. This is an opt-in feature that you enable through the UI or the API. See [the Procedure section in this document](https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration.md#std-label-prometheus-integration) to learn more about each procedure.

| Label | Description |
| --- | --- |
| `availability_zone` | AWS (Amazon Web Services) availability zone ID, Google Cloud fully-qualified name for a zone, or Azure (Microsoft Azure) zone number. Azure (Microsoft Azure) supports availability zones only in a subset of regions. Atlas provides pre-defined availability zone tags for Azure (Microsoft Azure) only for regions that support availability zones. To learn more, see [Microsoft Azure.](https://www.mongodb.com/docs/atlas/reference/microsoft-azure.md#std-label-microsoft-azure) For more information about the possible `availabilityZone` values for each cloud provider, see the [AWS](http://docs.aws.amazon.com/ram/latest/userguide/working-with-az-ids.html), [GCP](https://cloud.google.com/compute/docs/regions-zones), or [Azure](https://docs.microsoft.com/en-us/azure/reliability/availability-zones-overview) documentation. |
| `cl_name` | Label that uniquely identifies the cluster. |
| `disk_name` | Human-readable label that identifies the disk. |
| `group_id` | Unique hexadecimal digit string that identifies the project. |
| `group_name` | Label that uniquely identifies the project. |
| `org_id` | Unique hexadecimal digit string that identifies the organization. |
| `node_type` | Node type. Possible values are `ELECTABLE`, `READ_ONLY`, and `ANALYTICS`. For more information, see [Node Types.](https://www.mongodb.com/docs/atlas/reference/replica-set-tags.md#std-label-repl-set-node-types) |
| `process_port` | Port on which the process runs. |
| `provider` | Cloud provider on which the node is provisioned. Possible values are `AWS`, `GCP`, and `AZURE`. |
| `region` | Cloud region in which the node resides. For a complete list of possible `region` values, see the [AWS](https://www.mongodb.com/docs/atlas/reference/amazon-aws.md#std-label-amazon-aws), [GCP](https://www.mongodb.com/docs/atlas/reference/google-gcp.md#std-label-google-gcp), or [Azure](https://www.mongodb.com/docs/atlas/reference/microsoft-azure.md#std-label-microsoft-azure) reference page. |
| `replica_set_name` | Label that uniquely identifies the replica set. |
