mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2025-12-06 02:19:28 +00:00
small improvements
This commit is contained in:
parent
4ad3af58e0
commit
5b3213838b
2 changed files with 11 additions and 6 deletions
|
|
@ -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
6
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue