![]() ![]() Then scroll down to the ] section and configure it like this: ]Īt this point, we can go ahead and start both services to ensure that they're working properly. # The bind address used by the HTTP service. # Determines whether HTTP endpoint is enabled. In the section of your /etc/influxdb/nf, set enabled = true and bind-address = ":8096". There are only a few things that need to happen in the /etc/influxdb/nf config file. Once that's done, install the package with yum install influxdb and then it's ready to configure. Name = InfluxDB Repository - RHEL \$releasever The command below makes it easy: cat /etc//influxdb.repo Since InfluxDB isn't in EPEL, we'll have to pull it in from its repository. Now that we're done with collectd, we have to configure InfluxDB to pull in the data collectd is generating. Because we're doing everything locally in this example, we're pointing to localhost. The network plugin will need to point to your InfluxDB server. The network plugin is used to send data to our collector, which in this case is InfluxDB. Of these, the default values are fine for everything except network. For instance, I have syslog, cpu, disk, interface, load, memory, and network uncommented. Now that we have the basic app information set, we need to enable the plugins we want to use. It should look something like this: Hostname "YourHostNameHere" You'll need to modify Hostname, but the defaults should be fine for the rest. In the Global section, uncomment the lines for Hostname, BaseDir, PIDFile, PluginDir, and TypesDB. In /etc/nf there are a few things we need to configure. Collectd generates the stats, but we need to put it someplace that Grafana can use. Now that collectd is installed, we need to configure it to send out data. I would encourage you to explore the available plugins if the base plugin doesn't meet your needs. There are other collectd plugins available in EPEL, but the base is enough for our purposes here. Now that the EPEL repo is enabled, it's easy enough to install collectd in the same manner: yum install collectd If you're new to CentOS or aren't familiar with Fedora's EPEL repo, this command is all you need to get started: yum install epel-release The simplest way to get collectd on CentOS is via the EPEL repository. What, you thought I'd jump straight into Grafana? We need data to collect first, and the best way to do that on CentOS is via collectd. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |