Skip to content
Snippets Groups Projects
monitoring.md 1.15 KiB
Newer Older
  • Learn to ignore specific revisions
  • Bastien DUMONT's avatar
    Bastien DUMONT committed
    # Monitoring
    
    
    Hugo's avatar
    Hugo committed
    All logs printed by the Proxy are read and translated into statistics on a grafana dashboard.
    
    
    :::info Grafana
    [scaleway monitoring](https://grafana.self-data.alpha.grandlyon.com/)
    
    Hugo's avatar
    Hugo committed
    
    
    [production address](https://oauth-logs.cozycloud.cc/d/xSRhz8fMk/cozy-oauth-proxy?orgId=1&refresh=5s)
    :::
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    
    
    This monitoring system allow the team to parse more easily the cozy-stack logs when something goes wrong. For instance, test konnector or check from the proxy if an issue was coming from Enedis or Grdf.
    
    Hugo's avatar
    Hugo committed
    
    
    Learn more about how it works [here](https://forge.grandlyon.com/web-et-numerique/factory/llle_project/logs-monitoring).
    
    :::warning High volume
    The service parses a very high amount of logs, most of all when debugging an instance. To limit our disk usage we tend to stop the service when not needed.
    Just type docker-compose down to stop it in monitoring/logs-monitoring. The docker volume will be persisted.
    :::
    
    
    To easily plug loki on a specific instance:
    
    - Click on configuration and data sources
    - Add data sources
    - Find Loki and type the loki url http://loki:3100
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    - In the query builder select the container "easy-cozy" then add |= "domain=[specific-instance]"