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 mysql GCP service (#12514)
Swapnil Nakade2616885d2256
diff --git a/docs/api/openapi.yml b/docs/api/openapi.ymlindex a6739f35a0..37cc9ea28c 100644--- a/docs/api/openapi.yml+++ b/docs/api/openapi.yml@@ -1499,6 +1499,7 @@ components:- computeengine- gke- cloudstorage+ - cloudsql_mysqltype: stringCloudintegrationtypesServiceMetadata:properties:diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.tsindex 4dd517b9f2..1af2dc3a3f 100644--- a/frontend/src/api/generated/services/sigNoz.schemas.ts+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts@@ -2818,6 +2818,7 @@ export enum CloudintegrationtypesServiceIDDTO {computeengine = 'computeengine',gke = 'gke',cloudstorage = 'cloudstorage',+ cloudsql_mysql = 'cloudsql_mysql',}export type CloudintegrationtypesCloudIntegrationServiceDTOAnyOf = {/**diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/assets/dashboards/overview.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/assets/dashboards/overview.jsonnew file mode 100644index 0000000000..291af77960--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/assets/dashboards/overview.json@@ -0,0 +1,1878 @@+{+ "schemaVersion": "v6",+ "name": "",+ "generateName": true,+ "spec": {+ "display": {+ "name": "GCP Cloud SQL for MySQL Overview",+ "description": "GCP Cloud SQL for MySQL Overview dashboard"+ },+ "variables": [+ {+ "kind": "ListVariable",+ "spec": {+ "display": {+ "name": "project_id",+ "description": "GCP Project ID"+ },+ "allowAllValue": false,+ "allowMultiple": false,+ "customAllValue": "",+ "capturingRegexp": "",+ "sort": "none",+ "plugin": {+ "kind": "signoz/DynamicVariable",+ "spec": {+ "name": "project_id",+ "signal": "metrics"+ }+ },+ "name": "project_id"+ }+ },+ {+ "kind": "ListVariable",+ "spec": {+ "display": {+ "name": "database_id",+ "description": "Database ID for instance"+ },+ "allowAllValue": true,+ "allowMultiple": true,+ "customAllValue": "",+ "capturingRegexp": "",+ "sort": "none",+ "plugin": {+ "kind": "signoz/DynamicVariable",+ "spec": {+ "name": "database_id",+ "signal": "all"+ }+ },+ "name": "database_id"+ }+ }+ ],+ "panels": {+ "1046688e-7b8d-5941-a0a0-20883ded235c": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Queries",+ "description": "Statements executed by the server, per second."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/queries",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "197d0c9f-cab7-5d07-93d6-ad533c448406": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "DML operations",+ "description": "MySQL DML operations per second, by operation type."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/dml_operations_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ },+ {+ "name": "operation_type",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}/{{operation_type}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "282d188a-7f3b-5431-90ed-f22b4fa725d0": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Disk Write IOPS",+ "description": "Data disk write IO operations per second."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/disk/write_ops_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "2cdaedae-c82a-51cc-8d62-be56f2e9e6b6": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Disk Read IOPS",+ "description": "Data disk read IO operations per second."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/disk/read_ops_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "392bf1a3-f8bc-5df9-abe2-7bdfb78e2f6c": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Connections",+ "description": "Number of connections to databases on the Cloud SQL instance."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/network/connections",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "3cc81425-92fc-5e89-88d5-bfbe1836d0a9": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Replication lag",+ "description": "Seconds the read replica is behind its primary. A negative value means replication is inactive."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/replication/replica_lag",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "42111d9d-dc5d-564c-90a0-0a0683579f91": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Instance state",+ "description": "Current serving state of the Cloud SQL instance. One of [\"RUNNING\", \"SUSPENDED\", \"RUNNABLE\", \"PENDING_CREATE\", \"MAINTENANCE\", \"FAILED\" or \"UNKNOWN_STATE\"]."+ },+ "plugin": {+ "kind": "signoz/TablePanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time"+ },+ "formatting": {+ "columnUnits": {+ "A": ""+ },+ "decimalPrecision": "2"+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "scalar",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/instance_state",+ "temporality": "",+ "timeAggregation": "latest",+ "spaceAggregation": "max",+ "reduceTo": "last"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ },+ {+ "name": "state",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "value"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "45e331a0-a16d-5d8a-b9ca-aadfd2cfed78": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "InnoDB row lock waits",+ "description": "Operations on InnoDB tables that had to wait for a row lock, per second."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/innodb/row_lock_waits_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "525c0ca1-46b9-5431-94ce-e76b2b75374c": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Memory utilization",+ "description": "Fraction of the memory quota currently in use, shown as a percentage."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "%",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "plugin": {+ "kind": "signoz/CompositeQuery",+ "spec": {+ "queries": [+ {+ "type": "builder_query",+ "spec": {+ "name": "A",+ "stepInterval": 0,+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/memory/utilization",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": "avg"+ }+ ],+ "disabled": true,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "selectFields": null,+ "having": {+ "expression": ""+ },+ "secondaryAggregations": null,+ "functions": [],+ "legend": "{{database_id}}"+ }+ },+ {+ "type": "builder_formula",+ "spec": {+ "name": "F1",+ "expression": "A * 100",+ "disabled": false,+ "order": null,+ "having": {+ "expression": ""+ },+ "functions": null,+ "legend": "{{database_id}}"+ }+ }+ ]+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "6abbd995-65f5-5a6b-893b-2000942813c1": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "CPU utilization",+ "description": "Percentage of reserved CPU currently in use."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "%",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "plugin": {+ "kind": "signoz/CompositeQuery",+ "spec": {+ "queries": [+ {+ "type": "builder_query",+ "spec": {+ "name": "A",+ "stepInterval": 0,+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/cpu/utilization",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": ""+ }+ ],+ "disabled": true,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": null,+ "selectFields": null,+ "secondaryAggregations": null,+ "functions": null,+ "legend": "{{database_id}}"+ }+ },+ {+ "type": "builder_formula",+ "spec": {+ "name": "F1",+ "expression": "100*A",+ "disabled": false,+ "order": null,+ "functions": null,+ "legend": "{{database_id}}"+ }+ }+ ]+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "8052904a-2526-524c-a926-f42c8da03370": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Server up",+ "description": "Whether the MySQL server is up (1) or down (0). A value of 0 indicates an outage."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/up",+ "temporality": "",+ "timeAggregation": "min",+ "spaceAggregation": "min",+ "reduceTo": "last"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "8111d769-f54d-51eb-bd44-4503adb8c770": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "InnoDB deadlocks",+ "description": "InnoDB deadlocks, counted per step."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/innodb/deadlocks_count",+ "temporality": "",+ "timeAggregation": "increase",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "82b1135b-8fd2-576b-9255-25ef93e026f1": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Disk utilization",+ "description": "Fraction of the disk quota currently in use, shown as a percentage."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "%",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "plugin": {+ "kind": "signoz/CompositeQuery",+ "spec": {+ "queries": [+ {+ "type": "builder_query",+ "spec": {+ "name": "A",+ "stepInterval": 0,+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/disk/utilization",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": "avg"+ }+ ],+ "disabled": true,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "selectFields": null,+ "having": {+ "expression": ""+ },+ "secondaryAggregations": null,+ "functions": [],+ "legend": "{{database_id}}"+ }+ },+ {+ "type": "builder_formula",+ "spec": {+ "name": "F1",+ "expression": "A * 100",+ "disabled": false,+ "order": null,+ "having": {+ "expression": ""+ },+ "functions": null,+ "legend": "{{database_id}}"+ }+ }+ ]+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "9ff57211-107c-520b-bc48-765e68b2d09b": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Slow queries",+ "description": "Queries taking longer than long_query_time, per second."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/slow_queries_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "bd40da17-b726-5911-a8b4-ca8b8e44e4f0": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Aborted connects",+ "description": "Failed attempts to connect to the MySQL server, counted per step."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/aborted_connects_count",+ "temporality": "",+ "timeAggregation": "increase",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "d3c400c5-e5f6-5d47-81c4-71e16880510f": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "InnoDB buffer pool miss ratio",+ "description": "Percentage of logical reads that InnoDB could not satisfy from the buffer pool and had to read from disk. High values indicate memory pressure."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "%",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "bottom",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "plugin": {+ "kind": "signoz/CompositeQuery",+ "spec": {+ "queries": [+ {+ "type": "builder_query",+ "spec": {+ "name": "A",+ "stepInterval": 0,+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/innodb/buffer_pool_reads_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": true,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "selectFields": null,+ "having": {+ "expression": ""+ },+ "secondaryAggregations": null,+ "functions": [],+ "legend": "{{database_id}}"+ }+ },+ {+ "type": "builder_query",+ "spec": {+ "name": "B",+ "stepInterval": 0,+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/innodb/buffer_pool_read_requests_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": true,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "selectFields": null,+ "having": {+ "expression": ""+ },+ "secondaryAggregations": null,+ "functions": [],+ "legend": "{{database_id}}"+ }+ },+ {+ "type": "builder_formula",+ "spec": {+ "name": "F1",+ "expression": "A / B * 100",+ "disabled": false,+ "order": null,+ "having": {+ "expression": ""+ },+ "functions": null,+ "legend": "{{database_id}}"+ }+ }+ ]+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "e16b5e40-bc9d-51a9-8132-88fd8412b921": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Threads",+ "description": "MySQL threads by kind: cached, connected, and running."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/mysql/threads",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database'"+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ },+ {+ "name": "thread_kind",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{database_id}}/{{thread_kind}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ }+ },+ "layouts": [+ {+ "kind": "Grid",+ "spec": {+ "display": {+ "title": "Health",+ "collapse": {+ "open": true+ }+ },+ "items": [+ {+ "x": 0,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/8052904a-2526-524c-a926-f42c8da03370"+ }+ },+ {+ "x": 6,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/42111d9d-dc5d-564c-90a0-0a0683579f91"+ }+ },+ {+ "x": 0,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/3cc81425-92fc-5e89-88d5-bfbe1836d0a9"+ }+ }+ ]+ }+ },+ {+ "kind": "Grid",+ "spec": {+ "display": {+ "title": "CPU, Memory & Disk",+ "collapse": {+ "open": true+ }+ },+ "items": [+ {+ "x": 0,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/6abbd995-65f5-5a6b-893b-2000942813c1"+ }+ },+ {+ "x": 6,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/525c0ca1-46b9-5431-94ce-e76b2b75374c"+ }+ },+ {+ "x": 0,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/82b1135b-8fd2-576b-9255-25ef93e026f1"+ }+ },+ {+ "x": 6,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/392bf1a3-f8bc-5df9-abe2-7bdfb78e2f6c"+ }+ }+ ]+ }+ },+ {+ "kind": "Grid",+ "spec": {+ "display": {+ "title": "Throughput",+ "collapse": {+ "open": true+ }+ },+ "items": [+ {+ "x": 0,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/1046688e-7b8d-5941-a0a0-20883ded235c"+ }+ },+ {+ "x": 6,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/197d0c9f-cab7-5d07-93d6-ad533c448406"+ }+ },+ {+ "x": 0,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/e16b5e40-bc9d-51a9-8132-88fd8412b921"+ }+ },+ {+ "x": 6,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/d3c400c5-e5f6-5d47-81c4-71e16880510f"+ }+ }+ ]+ }+ },+ {+ "kind": "Grid",+ "spec": {+ "display": {+ "title": "Errors & Contention",+ "collapse": {+ "open": true+ }+ },+ "items": [+ {+ "x": 0,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/9ff57211-107c-520b-bc48-765e68b2d09b"+ }+ },+ {+ "x": 6,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/bd40da17-b726-5911-a8b4-ca8b8e44e4f0"+ }+ },+ {+ "x": 0,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/8111d769-f54d-51eb-bd44-4503adb8c770"+ }+ },+ {+ "x": 6,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/45e331a0-a16d-5d8a-b9ca-aadfd2cfed78"+ }+ },+ {+ "x": 0,+ "y": 12,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/2cdaedae-c82a-51cc-8d62-be56f2e9e6b6"+ }+ },+ {+ "x": 6,+ "y": 12,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/282d188a-7f3b-5431-90ed-f22b4fa725d0"+ }+ }+ ]+ }+ }+ ],+ "duration": "",+ "refreshInterval": "",+ "links": []+ },+ "tags": [+ {+ "key": "tag",+ "value": "observability"+ }+ ],+ "image": "/assets/Logos/gcp-cloud-sql"+}diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/icon.svg b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/icon.svgnew file mode 100644index 0000000000..9f29818450--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/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{fill:#aecbfa;}.cls-1,.cls-2,.cls-3{fill-rule:evenodd;}.cls-2{fill:#669df6;}.cls-3{fill:#4285f4;}</style></defs><title>Icon_24px_SQL_Color</title><g data-name="Product Icons"><g ><polygon class="cls-1" points="4.67 10.44 4.67 13.45 12 17.35 12 14.34 4.67 10.44"/><polygon class="cls-1" points="4.67 15.09 4.67 18.1 12 22 12 18.99 4.67 15.09"/><polygon class="cls-2" points="12 17.35 19.33 13.45 19.33 10.44 12 14.34 12 17.35"/><polygon class="cls-2" points="12 22 19.33 18.1 19.33 15.09 12 18.99 12 22"/><polygon class="cls-3" points="19.33 8.91 19.33 5.9 12 2 12 5.01 19.33 8.91"/><polygon class="cls-2" points="12 2 4.67 5.9 4.67 8.91 12 5.01 12 2"/><polygon class="cls-1" points="4.67 5.87 4.67 8.89 12 12.79 12 9.77 4.67 5.87"/><polygon class="cls-2" points="12 12.79 19.33 8.89 19.33 5.87 12 9.77 12 12.79"/></g></g></svg>\ No newline at end of filediff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/integration.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/integration.jsonnew file mode 100644index 0000000000..59f339525b--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/integration.json@@ -0,0 +1,136 @@+{+ "id": "cloudsql_mysql",+ "title": "GCP Cloud SQL for MySQL",+ "icon": "file://icon.svg",+ "overview": "file://overview.md",+ "supportedSignals": {+ "metrics": true,+ "logs": true+ },+ "dataCollected": {+ "metrics": [+ {+ "name": "cloudsql.googleapis.com/database/up",+ "unit": "Count",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/instance_state",+ "unit": "Count",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/replication/replica_lag",+ "unit": "Seconds",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/cpu/utilization",+ "unit": "Percent",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/memory/utilization",+ "unit": "Percent",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/disk/utilization",+ "unit": "Percent",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/network/connections",+ "unit": "Count",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/queries",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/dml_operations_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/threads",+ "unit": "Count",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/innodb/buffer_pool_reads_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/innodb/buffer_pool_read_requests_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/slow_queries_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/aborted_connects_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/innodb/deadlocks_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/mysql/innodb/row_lock_waits_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/disk/read_ops_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "cloudsql.googleapis.com/database/disk/write_ops_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ }+ ],+ "logs": []+ },+ "telemetryCollectionStrategy": {+ "gcp": {}+ },+ "assets": {+ "dashboards": [+ {+ "id": "overview",+ "title": "GCP Cloud SQL for MySQL Overview",+ "description": "Overview of GCP Cloud SQL for MySQL metrics",+ "definition": "file://assets/dashboards/overview.json"+ }+ ]+ }+}diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/overview.md b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/overview.mdnew file mode 100644index 0000000000..b6a41dbaef--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_mysql/overview.md@@ -0,0 +1,3 @@+### Monitor GCP Cloud SQL for MySQL with SigNoz++Collect key GCP Cloud SQL for MySQL metrics and view them with an out of the box dashboard.diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_postgres/assets/dashboards/overview.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_postgres/assets/dashboards/overview.jsonindex 965c25f515..b0c6a52db2 100644--- a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_postgres/assets/dashboards/overview.json+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql_postgres/assets/dashboards/overview.json@@ -784,40 +784,57 @@{"kind": "time_series","spec": {- "name": "A","plugin": {- "kind": "signoz/BuilderQuery",+ "kind": "signoz/CompositeQuery","spec": {- "name": "A",- "signal": "metrics",- "source": "",- "aggregations": [+ "queries": [{- "metricName": "cloudsql.googleapis.com/database/cpu/utilization",- "temporality": "",- "timeAggregation": "max",- "spaceAggregation": "max",- "reduceTo": "avg"- }- ],- "disabled": false,- "filter": {- "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database' "- },- "groupBy": [+ "type": "builder_query",+ "spec": {+ "name": "A",+ "stepInterval": 0,+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "cloudsql.googleapis.com/database/cpu/utilization",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": ""+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND database_id in $database_id AND gcp.resource_type = 'cloudsql_database' "+ },+ "groupBy": [+ {+ "name": "database_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": null,+ "selectFields": null,+ "secondaryAggregations": null,+ "functions": null,+ "legend": "{{database_id}}"+ }+ },{- "name": "database_id",- "signal": "",- "fieldContext": "attribute",- "fieldDataType": "string"+ "type": "builder_formula",+ "spec": {+ "name": "F1",+ "expression": "100 * A",+ "disabled": false,+ "order": null,+ "functions": null,+ "legend": "{{database_id}}"+ }}- ],- "order": [],- "having": {- "expression": ""- },- "functions": [],- "legend": "{{database_id}}"+ ]}}}@@ -1417,4 +1434,4 @@"refreshInterval": "","links": []}-}\ No newline at end of file+}diff --git a/pkg/types/cloudintegrationtypes/serviceid.go b/pkg/types/cloudintegrationtypes/serviceid.goindex e1bf1e642c..4fbd8498b6 100644--- a/pkg/types/cloudintegrationtypes/serviceid.go+++ b/pkg/types/cloudintegrationtypes/serviceid.go@@ -46,6 +46,7 @@ var (GCPServiceComputeEngine = ServiceID{valuer.NewString("computeengine")}GCPServiceGKE = ServiceID{valuer.NewString("gke")}GCPServiceCloudStorage = ServiceID{valuer.NewString("cloudstorage")}+ GCPServiceCloudSQLMySQL = ServiceID{valuer.NewString("cloudsql_mysql")})func (ServiceID) Enum() []any {@@ -82,6 +83,7 @@ func (ServiceID) Enum() []any {GCPServiceComputeEngine,GCPServiceGKE,GCPServiceCloudStorage,+ GCPServiceCloudSQLMySQL,}}@@ -124,6 +126,7 @@ var SupportedServices = map[CloudProviderType][]ServiceID{GCPServiceComputeEngine,GCPServiceGKE,GCPServiceCloudStorage,+ GCPServiceCloudSQLMySQL,},}