Skip to content
Snippets Groups Projects
Commit 76c8d4e4 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

fix typos, added monitoring query build

parent 9481fcae
Branches
Tags
No related merge requests found
Pipeline #20869 failed
......@@ -51,6 +51,13 @@ $ cd /root/easy-cozy
$ docker-compose exec cozy ./cozy instances debug --domain "[name].cozy.self-data.alpha.grandlyon.com" true
```
### List all instances
```bash
$ cd /root/easy-cozy
# cozy-stack instances ls
$ docker-compose exec cozy ./cozy instances ls
```
## Stack
......
......@@ -4,13 +4,10 @@ This section includes all configurations available for the stack.
## Configuration File
The configuration file of the stack is located at `.easy-cozy/cozystack/cozy.yml`. It can be edit in order to changes various parameters, smtp, logs ...
The stack's configuration file is located at `.easy-cozy/cozystack/cozy.yml`. It can be edited in order to changes various parameters, smtp, logs ...
## SMTP
### Install a specific version of an app
Modif the `cozy.yml` responsible for the configuration :
Modify the `cozy.yml` responsible for the configuration :
```yml
mail:
......@@ -32,13 +29,13 @@ mail:
skip_certificate_validation: false
```
According to cozy-stack issue: https://github.com/cozy/cozy-stack/issues/2009 you might need to change above configuration with :
!!! warning "known issue"
A known cozy-stack issue: [here](https://github.com/cozy/cozy-stack/issues/2009) causes you to have to above configuration with:
```yml
mail:
# mail smtp port - flags: --mail-port
port: 587
# disable mail tls - flags: --mail-disable-tls
# disable mail tls - flags: --mail-disable-tls
disable_tls: true
```
......
# Oops...
Sometime the stack is stuck when we reset several instances due to rabbit mq process. The following screen is then obtain when trying to access to an instance:
Sometime the stack get stucks when we reset several instances, overflowing our message broker rabbitmq. The following screen is then obtained when trying to access an instance:
![oops_error](/img/known_errors/oops_error.png)
On the server, we can see that the server is underwater by using "top" command:
![oops_error_1](/img/known_errors/oops_error_1.png)
To fix the issue you can just restart the service on the server with "docker-compose down / docker-compose up -d" in the easy-cozy folder:
To fix this issue, just restart the service on the server with "docker-compose down / docker-compose up -d" in the easy-cozy folder:
![oops_error_2](/img/known_errors/oops_error_2.png)
\ No newline at end of file
......@@ -5,7 +5,7 @@ Easy cozy project comes with 2 main scripts:
- create-instance.sh: used to create an instance for a user
- remove-instance.sh: used to remove an instance for a specific user
In addition of these scripts we have added custom scripts for some specific needs. All these scripts are available in the "admin_scripts" folder
In addition of these scripts we have added custom scripts for some specific needs. All these scripts are available in the "ecolyo-infa-scripts/admin_scripts" folder
## Scripts for instances
......
......@@ -3,8 +3,19 @@ All logs printed by the Proxy are read and translated into statistics on a grafa
!!! info "Grafana"
[scaleway monitoring](https://grafana.self-data.alpha.grandlyon.com/)
[production](https://oauth-logs.cozycloud.cc/d/xSRhz8fMk/cozy-oauth-proxy?orgId=1&refresh=5s)
[production address](https://oauth-logs.cozycloud.cc/d/xSRhz8fMk/cozy-oauth-proxy?orgId=1&refresh=5s)
Thanks to this monitoring system, the team is able to understand when something goes wrong with a konnector if the konnector or the proxy are to blame or if an issue was coming from Enedis or Grdf.
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.
Learn more about how it works [here](https://forge.grandlyon.com/web-et-numerique/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
- In the query builder select the container "easy-cozy" then add |= "domain=[specific-instance]"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment