How to verify the project logging stack installation for multi-tenant logging

You must wait for the Project’s logging stack HelmReleases to deploy before configuring or using the Project-level logging features, including multi-tenancy:

Run the following commands on the management cluster:

  1. Determine the namespace of the workspace that your project is in. You can use the dkp get workspaces command to see the list of workspace names and their corresponding namespaces.

    dkp get workspaces
    CODE

    Copy the value under the NAMESPACE column for your workspace.

  2. Export the WORKSPACE_NAMESPACE variable:

    export WORKSPACE_NAMESPACE=<WORKSPACE_NAMESPACE>
    CODE
  3. Execute the following command to get the namespace of your project

    kubectl get projects -n ${WORKSPACE_NAMESPACE}
    CODE

    Copy the value under PROJECT NAMESPACE column for your project. This may NOT be identical to the Display Name of the Project.

  4. Export the PROJECT_NAMESPACE variable:

    export PROJECT_NAMESPACE=<PROJECT_NAMESPACE>
    CODE

    Run the following commands on the managed or attached cluster. For this, ensure you switch to the correct context or kubeconfig of the cluster for the following kubectl commands:

  5. Check the deployment status using this command on the attached cluster:

    kubectl get helmreleases -n ${PROJECT_NAMESPACE}
    CODE

    NOTE: It may take some time for these changes to take effect, based on the duration configured for the Flux GitRepository reconciliation.
    When successfully deployed, you will see output that includes the following HelmReleases:

    NAMESPACE              NAME                       READY   STATUS                             AGE
    ${PROJECT_NAMESPACE}   project-grafana-logging    True    Release reconciliation succeeded   15m
    ${PROJECT_NAMESPACE}   project-grafana-loki       True    Release reconciliation succeeded   11m
    CODE

Then, you can View Project Log Data within multi-tenant logging.