Skip to content

Viveksati5143/Prometheus-Grafana-Loki-Installation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Easily Install Prometheus, Grafana & Loki and fetch logs using Loki

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published