small improvements

This commit is contained in:
IgorKha 2022-06-21 21:09:02 +03:00
parent 4ad3af58e0
commit 5b3213838b
2 changed files with 11 additions and 6 deletions

View file

@ -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:

6
run.sh
View file

@ -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