Cov txheej txheem:

Kuv yuav ua li cas thiaj pab tau Stackdriver logging?
Kuv yuav ua li cas thiaj pab tau Stackdriver logging?

Video: Kuv yuav ua li cas thiaj pab tau Stackdriver logging?

Video: Kuv yuav ua li cas thiaj pab tau Stackdriver logging?
Video: Ntsaim vaj - Muaj poj niam lawm ua tsis tau li cas ( Official MV ) Nkauj tawm tshiab 2020 2024, Kaum ib hlis
Anonim

Enabling Logging

  1. Hauv Huab Console, mus rau Kubernetes Cav> Kubernetes pawg nplooj ntawv: Mus rau Kubernetes pawg.
  2. Nyem Tsim pawg.
  3. Configure pawg raws li xav tau.
  4. Nyem Advanced xaiv. Nyob rau hauv seem Ntxiv nta, pab kom Enable Stackdriver Logging kev pabcuam.
  5. Nyem Tsim.

Ua raws li qhov xav tau, Stackdriver logging yog dab tsi?

Stackdriver Logging tso cai rau koj khaws, tshawb nrhiav, txheeb xyuas, saib xyuas, thiab ceeb toom rau log cov ntaub ntawv thiab cov xwm txheej los ntawm Google Huab Platform and Amazon Web Services (AWS). Stackdriver Logging yog ib qho kev tswj xyuas tag nrho uas ua tau raws li qhov ntsuas thiab tuaj yeem nkag mus rau daim ntawv thov thiab qhov system log cov ntaub ntawv los ntawm ntau txhiab tus VMs.

Tsis tas li ntawd, Stackdriver yog dab tsi hauv GCP? Google Stackdriver yog ib qho kev saib xyuas uas muab cov pab pawg IT nrog cov ntaub ntawv ua tau zoo txog cov ntawv thov thiab cov tshuab virtual khiav ntawm Google Cloud Platform thiab Amazon Web Services pej xeem huab. Nws yog raws li sau tseg, qhib qhov chaw daemon uas sau cov kab ke thiab cov ntawv thov kev ntsuas kev ua tau zoo.

Ua raws li qhov no, Kuv yuav saib Google Cloud cav li cas?

Saib cov cav

  1. Hauv Cloud Console, mus rau nplooj ntawv sau npe. Mus rau nplooj ntawv sau npe.
  2. Thaum nyob hauv Logs Viewer, xaiv thiab lim koj cov peev txheej los ntawm thawj daim ntawv teev npe.
  3. Los ntawm Daim Ntawv Teev Npe Tag Nrho, xaiv compute.googleapis.com/activity_log kom pom Compute Engine cov cav ua haujlwm.

Kubernetes cav mus qhov twg?

Thaum lub thawv khiav mus Kubernetes sau nws cov ntaub ntawv mus stdout los yog stderr kwj, lub thawv cav kwj lawv mus rau kaw lus driver configured nyob rau hauv Kubernetes . Feem ntau, cov no log yuav xaus rau hauv /var/ log /containers directory ntawm koj tus tswv tsev.

Pom zoo: