29.08.2019
Posted by 

Install MyCollab Project Management Software on CentOS 7. MyCollab is a free and open source collaboration project management software that can be used to manage projects, CRM, and documents. We will explain how to install MyCollab Community Edition on CentOS 7 server. In this tutorial, I will show you how to install and configure OpenProject on CentOS 7. OpenProject is an open source web-based management system for. In this tutorial, I will show you how to install and configure OpenProject on CentOS 7. For this guide, we will install the 'OpenProject' project management system from the repository.

Prometheus is a complete monitoring and trending system with built-in and active scraping, storing, querying, graphing and alerting based on time series data.

Prometheus is an open-source toolkit initially built at SoundCloud for monitoring and alerting. The toolkit is now a standalone open source project and maintained independently of any company.

The toolkit collects metrics from monitored targets by scrapping HTTP endpoints on those targets. Most Prometheus components are in Go. Some written in Java, Python, and Ruby.

Prometheus works well to record any numerical time series. It fits both machine-centric monitoring and high-dynamic service-oriented architecture monitoring. In addition to making it easier to run and integrate into your environment, Prometheus offers a rich data model and query language.

The following tutorial shows steps to install Prometheus on CentOS.

Install and Configure Prometheus on CentOS 7

Login to Terminal as root, and start firing the commands below.

Step 1 – Update System

Step 2 – Disable SELinux

Open SELinux configuration and edit the file:

Change “SELINUX=enforcing” to “SELINUX=disabled”.

Save and exit the file. Then reboot the system.

Step 3 – Download Prometheus package

Go to official Prometheus downloads page, and copy the URL of Linux “tar” file.

Run the following command to download package. Paste the copied URL after wget in the below command:

Step 4 – Configure Prometheus

Add a Prometheus user.

Create needed directories.

Change the owner of the above directories.

Now go to Prometheus downloaded location and extract it.

Rename it as per your preference.

Copy “prometheus” and “promtool” binary from the “prometheuspackage” folder to “/usr/local/bin”.

Change the ownership to Prometheus user.

Copy “consoles” and “console_libraries” directories from the “prometheuspackage” to “/etc/prometheus folder”

Change the ownership to Prometheus user

Add and modify Prometheus configuration file.

Configurations should be added to the “/etc/prometheus/prometheus.yml”

Now we will create the prometheus.yml file.

Add the following configuration to the file.

save and exit the file

Change the ownership of the file.

Configure the Prometheus Service File.

Copy the following content to the file.

Save and the exit file.

Reload the systemd service.

Start the Prometheus service.

Check service status.

Add firewall rules.

Reload firewall service.

Step 5 – Access Prometheus Web Interface

Use the following Url to access UI.

Then you can see the following interface.

Step 6 – Monitor Linux Server Using Prometheus

First, you need to configure Prometheus node exporter on a Linux server.

Copy URL of the Node Exporter form the official download page.

Paste the copied URL after wget in the following command:

Extract the downloaded package.

Create a user for the node exporter.

Move binary to “/usr/local/bin” from the downloaded extracted package.

Create a service file for the node exporter.

Add the following content to the file.

Save and exit the file.

Reload the system daemon.

Start node exporter service.

Add a firewall rule to allow node exporter.

Reload firewall service.

Enable node exporter on system boot.

Install Openproject On Centos 7

Install Project Open Centos

View the metrics browsing node exporter URL.

Add configured node exporter Target On Prometheus Server.

Login to Prometheus server and modify the prometheus.yml file

Edit the file:

Add the following configurations under the scrape config.

Install Project Open Centos 7

The file should look like as follows.

Restart Prometheus service.

Login to Prometheus server web interface, and check targets.

You can click the graph and query any server metrics and click execute to show output. It will show the console output.

Query Browser:

Console output:

Click Graph to view.

Step 7 – Monitor MySQL Server Using Prometheus

Login to MySQL and execute the following queries.

Download mysqld_exporter from the official download page.

Extract the Downloaded file.

Add a user for mysqld_exporter.

Copy mysqld_exporter file to /usr/bin.

Change ownership of the file.

Create needed folders.

Create a MySQL password file for mysqld_exporter.

Add the following configurations to the file.

Save and exit the file.

Change ownership.

Grant needed permission.

Create a service file.

Add the following content to the file.

Reload the system daemon.

Enable mysql_exporter on system boot.

Start service.

View the metrics using the following URL.

Now go to Prometheus server and modify the prometheus.yml file.

Add the following content to the file.

Restart Prometheus.

You can see added targets by clicking targets under the status.

Now you can select query using query browser and get the result of MySQL server.

That’s all about the installation and configuration of Prometheus server on CentOS 7. Hope you enjoyed this tutorial. Let us know your feedback in the comments below.