2

我有几个 lambdas 为我的流程使用不同的其他服务,如 SSM、athena、dynamodb、s3、SQS、SNS。我几乎完成了我所有的开发,并希望以可视方式对其进行监控。我使用 X-ray 和 cloud watch 作为我的常规日志监控和分析。我觉得云手表仪表板不是用多种服务可视化我的东西的有效方式。所以我做了一个 lambda,它从我的 X 射线跟踪中提取跟踪数据并输出一个嵌套的 json 文件,如下所示。

[
{
    "id": "4707a33e472",
    "name": "test-lambda",
    "start_time": 1524714634.098,
    "end_time": 1524714672.046,
    "parent_id": "1b9122bc",
    "aws": {
        "function_arn": "arn:aws:lambda:us-east-1:9684596:function:test-lambda",
        "resource_names": [
            "test-lambda"
        ],
        "account_id": "9684596"
    },
    "trace_id": "1-5ae14c88-41dca52ccec8c7d",
    "origin": "AWS::Lambda::Function",
    "subsegments": [
        {
            "id": "ab6420197c",
            "name": "S3",
            "start_time": 1524714671.7148032,
            "end_time": 1524714671.8333395,
            "http": {
                "response": {
                    "status": 200
                }
            },
            "aws": {
                "id_2": "No9Gemg5b9Y2XREorBG+6a1KLXX7S6O3HtPZ3f6vUuU5F1dQE0nIE1WmwmRRHIqCjI=",
                "operation": "DeleteObjects",
                "region": "us-east-1",
                "request_id": "E2709BB91B8"
            },
            "namespace": "aws"
        },
        {
            "id": "370e11d6d",
            "name": "SSM",
            "start_time": 1524714634.0991564,
            "end_time": 1524714634.194922,
            "http": {
                "response": {
                    "status": 200
                }
            },
            "aws": {
                "operation": "GetParameter",
                "region": "us-east-1",
                "request_id": "f901ed67-4904-bde0-f9ad15cc558b"
            },
            "namespace": "aws"
        },
        {
            "id": "8423bf21354",
            "name": "DynamoDB",
            "start_time": 1524714671.9744427,
            "end_time": 1524714671.981935,
            "http": {
                "response": {
                    "status": 200
                }
            },
            "aws": {
                "operation": "UpdateItem",
                "region": "us-east-1",
                "request_id": "3AHBI44JRJ2UJ72V88CJPV5L4JVV4K6Q9ASUAAJG",
                "table_name": "test-dynamodb",
                "resource_names": [
                    "test-dynamodb"
                ]
            },

我只发布了 X 射线跟踪 json 输出的前几行,但在这里发布的内容非常大。AWS quicksight 不支持嵌套 json,我的问题是,有没有办法使用 quicksight 以更好的方式可视化我的所有 lambda。我不允许使用其他第三方监控系统。需要帮助

4

0 回答 0