K8sSummary: NamespaceSummary
  • 06 Oct 2024
  • 6 Minutes to read
  • Contributors
  • Dark
    Light

K8sSummary: NamespaceSummary

  • Dark
    Light

Article summary

This model describes summary information about a namespace

Example:

{
    "metadata": {
        "id": "568490d7-9f0e-41ad-b416-8392056cb455",
        "name": "real-theory-staging",
        "clusterId": "f99e055f-b35d-208b-63b1-f4222b80151a",
        "clusterName": "realtheory-cluster-01",
        "owners": null,
        "timestamp": "2024-07-17T20:15:15.333644Z"
    },
    "status": "Active",
    "properties": {
        "cloud.provider": "Azure"
    },
    "age": "7d20h",
    "manifest": {
        "serviceCount": 69,
        "deploymentCount": 69,
        "replicaSetCount": 233,
        "daemonSetCount": 0,
        "statefulSetCount": 0,
        "jobCount": 0,
        "cronJobCount": 0,
        "podCount": 0,
        "podReadyCount": 0,
        "containerCount": 0,
        "containerReadyCount": 0
    },
    "metrics": {
       "cpuUsage": 2777,
       "cpuRequest": 21150,
       "cpuLimit": 0,
       "cpuPercentage": 13.130024,
       "memoryUsage": 34868896,
       "memoryRequest": 41287680,
       "memoryLimit": 0,
       "memoryPercentage": 84.453514,
       "rxUsage": 0,
       "rxErrors": 0,
       "txUsage": 0,
       "txErrors": 0
    },
    "cost": {
        "totalCost": {
            "lastHour": 0.77690307,
            "lastHourCoverage": "1h/1h",
            "lastDay": 18.64024969,
            "lastDayCoverage": "24h/24h",
            "lastWeek": 125.19581753,
            "lastWeekCoverage": "7d/7d",
            "lastMonth": 262.43740434,
            "lastMonthCoverage": "15d/31d",
            "lastYear": 262.43740434,
            "lastYearCoverage": "15d/365d"
        },
        "idleCost": {
            "lastHour": 0.55496547,
            "lastHourCoverage": "1h/1h",
            "lastDay": 13.2985092,
            "lastDayCoverage": "24h/24h",
            "lastWeek": 90.46980371,
            "lastWeekCoverage": "7d/7d",
            "lastMonth": 189.95284772,
            "lastMonthCoverage": "15d/31d",
            "lastYear": 189.95284772,
            "lastYearCoverage": "15d/365d"
        },
        "cpuUtilization": 14.33,
        "memoryUtilization": 84.94,
        "utilization": 49.63,
        "effectiveUtilization": 82.72,
        "efficiency": 22.8
    },
    "synopsis": {
        "healthScore": 100,
        "performanceScore": 90,
        "governanceScore": 80,
        "costScore": 100,
        "aggregateScores": {
            "health": 100,
            "performance": 10,
            "governance": 70,
            "cost": 30
        },
        "alertCount": 3,
        "aggregateAlerts": {
            "critical": 132,
            "high": 198,
            "normal": 338,
            "total": 668
        },
        "recommendationCount": 0,
        "aggregateRecommendations": {
            "high": 0,
            "medium": 0,
            "low": 6,
            "total": 6
        }
    }
}

where:

where:

  • metadata
    • id: Represents the ID of the namespace.
    • name: Represents the name of the namespace.
    • clusterId: Represents the cluster linked to the namespace.
    • clusterName: Represents the name of the cluster linked to the namespace.
    • owners: Represents a list of owner records linked to the namespace.
    • timestamp: Represents the timestamp of the record.
  • status: Represents the current status of the namespace.
  • age: Represents the length of time since the namespace was created.
  • properties
    • cloud.provider: Represents the name of the cloud provider where the cluster is hosted.
  • manifest
    • serviceCount: Indicates the number of Kubernetes services deployed within the namespace.
    • deploymentCount: Indicates the number of Kubernetes deployments deployed within the namespace.
    • replicaSetCount: Indicates the number of Kubernetes replica sets deployed within the namespace.
    • daemonSetCount: Indicates the number of Kubernetes daemon sets deployed within the namespace.
    • statefulSetCount: Indicates the number of Kubernetes stateful sets deployed within the namespace.
    • jobCount: Indicates the number of Kubernetes jobs deployed within the namespace.
    • cronJobCount: Indicates the number of Kubernetes crom jobs deployed within the namespace.
    • podCount: Indicates the number of Kubernetes pods deployed within the namespace.
    • podReadyCount: Indicates the number of Kubernetes pods currently ready in the namespace
    • containerCount: Indicates the number of containers deployed within the namespace.
    • containerReadyCount: Indicates the number of containers currently ready in the namespace.
  • metrics
    • cpuUsage: Indicates the current CPU usage of the namespace in millicores (m).
    • cpuRequest: Represents the amount of allocatable CPU within the namespace in millicores (m).
    • cpuLimit: Represents the total CPU capacity of the namespace in millicores (m).
    • cpuPercentage: Indicates the current CPU usage percentage of the namespace.
    • memoryUsage: Indicates the current memory usage of the namespace in kibibytes (KiB).
    • memoryRequest: Represents the amount of allocatable memory within the namespace in kibibytes (KiB).
    • memoryLimit: Represents the total memory capacity of the namespace in kibibytes (KiB).
    • memoryPercentage: Indicates the current memory usage percentage of the namespace.
    • rxUsage: Indicates the cumulative count of data received by the namespace in kibibytes (KiB).
    • rxErrors: Indicates the cumulative count of received errors encountered by the namespace in kibibytes (KiB).
    • txUsage: Indicates the cumulative count of data transmitted by the namespace in kibibytes (KiB).
    • txErrors: Indicates the cumulative count of transmit errors encountered by the namespace in kibibytes (KiB).
  • cost
    • totalCost
      • lastHour: Indicates the total cost of the namespace over the last hour in USD.
      • lastHourCoverage: Indicates the cost coverage over the last hour.
      • lastDay: Indicates the total cost of the namespace over the last 24 hours in USD.
      • lastDayCoverage: Indicates the cost coverage over the last 24 hours.
      • lastWeek: Indicates the total cost of the namespace over the last 7 days in USD.
      • lastWeekCoverage: Indicates the cost coverage over the last 7 days.
      • lastMonth: Indicates the total cost of the namespace over the last 31 days in USD.
      • lastMonthCoverage: Indicates the cost coverage over the last 31 days.
      • lastYear: Indicates the total cost of the namespace over the last 365 days in USD.
      • lastYearCoverge: Indicates the cost coverage over the last 365 days.
    • idleCost
      • lastHour: Indicates the non-utilized cost of the namespace over the last hour in USD.
      • lastHourCoverage: Indicates the non-utilized cost coverage over the last hour.
      • lastDay: Indicates the non-utilized cost of the namespace over the last 24 hours in USD.
      • lastDayCoverage: Indicates the non-utilized cost coverage over the last 24 hours.
      • lastWeek: Indicates the non-utilized cost of the namespace over the last 7 days in USD.
      • lastWeekCoverage: Indicates the non-utilized cost coverage over the last 7 days.
      • lastMonth: Indicates the non-utilized cost of the namespace over the last 31 days in USD.
      • lastMonthCoverage: Indicates the non-utilized cost coverage over the last 31 days.
      • lastYear: Indicates the non-utilized cost of the namespace over the last 365 days in USD.
      • lastYearCoverge: Indicates the non-utilized cost coverage over the last 365 days.
    • cpuUtilization: Indicates the namespace's current CPU utilization.
    • memoryUtilization: Indicates the namespace's current memory utilization.
    • utilization: Indicates the namespace's overall utilization.
    • effectiveUtilization: Indicates the namespace's effective utilization, which is scaled version of overall utilization.
    • efficency: Indicates the namespace's overall resources efficiency, which is cost weighted version of utilization that reflects that CPU, GPU and memory all cost different amounts.
  • synopsis
    • healthScore: Denotes the namespace's individual health score, rated on a scale from 0 to 100, with 0 being the worst and 100 being the best.
    • performanceScore: Denotes the namespace's individual performance score, rated on a scale from 0 to 100, with 0 being the worst and 100 being the best.
    • costScore: Denotes the namespace's individual cost score, rated on a scale from 0 to 100, with 0 being the worst and 100 being the best.
    • governanceScore: Denotes the namespace's individual governance score, rated on a scale from 0 to 100, with 0 being the worst and 100 being the best.
    • aggregatedScores
      • healthScore: Denotes the namespace's overall health score, an aggregate of the scores of all objects within the namespace, rated on a scale from 0 to 100, where 0 is the worst and 100 is the best.
      • performanceScore: Denotes the namespace's overall performance score, an aggregate of the scores of all objects within the namespace, rated on a scale from 0 to 100, where 0 is the worst and 100 is the best.
      • costScore: Denotes the namespace's overall cost score, an aggregate of the scores of all objects within the namespace, rated on a scale from 0 to 100, where 0 is the worst and 100 is the best.
      • governanceScore: Denotes the namespace's overall governance score, an aggregate of the scores of all objects within the namespace, rated on a scale from 0 to 100, where 0 is the worst and 100 is the best.
    • alertCount: Shows the total number of alerts linked to the namespace.
    • aggregatedAlerts
      • critical: Shows the total number of critical alerts associated with the namespace and all objects within it.
      • high: Shows the total number of high alerts associated with the namespace and all objects within it.
      • normal: Shows the total number of normal alerts associated with the namespace and all objects within it.
      • total: Shows the overall number of alerts, including critical, high, and normal, associated with the namespace and all objects within it.
    • recommendationCount: Shows the total number of recommendations linked to the namespace.
    • aggregatedRecommendations
      • high: Shows the total number of high recommendations associated with the namespace and all objects within it.
      • medium: Shows the total number of medium recommendations associated with the namespace and all objects within it.
      • low: Shows the total number of low recommendations associated with the namespace and all objects within it.
      • total: Shows the overall number of recommendations, including nigh, medium, and low, associated with the namespace and all objects within it.

Was this article helpful?