diff --git a/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/assets/dashboards/overview.json b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/assets/dashboards/overview.json new file mode 100644 index 0000000000..4edbf5089b --- /dev/null +++ b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/assets/dashboards/overview.json @@ -0,0 +1,818 @@ +{ + "description": "View key AWS SNS metrics with an out of the box dashboard.", + "image": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODBweCIgaGVpZ2h0PSI4MHB4IiB2aWV3Qm94PSIwIDAgODAgODAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDY0ICg5MzUzNykgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+SWNvbi1BcmNoaXRlY3R1cmUvNjQvQXJjaF9BV1MtU2ltcGxlLU5vdGlmaWNhdGlvbi1TZXJ2aWNlXzY0PC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGRlZnM+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjEwMCUiIHgyPSIxMDAlIiB5Mj0iMCUiIGlkPSJsaW5lYXJHcmFkaWVudC0xIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0IwMDg0RCIgb2Zmc2V0PSIwJSI+PC9zdG9wPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkY0RjhCIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPC9kZWZzPgogICAgPGcgaWQ9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zkgTDQ1LDM5IEw0NSw0MSBMNTIsNDEgTDUyLDU1IEM1Miw1NS41NTIgNTIuNDQ3LDU2IDUzLDU2IEw1OC4xNDMsNTYgQzU4LjU4OSw1Ny43MiA2MC4xNDIsNTkgNjIsNTkgQzY0LjIwNiw1OSA2Niw1Ny4yMDYgNjYsNTUgQzY2LDUyLjc5NCA2NC4yMDYsNTEgNjIsNTEgQzYwLjE0Miw1MSA1OC41ODksNTIuMjggNTguMTQzLDU0IEw1NCw1NCBMNTQsNDEgWiIgaWQ9IkFXUy1TaW1wbGUtTm90aWZpY2F0aW9uLVNlcnZpY2VfSWNvbl82NF9TcXVpZCIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=", + "layout": [ + { + "h": 6, + "i": "4eb87f89-0213-4773-9b06-6aecc6701898", + "moved": false, + "static": false, + "w": 6, + "x": 0, + "y": 0 + }, + { + "h": 6, + "i": "7a010b4e-ea7c-4a45-a9eb-93af650c45b4", + "moved": false, + "static": false, + "w": 6, + "x": 6, + "y": 0 + }, + { + "h": 6, + "i": "2299d4e3-6c40-4bf2-a550-c7bb8a7acd38", + "moved": false, + "static": false, + "w": 6, + "x": 0, + "y": 6 + }, + { + "h": 6, + "i": "16eec8b7-de1a-4039-b180-24c7a6704b6e", + "moved": false, + "static": false, + "w": 6, + "x": 6, + "y": 6 + } + ], + "panelMap": {}, + "tags": [], + "title": "SNS Overview", + "uploadedGrafana": false, + "variables": { + "51f4fa2b-89c7-47c2-9795-f32cffaab985": { + "allSelected": false, + "customValue": "", + "description": "AWS Account ID", + "id": "51f4fa2b-89c7-47c2-9795-f32cffaab985", + "key": "51f4fa2b-89c7-47c2-9795-f32cffaab985", + "modificationUUID": "b7a6b06b-fa1f-4fb8-b70e-6bd9b350f29e", + "multiSelect": false, + "name": "Account", + "order": 0, + "queryValue": "SELECT DISTINCT JSONExtractString(labels, 'cloud_account_id') AS cloud_account_id\nFROM signoz_metrics.distributed_time_series_v4_1day\nWHERE metric_name = 'aws_SNS_PublishSize_count' GROUP BY cloud_account_id", + "showALLOption": false, + "sort": "DISABLED", + "textboxValue": "", + "type": "QUERY" + }, + "9faf0f4b-b245-4b3c-83a3-60cfa76dfeb0": { + "allSelected": false, + "customValue": "", + "description": "Account Region", + "id": "9faf0f4b-b245-4b3c-83a3-60cfa76dfeb0", + "key": "9faf0f4b-b245-4b3c-83a3-60cfa76dfeb0", + "modificationUUID": "8428a5de-bfd1-4a69-9601-63e3041cd556", + "multiSelect": false, + "name": "Region", + "order": 1, + "queryValue": "SELECT DISTINCT JSONExtractString(labels, 'cloud_region') AS region\nFROM signoz_metrics.distributed_time_series_v4_1day\nWHERE metric_name = 'aws_SNS_PublishSize_count' AND JSONExtractString(labels, 'cloud_account_id') IN {{.Account}} GROUP BY region", + "showALLOption": false, + "sort": "ASC", + "textboxValue": "", + "type": "QUERY" + }, + "bfbdbcbe-a168-4d81-b108-36339e249116": { + "allSelected": true, + "customValue": "", + "description": "SNS Topic Name", + "id": "bfbdbcbe-a168-4d81-b108-36339e249116", + "modificationUUID": "dfed7272-16dc-4eb6-99bf-7c82fc8e04f0", + "multiSelect": true, + "name": "Topic", + "order": 2, + "queryValue": "SELECT DISTINCT JSONExtractString(labels, 'TopicName') AS topic\nFROM signoz_metrics.distributed_time_series_v4_1day\nWHERE metric_name = 'aws_SNS_PublishSize_count' AND JSONExtractString(labels, 'cloud_account_id') IN {{.Account}} AND JSONExtractString(labels, 'cloud_region') IN {{.Region}}\nGROUP BY topic", + "showALLOption": true, + "sort": "ASC", + "textboxValue": "", + "type": "QUERY" + } + }, + "version": "v4", + "widgets": [ + { + "bucketCount": 30, + "bucketWidth": 0, + "columnUnits": {}, + "description": "", + "fillSpans": false, + "id": "4eb87f89-0213-4773-9b06-6aecc6701898", + "isLogScale": false, + "isStacked": false, + "mergeAllActiveQueries": false, + "nullZeroValues": "zero", + "opacity": "1", + "panelTypes": "graph", + "query": { + "builder": { + "queryData": [ + { + "aggregateAttribute": { + "dataType": "float64", + "id": "aws_SNS_NumberOfMessagesPublished_max--float64--Gauge--true", + "isColumn": true, + "isJSON": false, + "key": "aws_SNS_NumberOfMessagesPublished_max", + "type": "Gauge" + }, + "aggregateOperator": "max", + "dataSource": "metrics", + "disabled": false, + "expression": "A", + "filters": { + "items": [ + { + "id": "8fd51b53", + "key": { + "dataType": "string", + "id": "TopicName--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "TopicName", + "type": "tag" + }, + "op": "in", + "value": [ + "$Topic" + ] + }, + { + "id": "b18187c3", + "key": { + "dataType": "string", + "id": "cloud_region--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "cloud_region", + "type": "tag" + }, + "op": "=", + "value": "$Region" + }, + { + "id": "eebe4578", + "key": { + "dataType": "string", + "id": "cloud_account_id--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "cloud_account_id", + "type": "tag" + }, + "op": "=", + "value": "$Account" + } + ], + "op": "AND" + }, + "functions": [], + "groupBy": [ + { + "dataType": "string", + "id": "TopicName--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "TopicName", + "type": "tag" + } + ], + "having": [], + "legend": "{{TopicName}}", + "limit": null, + "orderBy": [], + "queryName": "A", + "reduceTo": "avg", + "spaceAggregation": "max", + "stepInterval": 60, + "timeAggregation": "max" + } + ], + "queryFormulas": [] + }, + "clickhouse_sql": [ + { + "disabled": false, + "legend": "", + "name": "A", + "query": "" + } + ], + "id": "9c67615a-55f7-42da-835c-86922f2ff8bb", + "promql": [ + { + "disabled": false, + "legend": "", + "name": "A", + "query": "" + } + ], + "queryType": "builder" + }, + "selectedLogFields": [ + { + "dataType": "string", + "name": "body", + "type": "" + }, + { + "dataType": "string", + "name": "timestamp", + "type": "" + } + ], + "selectedTracesFields": [ + { + "dataType": "string", + "id": "serviceName--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "serviceName", + "type": "tag" + }, + { + "dataType": "string", + "id": "name--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "name", + "type": "tag" + }, + { + "dataType": "float64", + "id": "durationNano--float64--tag--true", + "isColumn": true, + "isJSON": false, + "key": "durationNano", + "type": "tag" + }, + { + "dataType": "string", + "id": "httpMethod--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "httpMethod", + "type": "tag" + }, + { + "dataType": "string", + "id": "responseStatusCode--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "responseStatusCode", + "type": "tag" + } + ], + "softMax": 0, + "softMin": 0, + "stackedBarChart": false, + "thresholds": [], + "timePreferance": "GLOBAL_TIME", + "title": "Number of Messages Published", + "yAxisUnit": "none" + }, + { + "bucketCount": 30, + "bucketWidth": 0, + "columnUnits": {}, + "description": "", + "fillSpans": false, + "id": "7a010b4e-ea7c-4a45-a9eb-93af650c45b4", + "isLogScale": false, + "isStacked": false, + "mergeAllActiveQueries": false, + "nullZeroValues": "zero", + "opacity": "1", + "panelTypes": "graph", + "query": { + "builder": { + "queryData": [ + { + "aggregateAttribute": { + "dataType": "float64", + "id": "aws_SNS_PublishSize_max--float64--Gauge--true", + "isColumn": true, + "isJSON": false, + "key": "aws_SNS_PublishSize_max", + "type": "Gauge" + }, + "aggregateOperator": "max", + "dataSource": "metrics", + "disabled": false, + "expression": "A", + "filters": { + "items": [ + { + "id": "1aa0d1a9", + "key": { + "dataType": "string", + "id": "TopicName--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "TopicName", + "type": "tag" + }, + "op": "in", + "value": [ + "$Topic" + ] + }, + { + "id": "62255cff", + "key": { + "dataType": "string", + "id": "cloud_region--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "cloud_region", + "type": "tag" + }, + "op": "=", + "value": "$Region" + }, + { + "id": "17c7153e", + "key": { + "dataType": "string", + "id": "cloud_account_id--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "cloud_account_id", + "type": "tag" + }, + "op": "=", + "value": "$Account" + } + ], + "op": "AND" + }, + "functions": [], + "groupBy": [ + { + "dataType": "string", + "id": "TopicName--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "TopicName", + "type": "tag" + } + ], + "having": [], + "legend": "{{TopicName}}", + "limit": null, + "orderBy": [], + "queryName": "A", + "reduceTo": "avg", + "spaceAggregation": "max", + "stepInterval": 60, + "timeAggregation": "max" + } + ], + "queryFormulas": [] + }, + "clickhouse_sql": [ + { + "disabled": false, + "legend": "", + "name": "A", + "query": "" + } + ], + "id": "a635a15b-dfe6-4617-a82e-29d93e27deaf", + "promql": [ + { + "disabled": false, + "legend": "", + "name": "A", + "query": "" + } + ], + "queryType": "builder" + }, + "selectedLogFields": [ + { + "dataType": "string", + "name": "body", + "type": "" + }, + { + "dataType": "string", + "name": "timestamp", + "type": "" + } + ], + "selectedTracesFields": [ + { + "dataType": "string", + "id": "serviceName--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "serviceName", + "type": "tag" + }, + { + "dataType": "string", + "id": "name--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "name", + "type": "tag" + }, + { + "dataType": "float64", + "id": "durationNano--float64--tag--true", + "isColumn": true, + "isJSON": false, + "key": "durationNano", + "type": "tag" + }, + { + "dataType": "string", + "id": "httpMethod--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "httpMethod", + "type": "tag" + }, + { + "dataType": "string", + "id": "responseStatusCode--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "responseStatusCode", + "type": "tag" + } + ], + "softMax": 0, + "softMin": 0, + "stackedBarChart": false, + "thresholds": [], + "timePreferance": "GLOBAL_TIME", + "title": "Published Message Size", + "yAxisUnit": "decbytes" + }, + { + "bucketCount": 30, + "bucketWidth": 0, + "columnUnits": {}, + "description": "", + "fillSpans": false, + "id": "2299d4e3-6c40-4bf2-a550-c7bb8a7acd38", + "isLogScale": false, + "isStacked": false, + "mergeAllActiveQueries": false, + "nullZeroValues": "zero", + "opacity": "1", + "panelTypes": "graph", + "query": { + "builder": { + "queryData": [ + { + "aggregateAttribute": { + "dataType": "float64", + "id": "aws_SNS_NumberOfNotificationsDelivered_max--float64--Gauge--true", + "isColumn": true, + "isJSON": false, + "key": "aws_SNS_NumberOfNotificationsDelivered_max", + "type": "Gauge" + }, + "aggregateOperator": "max", + "dataSource": "metrics", + "disabled": false, + "expression": "A", + "filters": { + "items": [ + { + "id": "c96a4ac0", + "key": { + "dataType": "string", + "id": "TopicName--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "TopicName", + "type": "tag" + }, + "op": "in", + "value": [ + "$Topic" + ] + }, + { + "id": "8ca86829", + "key": { + "dataType": "string", + "id": "cloud_region--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "cloud_region", + "type": "tag" + }, + "op": "=", + "value": "$Region" + }, + { + "id": "8a444f66", + "key": { + "dataType": "string", + "id": "cloud_account_id--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "cloud_account_id", + "type": "tag" + }, + "op": "=", + "value": "$Account" + } + ], + "op": "AND" + }, + "functions": [], + "groupBy": [ + { + "dataType": "string", + "id": "TopicName--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "TopicName", + "type": "tag" + } + ], + "having": [], + "legend": "{{TopicName}}", + "limit": null, + "orderBy": [], + "queryName": "A", + "reduceTo": "avg", + "spaceAggregation": "max", + "stepInterval": 60, + "timeAggregation": "max" + } + ], + "queryFormulas": [] + }, + "clickhouse_sql": [ + { + "disabled": false, + "legend": "", + "name": "A", + "query": "" + } + ], + "id": "0d2fc26c-9b21-4dfc-b631-64b7c8d3bd71", + "promql": [ + { + "disabled": false, + "legend": "", + "name": "A", + "query": "" + } + ], + "queryType": "builder" + }, + "selectedLogFields": [ + { + "dataType": "string", + "name": "body", + "type": "" + }, + { + "dataType": "string", + "name": "timestamp", + "type": "" + } + ], + "selectedTracesFields": [ + { + "dataType": "string", + "id": "serviceName--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "serviceName", + "type": "tag" + }, + { + "dataType": "string", + "id": "name--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "name", + "type": "tag" + }, + { + "dataType": "float64", + "id": "durationNano--float64--tag--true", + "isColumn": true, + "isJSON": false, + "key": "durationNano", + "type": "tag" + }, + { + "dataType": "string", + "id": "httpMethod--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "httpMethod", + "type": "tag" + }, + { + "dataType": "string", + "id": "responseStatusCode--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "responseStatusCode", + "type": "tag" + } + ], + "softMax": 0, + "softMin": 0, + "stackedBarChart": false, + "thresholds": [], + "timePreferance": "GLOBAL_TIME", + "title": "Number of Notifications Delivered", + "yAxisUnit": "none" + }, + { + "bucketCount": 30, + "bucketWidth": 0, + "columnUnits": {}, + "description": "", + "fillSpans": false, + "id": "16eec8b7-de1a-4039-b180-24c7a6704b6e", + "isLogScale": false, + "isStacked": false, + "mergeAllActiveQueries": false, + "nullZeroValues": "zero", + "opacity": "1", + "panelTypes": "graph", + "query": { + "builder": { + "queryData": [ + { + "aggregateAttribute": { + "dataType": "float64", + "id": "aws_SNS_NumberOfNotificationsFailed_max--float64--Gauge--true", + "isColumn": true, + "isJSON": false, + "key": "aws_SNS_NumberOfNotificationsFailed_max", + "type": "Gauge" + }, + "aggregateOperator": "max", + "dataSource": "metrics", + "disabled": false, + "expression": "A", + "filters": { + "items": [ + { + "id": "6175f3d5", + "key": { + "dataType": "string", + "id": "TopicName--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "TopicName", + "type": "tag" + }, + "op": "in", + "value": [ + "$Topic" + ] + }, + { + "id": "e2084931", + "key": { + "dataType": "string", + "id": "cloud_region--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "cloud_region", + "type": "tag" + }, + "op": "=", + "value": "$Region" + }, + { + "id": "0b05209a", + "key": { + "dataType": "string", + "id": "cloud_account_id--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "cloud_account_id", + "type": "tag" + }, + "op": "=", + "value": "$Account" + } + ], + "op": "AND" + }, + "functions": [], + "groupBy": [ + { + "dataType": "string", + "id": "TopicName--string--tag--false", + "isColumn": false, + "isJSON": false, + "key": "TopicName", + "type": "tag" + } + ], + "having": [], + "legend": "{{TopicName}}", + "limit": null, + "orderBy": [], + "queryName": "A", + "reduceTo": "avg", + "spaceAggregation": "max", + "stepInterval": 60, + "timeAggregation": "max" + } + ], + "queryFormulas": [] + }, + "clickhouse_sql": [ + { + "disabled": false, + "legend": "", + "name": "A", + "query": "" + } + ], + "id": "526247af-6ac9-42ff-83e9-cce0e32a9e63", + "promql": [ + { + "disabled": false, + "legend": "", + "name": "A", + "query": "" + } + ], + "queryType": "builder" + }, + "selectedLogFields": [ + { + "dataType": "string", + "name": "body", + "type": "" + }, + { + "dataType": "string", + "name": "timestamp", + "type": "" + } + ], + "selectedTracesFields": [ + { + "dataType": "string", + "id": "serviceName--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "serviceName", + "type": "tag" + }, + { + "dataType": "string", + "id": "name--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "name", + "type": "tag" + }, + { + "dataType": "float64", + "id": "durationNano--float64--tag--true", + "isColumn": true, + "isJSON": false, + "key": "durationNano", + "type": "tag" + }, + { + "dataType": "string", + "id": "httpMethod--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "httpMethod", + "type": "tag" + }, + { + "dataType": "string", + "id": "responseStatusCode--string--tag--true", + "isColumn": true, + "isJSON": false, + "key": "responseStatusCode", + "type": "tag" + } + ], + "softMax": 0, + "softMin": 0, + "stackedBarChart": false, + "thresholds": [], + "timePreferance": "GLOBAL_TIME", + "title": "Number of Notifications Failed", + "yAxisUnit": "none" + } + ] +} \ No newline at end of file diff --git a/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/assets/dashboards/overview.png b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/assets/dashboards/overview.png new file mode 100644 index 0000000000..3a25276ffe Binary files /dev/null and b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/assets/dashboards/overview.png differ diff --git a/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/icon.svg b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/icon.svg new file mode 100644 index 0000000000..6cb54adab2 --- /dev/null +++ b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/icon.svg @@ -0,0 +1,18 @@ + + + + Icon-Architecture/64/Arch_AWS-Simple-Notification-Service_64 + Created with Sketch. + + + + + + + + + + + + + \ No newline at end of file diff --git a/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/integration.json b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/integration.json new file mode 100644 index 0000000000..cc11c86c9e --- /dev/null +++ b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/integration.json @@ -0,0 +1,130 @@ +{ + "id": "sns", + "title": "SNS", + "icon": "file://icon.svg", + "overview": "file://overview.md", + "supported_signals": { + "metrics": true, + "logs": false + }, + "data_collected": { + "metrics": [ + { + "name": "aws_SNS_NumberOfMessagesPublished_count", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfMessagesPublished_max", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfMessagesPublished_min", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfMessagesPublished_sum", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfNotificationsDelivered_count", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfNotificationsDelivered_max", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfNotificationsDelivered_min", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfNotificationsDelivered_sum", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfNotificationsFailed_count", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfNotificationsFailed_max", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfNotificationsFailed_min", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_NumberOfNotificationsFailed_sum", + "unit": "Count", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_PublishSize_count", + "unit": "Bytes", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_PublishSize_max", + "unit": "Bytes", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_PublishSize_min", + "unit": "Bytes", + "type": "Gauge", + "description": "" + }, + { + "name": "aws_SNS_PublishSize_sum", + "unit": "Bytes", + "type": "Gauge", + "description": "" + } + ] + }, + "telemetry_collection_strategy": { + "aws_metrics": { + "cloudwatch_metric_stream_filters": [ + { + "Namespace": "AWS/SNS" + } + ] + } + }, + "assets": { + "dashboards": [ + { + "id": "overview", + "title": "SNS Overview", + "description": "Overview of SNS", + "image": "file://assets/dashboards/overview.png", + "definition": "file://assets/dashboards/overview.json" + } + ] + } +} \ No newline at end of file diff --git a/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/overview.md b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/overview.md new file mode 100644 index 0000000000..296007f86a --- /dev/null +++ b/pkg/query-service/app/cloudintegrations/services/definitions/aws/sns/overview.md @@ -0,0 +1,3 @@ +### Monitor SNS with SigNoz + +Collect SNS key Metrics and view them with an out of the box dashboard.