Grafana+graphite Building Configuration steps

Source: Internet
Author: User
Tags grafana



Grafana+graphite Building Configuration steps


Download URL:


Http://grafana.org/download (select RPM package)


# rpm-i grafana-3.1.1-1470047149.x86_64.rpm


# serivce Grafana-server Start



URL Access: http://ip:3000 Default User name: admin Password: admin




Grafana and Graphite combined


Graphite and ICINGA2 construction, see additional documentation



After landing page--data sources--add Data source--config--name:graphite type:graphite--http settings--url http://ip (based on the previous graphite) Access:proxy (this place must choose proxy) Http Auth tick basic Auth lose username, password--save & Test



Panel production:


The process is relatively easy to get started



That's a little tricky.



1. Let check_snmp_memory show memory usage on graphite (only shown on graphite on Grafana)


# VI Check_snmp_memory



There are definitions memory_used_pourcent, swap_used_pourcent variables


Add the following lines in a value-like position


Value= $MEMORY _used_pourcent

Memory_used_pourcent= $VALUE



Value= $SWAP _used_pourcent

Swap_used_pourcent= $VALUE



And then add Per=${memory_used_pourcent in the final description. Swap_per=${swap_used_pourcent},per and Swap_per are casually written.



: Wq



2, let check_snmp_storage.pl in graphite display space utilization, total space, etc. (and then in the Grafana display)


The trouble is to rename the check_snmp_storage.pl copy and then modify the display value



# CP check_snmp_storage.pl check_snmp_storage2.pl


# VI check_snmp_storage2.pl


The key line is the round in the following sentence ($bu, 0)


$perf _out. = "'". $Pdescr. "' =" . Round ($bu, 0). $output _metric. " B; ". Round ($p _warn,0)

. ";" . Round ($p _crit,0). "; 0;". Round ($to, 0);




$bu indicates that the size is used, $BL is the total size, $pu is used, $PL is the remaining rate, $to is the remaining size


: Wq


Change to check_snmp_storage2.pl in Icinga2 's templates.conf and services.conf (step slightly)


3, Grafana Edit graph of the Metrics combine--averageseries (average), #A, #B. More than 4 will be out of touch or show only 4


Workaround:


Click on the right 3 crossbar and select toggle Edit mode to




4, Grafana Edit graph metrics too many (that is, the number of servers), more than 26


Why say 26, because here the line default to A-Z for the row name, 26 letters 26 lines, more than the default is not displayed, and can not participate in the calculation


Workaround:


Click on the graph name-the 3 crossbar on the left--panel json--into the text writing mode-Manually add "REFLD" to the section of more than 26 lines: "A1", (note that there is a ",", A1 is free to write)




Filter in metrics can be filtered (more than how much, below how much)






This article is from the "Linux" blog, so be sure to keep this source http://yangzhiming.blog.51cto.com/4849999/1850857

Grafana+graphite Building Configuration steps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.