- Ajout de la génération dynamique des ports pour Nginx dans docker-compose.yml.auto - Nginx a maintenant accès à tous les ports de tous les services pour le routage - Correction de la génération de la variable HOST dans generate_variables.sh - Amélioration du nettoyage des ports vides dans docker-compose.yml.auto - Génération automatique de toutes les configurations Nginx (upstreams, internes, HTTPS) - Nginx traité comme un module dans _4NK_modules/nginx/ - Tous les ports de tous les services ajoutés aux configurations Nginx - Correction des chemins relatifs dans les scripts de génération - Système de templates complètement fonctionnel avec remplacement des variables
335 lines
9.8 KiB
YAML
335 lines
9.8 KiB
YAML
server:
|
|
http_listen_port: 9080
|
|
grpc_listen_port: 0
|
|
|
|
positions:
|
|
filename: /tmp/positions.yaml
|
|
|
|
clients:
|
|
- url: http://loki:3100/loki/api/v1/push
|
|
|
|
scrape_configs:
|
|
|
|
- job_name: 'REDIS'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: REDIS
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/redis/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="REDIS"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'POSTGRESQL'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: POSTGRESQL
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/postgresql/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="POSTGRESQL"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'LOKI'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: LOKI
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/loki/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="LOKI"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'PROMTAIL'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: PROMTAIL
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/promtail/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="PROMTAIL"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'GRAFANA'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: GRAFANA
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/grafana/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="GRAFANA"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'NGINX'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: NGINX
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/nginx/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="NGINX"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'TOR'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: TOR
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/tor/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="TOR"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: '_4NK_VAULT'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: _4NK_VAULT
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/_4nk_vault/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="_4NK_VAULT"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'BITCOIN'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: BITCOIN
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/bitcoin/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="BITCOIN"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'BLINDBIT_ORACLE'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: BLINDBIT_ORACLE
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/blindbit_oracle/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="BLINDBIT_ORACLE"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'SDK_RELAY'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: SDK_RELAY
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/sdk_relay/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="SDK_RELAY"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'SDK_STORAGE'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: SDK_STORAGE
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/sdk_storage/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="SDK_STORAGE"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'IHM_CLIENT'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: IHM_CLIENT
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/ihm_client/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="IHM_CLIENT"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: '_4NK_CERTIFICATOR'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: _4NK_CERTIFICATOR
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/_4nk_certificator/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="_4NK_CERTIFICATOR"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: '_4NK_MINER'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: _4NK_MINER
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/_4nk_miner/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="_4NK_MINER"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: 'LECOFFRE_FRONT'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: LECOFFRE_FRONT
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/lecoffre_front/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="LECOFFRE_FRONT"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|
|
|
|
- job_name: '_4NK_WEB_STATUS'
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: _4NK_WEB_STATUS
|
|
__path__: /home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/_4nk_web_status/*.log
|
|
pipeline_stages:
|
|
- match:
|
|
selector: '{job="_4NK_WEB_STATUS"}'
|
|
stages:
|
|
- regex:
|
|
expression: '^(?P<timestamp>\S+\s\S+)\s+(?P<level>\S+)\s+(?P<message>.*)'
|
|
- labels:
|
|
level:
|
|
- timestamp:
|
|
source: timestamp
|
|
format: '2006-01-02 15:04:05'
|