Melihat log tugas pipeline

Setelah menentukan, membangun, dan menjalankan pipeline, Anda dapat melihat dan membuat kueri entri log untuk tugas pipeline dan tugas pipeline. Pelajari lebih lanjut entri log untuk Vertex AI API.

Fitur ini memiliki biaya yang terkait dengannya. Pelajari harga Cloud Logging lebih lanjut.

Melihat log Vertex AI untuk tugas pipeline

Gunakan petunjuk berikut untuk melihat log tugas Pipeline Vertex AI di Konsol Google Cloud atau Google Cloud CLI.

Konsol

  1. Aktifkan Cloud Logging API:

    Mengaktifkan API

  2. Di konsol Google Cloud, buka Logs Explorer.

    Buka Logs Explorer

  3. Pilih project Vertex AI yang ada di bagian atas halaman.

  4. Di Query builder, tambahkan kode berikut:

    • Resource: Pilih Tugas Vertex Pipelines. Pada dialog, pilih tugas Vertex AI Pipelines.
    • Log names: Di bagian Vertex AI, pilih aiplatform.googlapis.com/pipeline_job_events.
    • Tingkat keparahan: Pilih level log.
    • Rentang waktu: Pilih rentang preset atau buat rentang kustom.

gcloud

  1. Jalankan perintah berikut untuk mengaktifkan Cloud Logging API:

    gcloud services enable logging.googleapis.com
    
  2. Jalankan perintah gcloud logging read:

    Linux, macOS, atau Cloud Shell

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_events" \
        --limit=LIMIT
    

    Windows (PowerShell)

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_events" `
        --limit=LIMIT
    

    Windows (cmd.exe)

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_events" ^
        --limit=LIMIT
    
     

Melihat log Vertex AI untuk tugas pipeline

Gunakan petunjuk berikut untuk melihat log tugas Pipeline Vertex AI di Konsol Google Cloud atau Google Cloud CLI.

Konsol

  1. Aktifkan Cloud Logging API:

    Mengaktifkan API

  2. Di konsol Google Cloud, buka Logs Explorer.

    Buka Logs Explorer

  3. Pilih project Vertex AI yang ada di bagian atas halaman.

  4. Di Query builder, tambahkan kode berikut:

    • Resource: Pilih Tugas Vertex Pipelines. Pada dialog, pilih tugas Vertex AI Pipelines.
    • Log names: Di bagian Vertex AI, pilih aiplatform.googlapis.com/pipeline_job_task_events.
    • Tingkat keparahan: Pilih level log.
    • Rentang waktu: Pilih rentang preset atau buat rentang kustom.

gcloud

  1. Jalankan perintah berikut untuk mengaktifkan Cloud Logging API:

    gcloud services enable logging.googleapis.com
    
  2. Jalankan perintah gcloud logging read:

    Linux, macOS, atau Cloud Shell

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_task_events" \
        --limit=LIMIT
    

    Windows (PowerShell)

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_task_events" `
        --limit=LIMIT
    

    Windows (cmd.exe)

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_task_events" ^
        --limit=LIMIT
    
     

Langkah selanjutnya