Open bonsfi opened 4 years ago
The guide uses an official grafana docker image, maybe MacOS not supported, you need to read documentation.
You can print the logs from output:
sudo docker logs grafana
sudo docker logs grafana
Password:
GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later
mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied
thanks for your help!
El jue., 18 jun. 2020 a las 10:21, masknetgoal634 (notifications@github.com) escribió:
Can you print the logs from output: sudo docker logs grafana
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-645861839, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VEYIWGPOEPB5L2NA3PTRXHFANANCNFSM4OA56DTA .
Try this please:
sudo chown -R 472:472 grafana/*
Thanks for your help and kindness :)
MacBook-Pro-de-eduardo:etc eduardoagut$ sudo chown -R 472:472 grafana/*
Password:
MacBook-Pro-de-eduardo:etc eduardoagut$ sudo docker run -dit \
--restart always \ --volume $(pwd)/grafana:/var/lib/grafana \ --volume $(pwd)/grafana/provisioning:/etc/grafana/provisioning \ --volume $(pwd)/grafana/custom.ini:/etc/grafana/grafana.ini \ --user 472 \ --network=host \ --name grafana \ -p 3000:3000 grafana/grafana
docker: Error response from daemon: Conflict. The container name "/grafana" is already in use by container "d635b28061e4b5bc849caad41b05f6afc7be938063cacc50741b0f2b06ffcadf". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
The issue is that I get site can't be reached when I run http://localhost:3000
El jue., 18 jun. 2020 a las 14:11, masknetgoal634 (notifications@github.com) escribió:
Try this please:
sudo chown -R 472:472 grafana/*
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-645977111, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VE6LXM5FB63Z6WYPGOTRXIAA3ANCNFSM4OA56DTA .
remove docker container and run again:
sudo docker stop grafana
sudo docker rm grafana
root@ubuntu-4gb-fsn1-1:~# sudo ufw status verbose
Status: inactive
MacBook-Pro-de-eduardo:etc eduardoagut$ sudo docker stop grafana
Password:
grafana
MacBook-Pro-de-eduardo:etc eduardoagut$ sudo docker rm grafana
grafana
MacBook-Pro-de-eduardo:etc eduardoagut$ ls
grafana prometheus
MacBook-Pro-de-eduardo:etc eduardoagut$ sudo docker run -dit \
--restart always \ --volume $(pwd)/grafana:/var/lib/grafana \ --volume $(pwd)/grafana/provisioning:/etc/grafana/provisioning \ --volume $(pwd)/grafana/custom.ini:/etc/grafana/grafana.ini \ --user 472 \ --network=host \ --name grafana \ -p 3000:3000 grafana/grafana
WARNING: Published ports are discarded when using host network mode
cff70b4227807cc622899d061477154eb6fd003804fb84357564516c7e5a676f
El jue., 18 jun. 2020 a las 17:02, masknetgoal634 (notifications@github.com) escribió:
remove docker container and run again:
sudo docker stop grafana sudo docker rm grafana
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-646077885, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VEZIC4PPNVXF52ESZULRXIT7VANCNFSM4OA56DTA .
I tried
root@ubuntu-4gb-fsn1-1:~# sudo ufw allow 9333
Rules updated
Rules updated (v6)
root@ubuntu-4gb-fsn1-1:~# sudo ufw allow 3030
Rules updated
Rules updated (v6)
then stop and rm grafana and then run grafana again, but still not reachable for localhost3000
thanks a lot for your help!
El jue., 18 jun. 2020 a las 17:23, Eduardo Agut (eduardagutb@gmail.com) escribió:
- Just to make sure it's correct, I did not open ports on my server because I have:
root@ubuntu-4gb-fsn1-1:~# sudo ufw status verbose
Status: inactive
- On my mac run the code below but still not working in localhost 3000.
MacBook-Pro-de-eduardo:etc eduardoagut$ sudo docker stop grafana
Password:
grafana
MacBook-Pro-de-eduardo:etc eduardoagut$ sudo docker rm grafana
grafana
MacBook-Pro-de-eduardo:etc eduardoagut$ ls
grafana prometheus
MacBook-Pro-de-eduardo:etc eduardoagut$ sudo docker run -dit \
--restart always \ --volume $(pwd)/grafana:/var/lib/grafana \ --volume $(pwd)/grafana/provisioning:/etc/grafana/provisioning \ --volume $(pwd)/grafana/custom.ini:/etc/grafana/grafana.ini \ --user 472 \ --network=host \ --name grafana \ -p 3000:3000 grafana/grafana
WARNING: Published ports are discarded when using host network mode
cff70b4227807cc622899d061477154eb6fd003804fb84357564516c7e5a676f
El jue., 18 jun. 2020 a las 17:02, masknetgoal634 (< notifications@github.com>) escribió:
remove docker container and run again:
sudo docker stop grafana sudo docker rm grafana
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-646077885, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VEZIC4PPNVXF52ESZULRXIT7VANCNFSM4OA56DTA .
Anyway you can read the logs, it will help to solve the issue
Thanks!
El jue., 18 jun. 2020 18:40, masknetgoal634 notifications@github.com escribió:
Anyway you can read the logs, it will help to solve the issue
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-646154943, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VE226W4OIYEECJQ57HLRXI7P5ANCNFSM4OA56DTA .
Don't give up. What your logs looks like?
you mean on the node? when I type nearup logs I get a very long answer? I get: https://pastebin.com/vEvEbYUC
El vie., 19 jun. 2020 a las 5:50, masknetgoal634 (notifications@github.com) escribió:
Don't give up. What your logs looks like?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-646419930, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VEYUBYNTSUIXDZIAS4LRXLN7PANCNFSM4OA56DTA .
also, before running your guide I installed prometheus and grafana on my node server. Could that be the problem?
I can access grafana if I do: IPFromMyServer:3030
El vie., 19 jun. 2020 a las 13:29, Eduardo Agut (eduardagutb@gmail.com) escribió:
you mean on the node? when I type nearup logs I get a very long answer? I get: https://pastebin.com/vEvEbYUC
El vie., 19 jun. 2020 a las 5:50, masknetgoal634 (< notifications@github.com>) escribió:
Don't give up. What your logs looks like?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-646419930, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VEYUBYNTSUIXDZIAS4LRXLN7PANCNFSM4OA56DTA .
You can but usually allocate a separate server/pc for monitoring
maybe I did something wrong with yml file?
my ip is 78.46.242.124
job=<job_name>
to any timeseriesscraped from this config.
job_name: 'prometheus'
static_configs:
job_name: node
scrape_interval: 5s
static_configs:
job_name: near-exporter
scrape_interval: 15s
static_configs:
job_name: near-node
scrape_interval: 15s
static_configs:
El vie., 19 jun. 2020 a las 14:22, masknetgoal634 (notifications@github.com) escribió:
You can but usually allocate a separate server/pc for monitoring
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-646606360, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VEYYRX6MEA45UZNJSG3RXNJ77ANCNFSM4OA56DTA .
The config seems good.
Paste here output from:
sudo docker logs grafana
GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later
mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied
this message gets repeated like 50 times
thanks!
El vie., 19 jun. 2020 a las 19:04, masknetgoal634 (notifications@github.com) escribió:
The config seems good. Paste here output from: sudo docker logs grafana
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-646759445, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VE7YQT5FVJ6YH3LH7G3RXOLDTANCNFSM4OA56DTA .
I have the same issue on my mac, I think something with grafana... I will let you know if i resolve it.
That would be great.
El lun., 22 jun. 2020 13:49, masknetgoal634 notifications@github.com escribió:
I have the same issue on my mac, I think something with grafana... I will let you know if i resolve it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-647466823, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VE73YPRH7T4BIQPJFQ3RX5ALFANCNFSM4OA56DTA .
I tried to do it from scratch and got this warning. Is is something important?
root@ubuntu-4gb-fsn1-1:~/near-prometheus-exporter# sudo docker run -dit \
--restart always \ --name near-exporter \ --network=host \ -p 9333:9333 \ near-prometheus-exporter:latest /dist/main -accountId nearcola
WARNING: Published ports are discarded when using host network mode
30ea308da055661b5c13a86d7e1a8893581f8fa990ced17e55d9fdbe4817492b
El lun., 22 jun. 2020 a las 16:05, Eduardo Agut (eduardagutb@gmail.com) escribió:
That would be great.
El lun., 22 jun. 2020 13:49, masknetgoal634 notifications@github.com escribió:
I have the same issue on my mac, I think something with grafana... I will let you know if i resolve it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/masknetgoal634/near-prometheus-exporter/issues/4#issuecomment-647466823, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA7VE73YPRH7T4BIQPJFQ3RX5ALFANCNFSM4OA56DTA .
I followed all the tutorial but after running on my mac the part to run grafana. I get "This site can’t be reached" on http://localhost:3000/. What could I be doing wrong?