Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 932 Bytes

File metadata and controls

37 lines (19 loc) · 932 Bytes

Makefile

Makefiles are used to help decide which parts of a large program need to be recompiled.

Make can be installed from here (Optional)*

After installing Prometheus, Grafana & Loki you can fetch logs following the below steps:

  1. Run in terminal:

     kubectl get svc - grafana
    
  2. Copy dns name & run in the browser

  3. Add id & pass in the dashboard

    1. fetch pass in form of secret key using:

        kubectl get secret --namespace <name> grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
      
  4. Add data source -> loki by replacing url with -

     http://loki:3100
    
  5. Click on Explore -> data source

  6. Select Loki

  7. Click on type -> choose app

  8. Click on name -> choose to fetch logs from

  9. Run query

Conclusion

logs fetched successfully using loki of all deployed pods, service.