Conversation
unfinished yet, still in a WIP state.
analytics/README.md
Outdated
| @@ -0,0 +1,18 @@ | |||
| Analytics container stops itself if it works correctly. | |||
|
|
|||
| Needed to add in 100_analytics_init.sql: | |||
There was a problem hiding this comment.
as the lines have been added to the script, maybe it is not useful to duplicate the content here ? just mentioning the scripts which are setting up the db (under datadir/analytics/db.entrypoints.d/ ?)
There was a problem hiding this comment.
if we load the extensions into the georchestra database, why not having the scripts directly mounted under /docker-entrypoint.initdb.d, or injected by the dedicated dockerfile, to avoid one manual operation ?
| # Publish in DB by batches | ||
| batch_size: 100 | ||
|
|
||
| timezone: "Indian/Kerguelen" |
There was a problem hiding this comment.
should it really be the default timezone ? :)
|
|
||
| database: | ||
| drivername: "postgresql" | ||
| host: "localhost" |
There was a problem hiding this comment.
in a docker context, this is weird to read "localhost"
| sp_access_logs_filter: | ||
| # Accept only access logs from Security proxy | ||
| type: filter | ||
| inputs: | ||
| - opentelemetry.logs | ||
| condition: | ||
| type: "vrl" | ||
| source: '.scope.name == "org.georchestra.security-proxy.accesslog"' | ||
| # source: match!(.scope.name, r'org.georchestra.*.accesslog') | ||
|
|
||
| gw_access_logs_filter: | ||
| # Accept only access logs from Gateway | ||
| type: filter | ||
| inputs: | ||
| - opentelemetry.logs | ||
| condition: | ||
| type: "vrl" | ||
| source: '.scope.name == "org.georchestra.gateway.accesslog" ' | ||
| # source: match!(.scope.name, r'org.georchestra.*.accesslog') |
There was a problem hiding this comment.
do we need both in this context ? maybe we could keep the sp_access_logs_filter commented out here, as we are using the gw
| "id": 'Geo2FranceDefault', | ||
| "description": '', | ||
| "label": 'Geo2France Default', |
| # environment: | ||
| # - POSTGRES_DB=analytics | ||
| # - POSTGRES_USER=tsdb | ||
| # - POSTGRES_PASSWORD=password |
There was a problem hiding this comment.
can be removed, as they are defined in the env file
No description provided.