Grafana, software ce mai buɗewa don bincike da sa ido

Game da Grafana

A talifi na gaba zamu kalli Grafana. Wannan shi ne nazari da saka idanu software. Buɗaɗɗen tushe ne, mai wadataccen fasali, mai iko, mai kyan gani, kuma mai iya fadadawa. Za mu iya gudanar da shi a kan Gnu / Linux, Windows da MacOS. Shin bayanan bincike na software, wanda ake amfani dashi a wasu sanannun shafuka kamar Stack Overflow, PayPal ko Uber.

Yana tallafawa tushen tushen buɗe 30 + da kuma tushen bayanan kasuwanci / tushen bayanai ciki har da MySQL, PostgreSQL, Graphite, Elasticsearch, OpenTSDB, Prometheus, da InfluxDB. Tare da za mu iya shiga cikin manyan kundin aiki na aiki a ainihin lokacin. Za mu iya duba, tuntuɓi, saita faɗakarwa da kuma samun bayanai kan ma'aunin awo.

Yana da mahimmanci a lura cewa Grafana yana ba da izinin ƙirƙirar kungiyoyi masu zaman kansu da yawa. Kowannensu yana da yanayin amfani da shi (masu gudanarwa, tushen bayanan, bangarori da masu amfani).

Babban halayen Grafana

Bangarorin Grafana

  • Za mu samu zane mai kyau don bayanan gani. Shafuka masu sauri suna da sassauƙa, tare da zaɓuɓɓuka da yawa.
  • Yana sanyawa a hannunmu bangarori masu ƙarfi da sake amfani dasu.
  • Es sosai extensible, zamu iya amfani da bangarori da yawa da kuma samfuran samfu a cikin ɗakin karatu na hukuma.
  • Zai sanya a hannunmu da gaskatawa ta hanyar LDAP, Google Auth, Grafana.com, da Github.
  • Da ƙarfi yana tallafawa haɗin gwiwa ta hanyar ba da dama musayar bayanai da allon bayanai tsakanin kungiyoyi.
  • A akwai demo kan layi saboda haka zaka iya gwada Grafana kafin girka shi a kwamfutarka.

Sanya Grafana akan Ubuntu 18.04

Zamu girka Grafana daga naka wuraren adana hukuma. Don haka zamu iya sabunta shi ta amfani da manajan kunshin tsoho. Da farko dai, kace hakan dole ne mu sanya curl a cikin tsarinmu. Nan gaba zamu bude tashar (Ctrl + Alt + T) kuma zamu rubuta kowane layin da ke gaba:

echo "deb https://packagecloud.io/grafana/stable/debian/ stretch main" | sudo tee -a /etc/apt/sources.list

curl https://packagecloud.io/gpg.key | sudo apt-key add -

sudo apt-get update

sudo apt-get install grafana

Wurin mahimman fayiloli

Bayan kammala girkawa a cikin Ubuntu, zamu sami damar samun mahimman fayiloli a cikin waɗannan wurare masu zuwa:

  • El fayil din binary za mu same shi a ciki / usr / sbin / grafana-uwar garken.
  • El rubutun Init.d za a samu a /etc/init.d/grafana-server.
  • Createirƙiri tsoho fayil (vars yanayi) a ciki / sauransu / tsoho / grafana-uwar garke.
  • Shigar da fayil din daidaitawa en /etc/grafana/grafana.ini.
  • Tsoho saitin kafa da log fayil en /var/log/grafana/grafana.log.
  • Tsoffin saituna saka wani sqlite3 db en /var/lib/grafana/grafana.db.
  • Da HTML / JS / CSS fayil da sauran fayilolin Grafana en / usr / share / grafana.

Fara Grafana

Gaba, za mu fara sabis. Da farko zamu fara duba idan wannan yana aiki sannan zamu bashi damar fara aiki kai tsaye a lokacin taya. Ta hanyar tsoho, aikin yana gudana azaman grafana mai amfani (halitta a lokacin aikin shigarwa) y saurari tashar HTTP 3000.

Nan gaba zamu ga hanyoyi biyu don fara saba:

Fara ta Systemd

Mun fara da bugawa a cikin m (Ctrl + Alt T):

systemctl daemon-reload

Muna ci gaba da fara aikin ta buga a cikin wannan tashar:

systemctl start grafana-server

systemctl status grafana-server

Idan wani yana buƙatar shi, kuna iya ƙarin sani game da yadda ake fara sabis ta wannan hanyar akan gidan yanar gizon aikin.

Fara ta init.d

service grafana-server start

service grafana-server status

sudo update-rc.d grafana-server defaults

Kuna iya samun ƙarin bayani game da yadda ake fara sabis ta wannan hanyar akan gidan yanar gizon aikin.

Shafin shiga

Da zarar an fara saba, za mu iya buɗe burauzar da muka fi so mu rubuta URL mai zuwa: http://direccion-IP:3000 o http://tu-dominio.com:3000 para samun damar haɗin yanar gizo. Wannan adireshin zai kai mu zuwa shafin shiga. Anan zamu iya amfani da takaddun shaidar mai amfani kamar sunan mai amfani: admin y kalmar sirri: admin.

Shiga Grafana

Bayan shiga, za mu sami damar rukunin gida, kamar yadda aka nuna a cikin hoton da ke ƙasa.

sourceara tushen tushe grafana

A wannan gaba, zamu buƙaci ƙara bayanai ko tushen bayanai. Za mu danna kan 'Sourceara tushen bayanai'. Misali, zamu kara bayanan MySQL. Za mu tantance sunan tushen bayanan, nau'in da sigogin haɗi. Sannan zamu danna Ajiye da Gwaji.

ƙirƙirar bayanan grafana

Shirin zai sanar da mu idan haɗin yanar gizon ya ci nasara, kamar yadda aka nuna a cikin hotunan hoto mai zuwa. Idan haɗin ya kasa, zamu iya tuntuɓar takardun kan haɗin MySQL cewa suna ba mu a kan gidan yanar gizon aikin kuma aiwatar da daidaitaccen tsari.

haɗin grafana Yayi

Daga Fuskar allo, za mu danna Sabuwar Panel don ƙara sabo. Da shi zamu iya ganin ma'aunin tushen bayanan mu.

Sabon grafana panel

Daga nan, zamu iya ƙara ƙarin hanyoyin bayanai, bangarori, gayyatar membobin ƙungiyar, shigar da aikace-aikace da ƙari don faɗaɗa ayyukan da aka saba, da dai sauransu. Don ƙarin bayani zaku iya tuntuɓar shafin gida na aikin ko kuma kai tsaye tuntuɓi takaddun hukuma.

A takaice, Grafana kyakkyawa ce ta software don nazari da lura real-lokaci data.


Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Wanda ke da alhakin bayanan: Miguel Ángel Gatón
  2. Manufar bayanan: Sarrafa SPAM, sarrafa sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

      Bilbo m

    »Analware da saka idanu software»

    Menene yake nazari kuma menene yake lura dashi? Na fahimta daga jadawalin cewa yana nazarin tsarin aiki da bayanan bayanan cibiyar sadarwa da kuma lura da lafiyar lafiyar tsarin aiki. Amma yana iya zama komai. Shin zan iya yin nazari da kuma lura da matsayin hannun jari a kasuwar hannun jari? To zai iya zama. Bayan karanta labarin, babu wanda zai ce a'a ko a'a.

    Tir da yadda kai masana kimiyyar kwamfuta suka bayyana kanka!

         Damian Amoedo m

      Basics na Grafana. Kuna iya bincika da kuma lura da bayanan da za a iya adana su a cikin hanyoyin da Grafana ya sami dama gare su. Ya bayyana gare ni bayan rubuta sakin layi na biyu cewa wannan ya bayyana. Saboda iyakokin sarari ban iya rubuta duk damar wannan shirin ba. Amma koyaushe zaku iya bincika gidan yanar gizon aikin inda zaku sami amsoshin da kuke nema.

      Ruben Cardenal m

    Ee, Grafana yana da kyau sosai kuma duk wannan. Amma, kamar kowane tsarin sa ido, ya fi kyau ko aiki (Ni da kaina, Nagios + Cacti tunda koyaushe), abin da ke da mahimmanci ba yawan zane-zane a kowane allo ba, amma sanin abin da kuke gani da yadda ake fassara shi gwargwadon yanayin aiki.