flanksource / flanksource-ui

https://flanksource-ui.vercel.app
Other
8 stars 22 forks source link

Render config properties #1930

Closed moshloop closed 1 month ago

moshloop commented 2 months ago

e.g.

[
    {
        "id": "32303837-6635-3339-6666-356439396236",
        "agent_id": "00000000-0000-0000-0000-000000000000",
        "icon": null,
        "scraper_id": "531aab91-5e93-45d7-9111-db6cae3d626c",
        "config_class": "VirtualMachine",
        "external_id": [
            "i-06ec81289075cc597",
            "AmazonEC2/i-06ec81289075cc597"
        ],
        "type": "AWS::EC2::Instance",
        "cost_per_minute": null,
        "cost_total_1d": null,
        "cost_total_7d": null,
        "cost_total_30d": null,
        "name": "mission-control-demo-cluster-ng1-Node",
        "description": null,
        "config": {
            "tags": {
                "Name": "mission-control-demo-cluster-ng1-Node",
                "subnet": "subnet-0e33965610ced8995",
                "account": "765618022540",
                "network": "vpc-09c963a9231399689",
                "aws:eks:cluster-name": "mission-control-demo-cluster",
                "aws:ec2launchtemplate:id": "lt-0d614f9a48aa7ceed",
                "aws:autoscaling:groupName": "eksctl-mission-control-demo-cluster-nodegroup-ng1-NodeGroup-1L6NC0AHKKVDS",
                "aws:cloudformation:stack-id": "arn:aws:cloudformation:eu-west-1:765618022540:stack/eksctl-mission-control-demo-cluster-nodegroup-ng1/2eacf5b0-ee1e-11ed-baad-0ac648bdb9a9",
                "alpha.eksctl.io/cluster-name": "mission-control-demo-cluster",
                "aws:cloudformation:logical-id": "NodeGroup",
                "aws:cloudformation:stack-name": "eksctl-mission-control-demo-cluster-nodegroup-ng1",
                "aws:ec2launchtemplate:version": "1",
                "alpha.eksctl.io/eksctl-version": "0.140.0",
                "alpha.eksctl.io/nodegroup-name": "ng1",
                "alpha.eksctl.io/nodegroup-type": "unmanaged",
                "eksctl.io/v1alpha2/nodegroup-name": "ng1",
                "eksctl.cluster.k8s.io/v1alpha1/cluster-name": "mission-control-demo-cluster",
                "kubernetes.io/cluster/mission-control-demo-cluster": "owned"
            },
            "state": "running",
            "vpc_id": "vpc-09c963a9231399689",
            "image_id": "ami-00313eae2f5c20b18",
            "subnet_id": "subnet-0e33965610ced8995",
            "hypervisor": "xen",
            "ena_support": true,
            "instance_id": "i-06ec81289075cc597",
            "launch_time": "2023-06-07T07:10:46Z",
            "architecture": "x86_64",
            "ebs_optimized": false,
            "instance_type": "t3.xlarge",
            "public_dns_name": "ec2-3-249-89-97.eu-west-1.compute.amazonaws.com",
            "security_groups": {
                "sg-01bcf8093abb2ed19": "eksctl-mission-control-demo-cluster-cluster-ClusterSharedNodeSecurityGroup-1N5XFO1QIMPLP",
                "sg-02e1f10c269109289": "eksctl-mission-control-demo-cluster-nodegroup-ng1-SG-4ZJU6AFTNJGN",
                "sg-0da304b8a8998ca27": "ingress"
            },
            "usage_operation": "RunInstances",
            "ami_launch_index": 0,
            "platform_details": "Linux/UNIX",
            "private_dns_name": "ip-10-0-4-23.eu-west-1.compute.internal",
            "root_device_name": "/dev/xvda",
            "root_device_type": "ebs",
            "public_ip_address": "3.249.89.97",
            "source_dest_check": true,
            "network_interfaces": [
                {
                    "Groups": [
                        "sg-01bcf8093abb2ed19",
                        "sg-02e1f10c269109289",
                        "sg-0da304b8a8998ca27"
                    ],
                    "Status": "in-use",
                    "OwnerID": "",
                    "AttachTime": "2023-06-07T07:11:39Z",
                    "MacAddress": "06:86:bb:e0:55:c7",
                    "Description": "aws-K8S-i-06ec81289075cc597",
                    "DeviceIndex": 1,
                    "AttachmentID": "eni-attach-0398476c172181dcf",
                    "Ipv4Prefixes": [],
                    "Ipv6Prefixes": [],
                    "Ipv6Addresses": [],
                    "PrivateDNSName": "ip-10-0-4-212.eu-west-1.compute.internal",
                    "SourceDestCheck": true,
                    "AttachmentStatus": "attached",
                    "NetworkCardIndex": 0,
                    "PrivateIPAddress": "10.0.4.212",
                    "NetworkInterfaceID": "eni-0c08dab9403162cbb",
                    "PrivateIPAddresses": [
                        "10.0.4.212",
                        "10.0.4.194",
                        "10.0.4.4",
                        "10.0.4.68",
                        "10.0.4.196",
                        "10.0.4.232",
                        "10.0.4.10",
                        "10.0.4.140",
                        "10.0.4.14",
                        "10.0.4.240",
                        "10.0.4.16",
                        "10.0.4.81",
                        "10.0.4.178",
                        "10.0.4.218",
                        "10.0.4.187"
                    ],
                    "DeleteOnTermination": true
                },
                {
                    "Groups": [
                        "sg-01bcf8093abb2ed19",
                        "sg-02e1f10c269109289",
                        "sg-0da304b8a8998ca27"
                    ],
                    "Status": "in-use",
                    "OwnerID": "",
                    "AttachTime": "2023-06-07T07:10:46Z",
                    "MacAddress": "06:8f:ff:ce:df:51",
                    "Description": "",
                    "DeviceIndex": 0,
                    "AttachmentID": "eni-attach-0fe25ccf454db1fa3",
                    "Ipv4Prefixes": [],
                    "Ipv6Prefixes": [],
                    "Ipv6Addresses": [],
                    "PrivateDNSName": "ip-10-0-4-23.eu-west-1.compute.internal",
                    "SourceDestCheck": true,
                    "AttachmentStatus": "attached",
                    "NetworkCardIndex": 0,
                    "PrivateIPAddress": "10.0.4.23",
                    "NetworkInterfaceID": "eni-059ee43611992bcf6",
                    "PrivateIPAddresses": [
                        "10.0.4.23",
                        "10.0.4.192",
                        "10.0.4.193",
                        "10.0.4.161",
                        "10.0.4.39",
                        "10.0.4.204",
                        "10.0.4.50",
                        "10.0.4.149",
                        "10.0.4.118",
                        "10.0.4.87",
                        "10.0.4.120",
                        "10.0.4.26",
                        "10.0.4.154",
                        "10.0.4.253",
                        "10.0.4.94"
                    ],
                    "DeleteOnTermination": true
                },
                {
                    "Groups": [
                        "sg-01bcf8093abb2ed19",
                        "sg-02e1f10c269109289",
                        "sg-0da304b8a8998ca27"
                    ],
                    "Status": "in-use",
                    "OwnerID": "",
                    "AttachTime": "2023-06-12T07:29:50Z",
                    "MacAddress": "06:ec:6c:91:84:bf",
                    "Description": "aws-K8S-i-06ec81289075cc597",
                    "DeviceIndex": 2,
                    "AttachmentID": "eni-attach-0c2d5f42e9d6c3ae0",
                    "Ipv4Prefixes": [],
                    "Ipv6Prefixes": [],
                    "Ipv6Addresses": [],
                    "PrivateDNSName": "ip-10-0-4-85.eu-west-1.compute.internal",
                    "SourceDestCheck": true,
                    "AttachmentStatus": "attached",
                    "NetworkCardIndex": 0,
                    "PrivateIPAddress": "10.0.4.85",
                    "NetworkInterfaceID": "eni-05dc4925fe1bad928",
                    "PrivateIPAddresses": [
                        "10.0.4.85",
                        "10.0.4.133",
                        "10.0.4.72",
                        "10.0.4.137",
                        "10.0.4.139",
                        "10.0.4.75",
                        "10.0.4.107",
                        "10.0.4.141",
                        "10.0.4.239",
                        "10.0.4.17",
                        "10.0.4.180",
                        "10.0.4.248",
                        "10.0.4.121",
                        "10.0.4.251",
                        "10.0.4.126"
                    ],
                    "DeleteOnTermination": true
                },
                {
                    "Groups": [
                        "sg-01bcf8093abb2ed19",
                        "sg-02e1f10c269109289",
                        "sg-0da304b8a8998ca27"
                    ],
                    "Status": "in-use",
                    "OwnerID": "",
                    "AttachTime": "2023-09-05T22:23:20Z",
                    "MacAddress": "06:b7:f5:34:62:77",
                    "Description": "aws-K8S-i-06ec81289075cc597",
                    "DeviceIndex": 3,
                    "AttachmentID": "eni-attach-0323a643dc68fbc37",
                    "Ipv4Prefixes": [],
                    "Ipv6Prefixes": [],
                    "Ipv6Addresses": [],
                    "PrivateDNSName": "ip-10-0-4-146.eu-west-1.compute.internal",
                    "SourceDestCheck": true,
                    "AttachmentStatus": "attached",
                    "NetworkCardIndex": 0,
                    "PrivateIPAddress": "10.0.4.146",
                    "NetworkInterfaceID": "eni-02e3eb6dab511b422",
                    "PrivateIPAddresses": [
                        "10.0.4.146",
                        "10.0.4.128",
                        "10.0.4.104",
                        "10.0.4.171",
                        "10.0.4.205",
                        "10.0.4.208",
                        "10.0.4.147",
                        "10.0.4.89",
                        "10.0.4.25",
                        "10.0.4.123",
                        "10.0.4.28",
                        "10.0.4.252",
                        "10.0.4.61",
                        "10.0.4.254",
                        "10.0.4.223"
                    ],
                    "DeleteOnTermination": true
                }
            ],
            "private_ip_address": "10.0.4.23",
            "virtualization_type": "hvm",
            "iam_instance_profile": "arn:aws:iam::765618022540:instance-profile/eksctl-mission-control-demo-cluster-nodegroup-ng1-NodeInstanceProfile-KwLXIfuIxRXO",
            "block_device_mappings": [
                {
                    "Ebs": {
                        "Status": "attached",
                        "VolumeId": "vol-02918edf6f5a684d2",
                        "AttachTime": "2023-06-07T07:10:47Z",
                        "DeleteOnTermination": true
                    },
                    "DeviceName": "/dev/xvda"
                }
            ],
            "usage_operation_update_time": "2023-06-07T07:10:46Z"
        },
        "source": "",
        "tags": {
            "account": "765618022540"
        },
        "parent_id": "36646164-6130-3733-6339-353230333136",
        "path": "33373937-3765-6137-6539-313662663466.36646164-6130-3733-6339-353230333136.32303837-6635-3339-6666-356439396236",
        "created_by": null,
        "created_at": "0001-01-01T00:00:00+00:00",
        "updated_at": "2024-04-30T04:47:52.565272+00:00",
        "deleted_at": null,
        "status": "Healthy",
        "delete_reason": "",
        "properties": [
            {
                "icon": "AWS::EC2::Instance",
                "name": "URL",
                "links": [
                    {
                        "url": "https://eu-west-1.console.aws.amazon.com/ec2/v2/home?region=eu-west-1#Instances:search=i-06ec81289075cc597",
                        "label": "Console"
                    }
                ]
            }
        ],
        "is_pushed": true,
        "last_scraped_time": "2024-05-16T07:30:17.155841+00:00",
        "labels": {
            "Name": "mission-control-demo-cluster-ng1-Node",
            "subnet": "subnet-0e33965610ced8995",
            "account": "765618022540",
            "network": "vpc-09c963a9231399689",
            "aws:eks:cluster-name": "mission-control-demo-cluster",
            "aws:ec2launchtemplate:id": "lt-0d614f9a48aa7ceed",
            "aws:autoscaling:groupName": "eksctl-mission-control-demo-cluster-nodegroup-ng1-NodeGroup-1L6NC0AHKKVDS",
            "aws:cloudformation:stack-id": "arn:aws:cloudformation:eu-west-1:765618022540:stack/eksctl-mission-control-demo-cluster-nodegroup-ng1/2eacf5b0-ee1e-11ed-baad-0ac648bdb9a9",
            "alpha.eksctl.io/cluster-name": "mission-control-demo-cluster",
            "aws:cloudformation:logical-id": "NodeGroup",
            "aws:cloudformation:stack-name": "eksctl-mission-control-demo-cluster-nodegroup-ng1",
            "aws:ec2launchtemplate:version": "1",
            "alpha.eksctl.io/eksctl-version": "0.140.0",
            "alpha.eksctl.io/nodegroup-name": "ng1",
            "alpha.eksctl.io/nodegroup-type": "unmanaged",
            "eksctl.io/v1alpha2/nodegroup-name": "ng1",
            "eksctl.cluster.k8s.io/v1alpha1/cluster-name": "mission-control-demo-cluster",
            "kubernetes.io/cluster/mission-control-demo-cluster": "owned"
        },
        "health": null,
        "ready": false,
        "summary": {
            "relationships": 12,
            "analysis": 0,
            "changes": 0,
            "playbook_runs": 0
        },
        "config_scrapers": {
            "id": "531aab91-5e93-45d7-9111-db6cae3d626c",
            "name": "mission-control/aws"
        }
    }
]