Ganglia-gmetad configuration file

Source: Internet
Author: User
Tags dns hostname rrd

Gmetad is primarily used to collect and aggregate Gmond data collected by the daemon, listening to other Gmetad connections through TCP port 8651, and provide the authorized host with an XML-formatted network status, Gmetad through TCP port 8652 to respond to interactive requests.

Its configuration file is gmetad.conf

Specific parameters:

1. The Data_source property Data_source property is the core of the Gmetad configuration. Each line data_source describes a gmond cluster or Gmetad grid that Gmetad collects information. Gmetad can automatically differentiate between clusters and grids, so the data_source syntax is the same. When Gmetad detects that data_source references a cluster, Gmetad retains a complete set of polling databases for data_source (Round Robin database). However, when Gmetad detects that data_source references a grid, Gmetad will retain only the profile RRD

When the scalable property is set to OFF, Gmetad forces the grid Data_ source to retain a full range of RRD files.

The following excerpt from the default configuration file is a valid data _source example:

Data_source "My Cluster" my.machine.edu:8649 1.2.3.5:8655

Data_source "My Grid" 1.3.4.7:8655 grid.org:8651 grid-backup.org:8651

Data_source "Another source" 1.3.4.8:8655 1.3.4.8

Each data_source consists of 3 fields. The first field is a string that uniquely identifies Data_source, the second field is a number that specifies the polling interval (in seconds), and the third is a space-separated list of hosts to poll for data, specified as an IP address or DNS hostname, and may be added as a suffix in the form ": Port number" , the port number indicates the location of the Gmond Tcp_accept_channel. If the port number is not specified, Gmetad will attempt to connect to tcp/8649.

Note: Gmetad detects the specified host in turn and collects state data from the first response host, so it is not necessary to specify all hosts within the cluster in the data_source definition. If a node fails, it is usually sufficient to specify two or three hosts to ensure that the data is collected.

2.gridname (text format)

A string that uniquely identifies the grid. The string should be different from the identifier set in Gmond. In the gmond.conf (at cluster {name = "XXX"}) cluster identifier, used to indicate that the Gmond instance can collect all hosts, whereas the Gridname attribute represents all the data sources specified by the grid identifier, it can be understood that the Data_ A collection of clusters defined in source.

3.authority (URL)

The authorization URL for the grid, used by other Gmetad to find the chart position of the current Gmetad data source. The default value is "http://hostname/ganglia/"

4.trusted_hosts ( text format)

The current Gmetad allows the list of hosts for data sharing, separated by spaces. LocalHost is always credible. 5.all_trusted (On|off) When the value is set to ON, the Trusted_hosts property is overridden, allowing the data to be shared with any host. 6.setuid_username (UID) Gmetad sets the user name for the UID. The default is nobody. 7.setuid (On|off) When the value is set to OFF, the UID cannot be set. 8.xml_port (digital) Gmetad listening port, default is 8651. 9.interactive_port (digital) Gmetad Interactive listening port, default is 8652. 10.server_threads (number) The number of connections that allow simultaneous connection to the listening port, which defaults to 4. 11.case_sensitive_hostnames (1|0) in previous versions of Gmetad, the RRD file distinguished host name capitalization, but it has changed. Set this value to 1 if you want to continue to use an RRD file created prior to ganglia 3.2. Starting with ganglia 3.2, this value is set to 0 by default.

The RRDtool property. Next, we describe several properties that affect the creation and processing of RRD files.

12.RRA (text format) This option represents the value of the custom Robin Ring archive (Round Robin Archive). The default is (15 second step): "rra:average:0.5:1:5856" "rra:average:0.5:4:20160" "rra:average:0.5:40:52704" 13.umask (digital)Specifies the umask that the RRD file and its directory have been created. The default is 022. The 14.rrd_rootdir (path) specifies the base directory where the RRD file is stored on the local file system.

Graphite support. The metrics data collected by Gmetad can be output to graphite by setting the following properties.

Graphite is an external open source indicator data storage and visualization tool. Carbon_server (address) The host name or IP of the remote carbon daemon. Carbon_port (number) Carbon port number, default is 2003. Graphite_prefix (text format) graphite uses a point-delimited path to manage and access indicator data, so you can add descriptive content such as Datacenter1.gmetad to the metrics data to graphite better manage the metrics data. Carbon_timeout (number) Gmetad the number of milliseconds to wait for the graphite server to respond. This setting is important because the Gmetad carbon sender is not a thread and needs to receive a response from the downstream carbon daemon for subsequent delivery. The default value is 500. Gmetad Interactive port query syntax. As mentioned earlier, Gmetad listens for interactive queries over TCP port 8652 (the default). This interactive query feature allows the client program to query only a subset of the grid state in XML mode. Interactive queries are done through a text protocol (similar to SMTP or HTTP), which is a hierarchical query that starts with a forward slash (/). For example, the following query returns XML data for the entire grid state:/In order to reduce the query results, you can specify the cluster name:/cluster1 to further reduce the query results, you can also specify the hostname within the cluster:/cluster1/ Host1 can add filters after the query term to modify the returned indicator data type (currently the filter is only summary). For example, you can request the return of a generalized indicator data from Cluster1:/cluster1?filter=summary

Configuration file Case:

Ata_source"ADM"103.242.203.229:8651Data_source"JXQ01"115.182.68.218:8651Data_source"JXQ02"115.182.66.162:8651Data_source"YZ"192.168.0.191:8651Gridname"Xywy"Authority"http://203.130.46.152:8081/ganglia/"Case_sensitive_hostnames 0



From for notes (Wiz)



Ganglia-gmetad configuration file

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.