mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2026-01-19 07:59:33 +00:00
update readme & action
This commit is contained in:
parent
2bf08a3575
commit
101c1342ee
2 changed files with 38 additions and 29 deletions
14
.github/workflows/action.yml
vendored
14
.github/workflows/action.yml
vendored
|
|
@ -1,11 +1,11 @@
|
|||
name: simple test
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
|
||||
name: deploy
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
|
||||
lint:
|
||||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
@ -16,9 +16,9 @@ jobs:
|
|||
severity: "warning, error"
|
||||
|
||||
test:
|
||||
name: test
|
||||
needs: lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: deploy with sh script
|
||||
run: sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" ""
|
||||
|
|
|
|||
53
README.md
53
README.md
|
|
@ -1,50 +1,59 @@
|
|||
# Grafana-Mikrotik
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
[](https://liberapay.com/~1772367/donate)
|
||||
|
||||
Grafana dashboard for Mikrotik/routerOS. [prometheus/snmp_exporter](https://github.com/prometheus/snmp_exporter)
|
||||
-----------
|
||||
|
||||
| | ver. |
|
||||
|---|---|
|
||||
| snmp_exporter | `>=0.20.0` |
|
||||
| Grafana | `>=8.1.7` |
|
||||
## 🐳 Deploy with docker-compose
|
||||
## 🐳 Deploy with docker-compose
|
||||
|
||||
### deploy with sh script
|
||||
### Deploy with sh script
|
||||
|
||||
```console
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" "" --config
|
||||
```
|
||||
> You can also pass some arguments to script to set some these options:
|
||||
>
|
||||
> --config: change the user and password to grafana and specify the mikrotik IP address
|
||||
>
|
||||
> stop: stop docker containers
|
||||
>
|
||||
> --help
|
||||
>
|
||||
>For example:
|
||||
>
|
||||
> sh run.sh --config
|
||||
|
||||
```console
|
||||
You can also pass some arguments to script to set some these options:
|
||||
|
||||
--config: change the user and password to grafana and specify the mikrotik IP address
|
||||
|
||||
stop: stop docker containers
|
||||
|
||||
--help
|
||||
```
|
||||
|
||||
For example:
|
||||
|
||||
```console
|
||||
sh run.sh --config
|
||||
```
|
||||
|
||||
[](https://asciinema.org/a/nOhuc7LvI6bRWbg7dcvqFQ4Kc)
|
||||
|
||||
### deploy with docker-compose manual
|
||||
### deploy with docker-compose manual
|
||||
|
||||
1.Change targets ip (192.168.88.1) into file prometheus/prometheus.yml
|
||||
2.Run
|
||||
|
||||
1. Change targets ip (192.168.88.1) into file prometheus/prometheus.yml
|
||||
2. Run
|
||||
```console
|
||||
docker-compose up -d
|
||||
```
|
||||
3. Open [localhost:3000](http://localhost:3000)
|
||||
|
||||
3.Open [localhost:3000](http://localhost:3000)
|
||||
|
||||
Grafana login: admin, password: mikrotik
|
||||
|
||||
If you want to change the credentials, then edit the ".env" file
|
||||
|
||||
-----------
|
||||
|
||||
## Manual deploy
|
||||
|
||||
1.add into prometheus.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue