SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
feat: adding gcp memorystore redis service (#12118)
Swapnil Nakade842d44d87487
diff --git a/docs/api/openapi.yml b/docs/api/openapi.ymlindex 48a6860181..4475d612df 100644--- a/docs/api/openapi.yml+++ b/docs/api/openapi.yml@@ -1495,6 +1495,7 @@ components:- cassandradb- redis- cloudsql_postgres+ - memorystore_redistype: stringCloudintegrationtypesServiceMetadata:properties:diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.tsindex 31d2e8f2ca..854868a796 100644--- a/frontend/src/api/generated/services/sigNoz.schemas.ts+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts@@ -2814,6 +2814,7 @@ export enum CloudintegrationtypesServiceIDDTO {cassandradb = 'cassandradb',redis = 'redis',cloudsql_postgres = 'cloudsql_postgres',+ memorystore_redis = 'memorystore_redis',}export type CloudintegrationtypesCloudIntegrationServiceDTOAnyOf = {/**diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/assets/dashboards/overview.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/assets/dashboards/overview.jsonnew file mode 100644index 0000000000..33e252c39c--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/assets/dashboards/overview.json@@ -0,0 +1,2375 @@+{+ "description": "GCP Memorystore Redis Overview dashboard",+ "image": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTR7ZmlsbDojNjY5ZGY2O30uY2xzLTJ7ZmlsbDojNDI4NWY0O30uY2xzLTIsLmNscy0zLC5jbHMtNHtmaWxsLXJ1bGU6ZXZlbm9kZDt9LmNscy0ze2ZpbGw6I2FlY2JmYTt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkljb25fMjRweF9NZW1vcnlTdG9yZV9Db2xvcjwvdGl0bGU+PGcgZGF0YS1uYW1lPSJQcm9kdWN0IEljb25zIj48ZyA+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIyIiB5PSIzLjk0IiB3aWR0aD0iMy4zMyIgaGVpZ2h0PSIyLjU4Ii8+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIyIiB5PSI4LjQ1IiB3aWR0aD0iMy4zMyIgaGVpZ2h0PSIyLjU4Ii8+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIyIiB5PSIxMi45NyIgd2lkdGg9IjMuMzMiIGhlaWdodD0iMi41OCIvPjxyZWN0IGNsYXNzPSJjbHMtMSIgeD0iMiIgeT0iMTcuNDgiIHdpZHRoPSIzLjMzIiBoZWlnaHQ9IjIuNTgiLz48cmVjdCBjbGFzcz0iY2xzLTEiIHg9IjE4LjY3IiB5PSIzLjk0IiB3aWR0aD0iMy4zMyIgaGVpZ2h0PSIyLjU4Ii8+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIxOC42NyIgeT0iOC40NSIgd2lkdGg9IjMuMzMiIGhlaWdodD0iMi41OCIvPjxyZWN0IGNsYXNzPSJjbHMtMSIgeD0iMTguNjciIHk9IjEyLjk3IiB3aWR0aD0iMy4zMyIgaGVpZ2h0PSIyLjU4Ii8+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIxOC42NyIgeT0iMTcuNDgiIHdpZHRoPSIzLjMzIiBoZWlnaHQ9IjIuNTgiLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMjEuMzMgNi41MiAxOC42NyA2LjUyIDE4LjY3IDMuOTQgMjEuMzMgNi41MiIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIyMS4zMyAxMS4wMyAxOC42NyAxMS4wMyAxOC42NyA4LjQ1IDIxLjMzIDExLjAzIi8+PHBvbHlnb24gY2xhc3M9ImNscy0yIiBwb2ludHM9IjIxLjMzIDE1LjU1IDE4LjY3IDE1LjU1IDE4LjY3IDEyLjk3IDIxLjMzIDE1LjU1Ii8+PHBvbHlnb24gY2xhc3M9ImNscy0yIiBwb2ludHM9IjIxLjMzIDIwLjA3IDE4LjY3IDIwLjA3IDE4LjY3IDE3LjQ4IDIxLjMzIDIwLjA3Ii8+PHBhdGggY2xhc3M9ImNscy0zIiBkPSJNNS4zMywyMkgxOC42N1YySDUuMzNabTYtOUg4bDQuNjctNy43NFYxMUgxNmwtNC42Nyw3Ljc0WiIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtNCIgcG9pbnRzPSIxMS4zMyAyMiAxMS4zMyAxOC43NyAxNiAxMS4wMyAxMi42NyAxMS4wMyAxMi42NyAyIDE4LjY3IDIgMTguNjcgMjIgMTEuMzMgMjIiLz48L2c+PC9nPjwvc3ZnPg==",+ "layout": [+ {+ "h": 1,+ "i": "f98108ac-f843-4005-8d2f-817388b29617",+ "maxH": 1,+ "minH": 1,+ "minW": 12,+ "moved": false,+ "static": false,+ "w": 12,+ "x": 0,+ "y": 0+ },+ {+ "h": 6,+ "i": "cacab28d-fb1a-433a-9f07-6cbbea58a596",+ "moved": false,+ "static": false,+ "w": 2,+ "x": 0,+ "y": 1+ },+ {+ "h": 6,+ "i": "698e64b9-c00b-4fdb-bc12-2203ca4dc0fd",+ "moved": false,+ "static": false,+ "w": 5,+ "x": 2,+ "y": 1+ },+ {+ "h": 6,+ "i": "6d77f2b5-587e-4201-85ba-0f776ec643c4",+ "moved": false,+ "static": false,+ "w": 5,+ "x": 7,+ "y": 1+ },+ {+ "h": 6,+ "i": "5d2e13cb-4a6e-4713-b5a3-4f38b2c43a18",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 0,+ "y": 7+ },+ {+ "h": 6,+ "i": "a3b10c5c-a23e-43c7-9623-be06dfbc7278",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 6,+ "y": 7+ },+ {+ "h": 6,+ "i": "a313e14c-e6fd-49ad-9d1c-4f3e6e882cbe",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 0,+ "y": 13+ },+ {+ "h": 6,+ "i": "7b88e733-1794-4a61-b4d6-65e5fc05a30f",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 6,+ "y": 13+ },+ {+ "h": 1,+ "i": "33fa99cf-cb8c-40e6-82e5-aeb50b53a060",+ "maxH": 1,+ "minH": 1,+ "minW": 12,+ "moved": false,+ "static": false,+ "w": 12,+ "x": 0,+ "y": 19+ },+ {+ "h": 6,+ "i": "b7b7b3aa-0125-4592-a1a8-1d86a6c542d0",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 0,+ "y": 38+ },+ {+ "h": 6,+ "i": "cc33bc5d-8da6-46bb-9cfe-fb8eaa66d533",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 6,+ "y": 38+ },+ {+ "h": 6,+ "i": "8d3ddc72-5c29-4cf8-bef0-9c2b28f0728e",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 0,+ "y": 44+ },+ {+ "h": 6,+ "i": "db17bdb1-2c8a-465d-aa9a-f70822e86188",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 6,+ "y": 44+ }+ ],+ "panelMap": {+ "33fa99cf-cb8c-40e6-82e5-aeb50b53a060": {+ "collapsed": false,+ "widgets": [+ {+ "h": 6,+ "i": "b7b7b3aa-0125-4592-a1a8-1d86a6c542d0",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 0,+ "y": 38+ },+ {+ "h": 6,+ "i": "cc33bc5d-8da6-46bb-9cfe-fb8eaa66d533",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 6,+ "y": 38+ },+ {+ "h": 6,+ "i": "8d3ddc72-5c29-4cf8-bef0-9c2b28f0728e",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 0,+ "y": 44+ },+ {+ "h": 6,+ "i": "db17bdb1-2c8a-465d-aa9a-f70822e86188",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 6,+ "y": 44+ }+ ]+ },+ "f98108ac-f843-4005-8d2f-817388b29617": {+ "collapsed": false,+ "widgets": [+ {+ "h": 6,+ "i": "cacab28d-fb1a-433a-9f07-6cbbea58a596",+ "moved": false,+ "static": false,+ "w": 2,+ "x": 0,+ "y": 1+ },+ {+ "h": 6,+ "i": "698e64b9-c00b-4fdb-bc12-2203ca4dc0fd",+ "moved": false,+ "static": false,+ "w": 5,+ "x": 2,+ "y": 1+ },+ {+ "h": 6,+ "i": "6d77f2b5-587e-4201-85ba-0f776ec643c4",+ "moved": false,+ "static": false,+ "w": 5,+ "x": 7,+ "y": 1+ },+ {+ "h": 6,+ "i": "5d2e13cb-4a6e-4713-b5a3-4f38b2c43a18",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 0,+ "y": 7+ },+ {+ "h": 6,+ "i": "a3b10c5c-a23e-43c7-9623-be06dfbc7278",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 6,+ "y": 7+ },+ {+ "h": 6,+ "i": "a313e14c-e6fd-49ad-9d1c-4f3e6e882cbe",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 0,+ "y": 13+ },+ {+ "h": 6,+ "i": "7b88e733-1794-4a61-b4d6-65e5fc05a30f",+ "moved": false,+ "static": false,+ "w": 6,+ "x": 6,+ "y": 13+ }+ ]+ }+ },+ "tags": [],+ "title": "Signoz GCP Memorystory Redis overview",+ "uploadedGrafana": false,+ "uuid": "019f85e9-3846-7dc9-9bce-b626b8a3eaff",+ "variables": {+ "650b757d-2d3b-4929-8bfd-e5c5fb90a5f9": {+ "allSelected": false,+ "customValue": "",+ "defaultValue": "",+ "description": "Instance ID",+ "dynamicVariablesAttribute": "instance_id",+ "dynamicVariablesSource": "Metrics",+ "haveCustomValuesSelected": false,+ "id": "650b757d-2d3b-4929-8bfd-e5c5fb90a5f9",+ "modificationUUID": "b4fec3d9-b821-41b7-ad77-b56f7bfdd051",+ "multiSelect": false,+ "name": "instance_id",+ "order": 1,+ "queryValue": "",+ "showALLOption": true,+ "sort": "DISABLED",+ "textboxValue": "",+ "type": "DYNAMIC"+ },+ "dabcf41a-4121-4a03-8738-927576cc90bf": {+ "allSelected": true,+ "customValue": "",+ "defaultValue": "",+ "description": "GCP Project ID",+ "dynamicVariablesAttribute": "project_id",+ "dynamicVariablesSource": "Metrics",+ "haveCustomValuesSelected": false,+ "id": "dabcf41a-4121-4a03-8738-927576cc90bf",+ "key": "dabcf41a-4121-4a03-8738-927576cc90bf",+ "modificationUUID": "ae57b6eb-54ad-4dc3-bac6-0b4480821265",+ "multiSelect": false,+ "name": "project_id",+ "order": 0,+ "queryValue": "",+ "showALLOption": true,+ "sort": "DISABLED",+ "textboxValue": "",+ "type": "DYNAMIC"+ }+ },+ "version": "v5",+ "widgets": [+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric indicates the uptime of the running Redis server process.",+ "fillMode": "none",+ "fillSpans": false,+ "id": "cacab28d-fb1a-433a-9f07-6cbbea58a596",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "value",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/server/uptime",+ "reduceTo": "avg",+ "spaceAggregation": "avg",+ "temporality": "",+ "timeAggregation": "latest"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance' "+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "916bc393-0ccc-4bf6-acd6-fd8cfd7a2c8e",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "514debe3-8548-4d98-b4f5-5f2a8a40a8a3",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [],+ "having": {+ "expression": ""+ },+ "legend": "",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "ea1a52ce-3542-4b27-8201-2951ac0c7378",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": "rate({\"redis.googleapis.com/server/uptime\", project_id=\"$project_id\"}[5m])"+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Server Uptime",+ "yAxisUnit": "s"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 3,+ "description": "This metric shows the current memory usage of an instance that's expressed as a ratio of its maximum memory limit.",+ "fillMode": "none",+ "fillSpans": false,+ "id": "698e64b9-c00b-4fdb-bc12-2203ca4dc0fd",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/stats/memory/usage_ratio",+ "reduceTo": "avg",+ "spaceAggregation": "max",+ "temporality": "",+ "timeAggregation": "max"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance' "+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "54b5dd62-a7d7-47c8-99de-98f87bacd56c",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "aa8df5d0-e35b-4c34-b491-20a72ec1806e",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "",+ "id": "role----",+ "key": "role",+ "type": ""+ },+ {+ "dataType": "",+ "id": "node_id----",+ "key": "node_id",+ "type": ""+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "30c41512-61a8-4a40-980e-36639cc77186",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Memory Usage Ratio",+ "yAxisUnit": "1"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric represents the amount of memory that's in use, expressed as a ratio of the total memory that's available for the system.",+ "fillMode": "none",+ "fillSpans": false,+ "id": "6d77f2b5-587e-4201-85ba-0f776ec643c4",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/stats/memory/system_memory_usage_ratio",+ "reduceTo": "avg",+ "spaceAggregation": "max",+ "temporality": "",+ "timeAggregation": "max"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance' "+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "87540f6b-219c-4a0f-a3a5-d8a79db6380e",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "e23aeeb4-3553-47a6-be5e-ae9768f4907f",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "1bd422fa-df0d-418e-b7c3-81ed5e7b9143",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "System Memory Usage Ratio",+ "yAxisUnit": "none"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "% CPU utilisation calculated by rate at which CPU-seconds are consumed by the Redis server main thread, broken down by system/user space.",+ "fillMode": "none",+ "fillSpans": false,+ "id": "5d2e13cb-4a6e-4713-b5a3-4f38b2c43a18",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/stats/cpu_utilization_main_thread",+ "reduceTo": "avg",+ "spaceAggregation": "sum",+ "temporality": "",+ "timeAggregation": "rate"+ }+ ],+ "dataSource": "metrics",+ "disabled": true,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance'"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "space--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "space",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}/{{space}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": 0+ }+ ],+ "queryFormulas": [+ {+ "disabled": false,+ "expression": "A * 100",+ "legend": "{{node_id}}/{{role}}/{{space}}",+ "queryName": "F1"+ }+ ],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "e6941cde-486e-4566-9896-e7fcb67d1979",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "% Main Thread CPU Utilisation",+ "yAxisUnit": "%"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric displays the number of clients that are connected to an instance.",+ "fillMode": "none",+ "fillSpans": false,+ "id": "a3b10c5c-a23e-43c7-9623-be06dfbc7278",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/clients/connected",+ "reduceTo": "avg",+ "spaceAggregation": "sum",+ "temporality": "",+ "timeAggregation": "max"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance' "+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "89ab7aab-5fb1-4f6b-acd2-e5185cc1a697",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "819bcd66-bad0-4294-898a-059b8cfa3607",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "c5818001-6951-43c7-b271-6507b47feac6",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Connected Clients",+ "yAxisUnit": "none"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric shows the ratio of successful Redis database calls (hits) to the total number of calls (hits plus misses)",+ "fillMode": "none",+ "fillSpans": false,+ "id": "a313e14c-e6fd-49ad-9d1c-4f3e6e882cbe",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/stats/cache_hit_ratio",+ "reduceTo": "avg",+ "spaceAggregation": "sum",+ "temporality": "",+ "timeAggregation": "max"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance'"+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "be1f2d82-fb6c-40e5-8e6b-b48a4ac5b029",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "b4d3b0b5-4660-43a9-96af-ddcced9cb084",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "ede76053-11bc-4065-bfe5-239b4ac0aa5f",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Cache Hit ratio",+ "yAxisUnit": "none"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric shows the ratio of successful Redis database calls (hits) to the total number of calls (hits plus misses)",+ "fillMode": "none",+ "fillSpans": false,+ "id": "7b88e733-1794-4a61-b4d6-65e5fc05a30f",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/keyspace/keys",+ "reduceTo": "avg",+ "spaceAggregation": "sum",+ "temporality": "",+ "timeAggregation": "max"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance'"+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "88d44668-0e98-4478-abc2-7f40fc3d6ffc",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "77459073-7bdc-4b11-af7c-107922450fa8",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "3d49f1b0-381c-4c74-80aa-bca364e4b9d1",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Number of Keys",+ "yAxisUnit": "none"+ },+ {+ "description": "",+ "id": "f98108ac-f843-4005-8d2f-817388b29617",+ "panelTypes": "row",+ "title": "Health And Keys"+ },+ {+ "description": "",+ "id": "33fa99cf-cb8c-40e6-82e5-aeb50b53a060",+ "panelTypes": "row",+ "title": "Client related"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric represents the average time spent for each Redis command call over one minute. This time is measured in microseconds.",+ "fillMode": "none",+ "fillSpans": false,+ "id": "b7b7b3aa-0125-4592-a1a8-1d86a6c542d0",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/commands/usec_per_call",+ "reduceTo": "avg",+ "spaceAggregation": "sum",+ "temporality": "",+ "timeAggregation": "max"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance'"+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "ff97a4d3-7b1a-449e-b8a8-500bff65eecb",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "bb368c09-67d6-4443-ba66-a9d936df1c0c",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "cmd--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "cmd",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}/{{cmd}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "dd88cb71-0c35-4ed6-9b4c-9fbb7a87a0fd",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Time per Call",+ "yAxisUnit": "us"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric measures the number of Redis commands that are run each minute on a primary instance. These include all open source Redis commands, including SET , GET, and HSET .",+ "fillMode": "none",+ "fillSpans": false,+ "id": "cc33bc5d-8da6-46bb-9cfe-fb8eaa66d533",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/commands/calls",+ "reduceTo": "avg",+ "spaceAggregation": "sum",+ "temporality": "",+ "timeAggregation": "max"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance'"+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "16e1a390-ac0c-4509-b1b0-fda9a5fd8d98",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "1b279cc2-981f-4c6f-8104-4f458230b0ad",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "cmd--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "cmd",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}/{{cmd}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "c5b8eac4-0a2a-4a24-8533-5bd4c300df05",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Number of Calls",+ "yAxisUnit": "{count}"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric tracks the number of client connections that are waiting for data to become available because blocking commands are running in an instance.",+ "fillMode": "none",+ "fillSpans": false,+ "id": "8d3ddc72-5c29-4cf8-bef0-9c2b28f0728e",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/clients/blocked",+ "reduceTo": "avg",+ "spaceAggregation": "sum",+ "temporality": "",+ "timeAggregation": "max"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance'"+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "8c6f8869-ea37-4abb-94f0-1b071257b50f",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "af86ab17-f922-45ea-9e8d-54aaa3775406",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "616ea487-998d-4748-9ba7-08de477ce194",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Blocked Clients",+ "yAxisUnit": "{count}"+ },+ {+ "bucketCount": 30,+ "bucketWidth": 0,+ "columnUnits": {},+ "contextLinks": {+ "linksData": []+ },+ "customLegendColors": {},+ "decimalPrecision": 2,+ "description": "This metric tracks the number of connection attempts that an instance rejects because of the following reasons:\n\nThe maxclients limit: the server reaches the maximum allowed number of concurrent client connections.\nMemory pressure: the instance rejects new connections because of high memory utilization.",+ "fillMode": "none",+ "fillSpans": false,+ "id": "db17bdb1-2c8a-465d-aa9a-f70822e86188",+ "isLogScale": false,+ "legendPosition": "bottom",+ "lineInterpolation": "spline",+ "lineStyle": "solid",+ "mergeAllActiveQueries": false,+ "nullZeroValues": "zero",+ "opacity": "1",+ "panelTypes": "graph",+ "query": {+ "builder": {+ "queryData": [+ {+ "aggregations": [+ {+ "metricName": "redis.googleapis.com/stats/reject_connections_count",+ "reduceTo": "avg",+ "spaceAggregation": "avg",+ "temporality": "",+ "timeAggregation": "avg"+ }+ ],+ "dataSource": "metrics",+ "disabled": false,+ "expression": "A",+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'redis_instance'"+ },+ "filters": {+ "items": [+ {+ "id": "c628683e-dee7-426d-85e8-56f5b45d8526",+ "key": {+ "dataType": "string",+ "id": "instance_id--string--",+ "key": "instance_id",+ "type": ""+ },+ "op": "IN",+ "value": "$instance_id"+ },+ {+ "id": "5879529f-d15d-441d-8ae8-ddf883042164",+ "key": {+ "id": "project_id",+ "key": "project_id",+ "type": ""+ },+ "op": "=",+ "value": "$project_id"+ },+ {+ "id": "9c901e2d-45ea-4551-b737-7d495b9fde7b",+ "key": {+ "id": "gcp.resource_type",+ "key": "gcp.resource_type",+ "type": ""+ },+ "op": "=",+ "value": "redis_instance"+ }+ ],+ "op": "AND"+ },+ "functions": [],+ "groupBy": [+ {+ "dataType": "string",+ "id": "role--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "role",+ "type": "tag"+ },+ {+ "dataType": "string",+ "id": "node_id--string--tag",+ "isColumn": false,+ "isJSON": false,+ "key": "node_id",+ "type": "tag"+ }+ ],+ "having": {+ "expression": ""+ },+ "legend": "{{node_id}}/{{role}}",+ "limit": null,+ "orderBy": [],+ "queryName": "A",+ "source": "",+ "stepInterval": null+ }+ ],+ "queryFormulas": [],+ "queryTraceOperator": []+ },+ "clickhouse_sql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "id": "d13a02ee-ee2a-4f4f-80b7-f0b72a9fee74",+ "promql": [+ {+ "disabled": false,+ "legend": "",+ "name": "A",+ "query": ""+ }+ ],+ "queryType": "builder",+ "unit": ""+ },+ "selectedLogFields": [+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "timestamp",+ "signal": "logs",+ "type": "log"+ },+ {+ "dataType": "",+ "fieldContext": "log",+ "fieldDataType": "",+ "isIndexed": false,+ "name": "body",+ "signal": "logs",+ "type": "log"+ }+ ],+ "selectedTracesFields": [+ {+ "fieldContext": "resource",+ "fieldDataType": "string",+ "name": "service.name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "string",+ "name": "name",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "duration_nano",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "http_method",+ "signal": "traces"+ },+ {+ "fieldContext": "span",+ "fieldDataType": "",+ "name": "response_status_code",+ "signal": "traces"+ }+ ],+ "showPoints": false,+ "softMax": 0,+ "softMin": 0,+ "spanGaps": true,+ "stackedBarChart": false,+ "thresholds": [],+ "timePreferance": "GLOBAL_TIME",+ "title": "Rejected Connections",+ "yAxisUnit": "none"+ }+ ]+}diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/icon.svg b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/icon.svgnew file mode 100644index 0000000000..fb1fbeffda--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/icon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24"><defs><style>.cls-1,.cls-4{fill:#669df6;}.cls-2{fill:#4285f4;}.cls-2,.cls-3,.cls-4{fill-rule:evenodd;}.cls-3{fill:#aecbfa;}</style></defs><title>Icon_24px_MemoryStore_Color</title><g data-name="Product Icons"><g ><rect class="cls-1" x="2" y="3.94" width="3.33" height="2.58"/><rect class="cls-1" x="2" y="8.45" width="3.33" height="2.58"/><rect class="cls-1" x="2" y="12.97" width="3.33" height="2.58"/><rect class="cls-1" x="2" y="17.48" width="3.33" height="2.58"/><rect class="cls-1" x="18.67" y="3.94" width="3.33" height="2.58"/><rect class="cls-1" x="18.67" y="8.45" width="3.33" height="2.58"/><rect class="cls-1" x="18.67" y="12.97" width="3.33" height="2.58"/><rect class="cls-1" x="18.67" y="17.48" width="3.33" height="2.58"/><polygon class="cls-2" points="21.33 6.52 18.67 6.52 18.67 3.94 21.33 6.52"/><polygon class="cls-2" points="21.33 11.03 18.67 11.03 18.67 8.45 21.33 11.03"/><polygon class="cls-2" points="21.33 15.55 18.67 15.55 18.67 12.97 21.33 15.55"/><polygon class="cls-2" points="21.33 20.07 18.67 20.07 18.67 17.48 21.33 20.07"/><path class="cls-3" d="M5.33,22H18.67V2H5.33Zm6-9H8l4.67-7.74V11H16l-4.67,7.74Z"/><polygon class="cls-4" points="11.33 22 11.33 18.77 16 11.03 12.67 11.03 12.67 2 18.67 2 18.67 22 11.33 22"/></g></g></svg>\ No newline at end of filediff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/integration.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/integration.jsonnew file mode 100644index 0000000000..167bea2c5a--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/integration.json@@ -0,0 +1,94 @@+{+ "id": "memorystore_redis",+ "title": "GCP Memorystore Redis",+ "icon": "file://icon.svg",+ "overview": "file://overview.md",+ "supportedSignals": {+ "metrics": true,+ "logs": true+ },+ "dataCollected": {+ "metrics": [+ {+ "name": "redis.googleapis.com/server/uptime",+ "unit": "Seconds",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/stats/memory/usage_ratio",+ "unit": "None",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/stats/memory/system_memory_usage_ratio",+ "unit": "None",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/stats/cpu_utilization_main_thread",+ "unit": "Seconds",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/clients/connected",+ "unit": "Count",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/stats/cache_hit_ratio",+ "unit": "None",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/keyspace/keys",+ "unit": "Count",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/commands/usec_per_call",+ "unit": "Microseconds",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/commands/calls",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/clients/blocked",+ "unit": "Count",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "redis.googleapis.com/stats/reject_connections_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ }+ ],+ "logs": []+ },+ "telemetryCollectionStrategy": {+ "gcp": {}+ },+ "assets": {+ "dashboards": [+ {+ "id": "overview",+ "title": "GCP Memorystore Redis Overview",+ "description": "Overview of GCP Memorystore Redis metrics",+ "definition": "file://assets/dashboards/overview.json"+ }+ ]+ }+}diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/overview.md b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/overview.mdnew file mode 100644index 0000000000..36313c8a7a--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/memorystore_redis/overview.md@@ -0,0 +1,3 @@+### Monitor GCP Memorystore Redis with SigNoz++Collect key GCP Memorystore Redis metrics and view them with an out of the box dashboard.diff --git a/pkg/types/cloudintegrationtypes/serviceid.go b/pkg/types/cloudintegrationtypes/serviceid.goindex 8aa1543fff..998d125868 100644--- a/pkg/types/cloudintegrationtypes/serviceid.go+++ b/pkg/types/cloudintegrationtypes/serviceid.go@@ -42,6 +42,7 @@ var (// GCP services.GCPServiceCloudSQLPostgres = ServiceID{valuer.NewString("cloudsql_postgres")}+ GCPServiceMemorystoreRedis = ServiceID{valuer.NewString("memorystore_redis")})func (ServiceID) Enum() []any {@@ -74,6 +75,7 @@ func (ServiceID) Enum() []any {AzureServiceCassandraDB,AzureServiceRedis,GCPServiceCloudSQLPostgres,+ GCPServiceMemorystoreRedis,}}@@ -112,6 +114,7 @@ var SupportedServices = map[CloudProviderType][]ServiceID{},CloudProviderTypeGCP: {GCPServiceCloudSQLPostgres,+ GCPServiceMemorystoreRedis,},}