From 5b3213838b092a7681c7ebb1033c405fe163bbea Mon Sep 17 00:00:00 2001 From: IgorKha Date: Tue, 21 Jun 2022 21:09:02 +0300 Subject: [PATCH] small improvements --- prometheus/prometheus.yml | 11 ++++++----- run.sh | 6 +++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 48426de..7f4faf7 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -28,14 +28,15 @@ scrape_configs: - job_name: 'prometheus' # Override the global default and scrape targets from this job every 5 seconds. - scrape_interval: 5s - scrape_timeout: 5s - + scrape_interval: 10s + scrape_timeout: 10s + tls_config: + insecure_skip_verify: true # metrics_path defaults to '/metrics' # scheme defaults to 'http'. - static_configs: - - targets: ['localhost:9090'] + #static_configs: + #- targets: ['localhost:9090'] - job_name: Mikrotik static_configs: diff --git a/run.sh b/run.sh index 7ee338b..1eb6ed8 100755 --- a/run.sh +++ b/run.sh @@ -202,9 +202,13 @@ main() { #? init if [[ -d "./${REPO}" ]]; then ENV_FILE=${REPO}/.env + ENV_FILE_GF=${REPO}/.grafana + ENV_FILE_PROMETHEUS=${REPO}/.prometheus elif [[ ! -e ${ENV_FILE} ]]; then clone_git - ENV_FILE=${REPO}/.env ; + ENV_FILE=${REPO}/.env + ENV_FILE_GF=${REPO}/.grafana + ENV_FILE_PROMETHEUS=${REPO}/.prometheus fi router_ip