Tuesday, April 20, 2021

What is prometheus?

Prometheus is a software for mentoring and alerting. The idea it to time 

Similar tools:

Borgman remains internal to Google. Treating time-series data as a data source

Monday, April 19, 2021

What is graphana? what does it do?

Graphana is an open source web application.

It supports Prometheus database and ships it inbuilt.

What purpose does it serve?

It allows you to build Charts, Graphs and Dashboards that you want to Visualize

What is the architecture of Graphana?

-> Data producer (Jenkins, Kubernetes, Virutal Machine) - Aggregate data - Temperate, weather
-> Data Source (Prometheus or any other database) - Pull data (sensor data) or Data Producer pushes data
-> Graphana queries the data source and provides a Dashboard

What are the Categories of data that Graphana visualizes over?

Metrics - CPU Load, Memory Usage
Logs - errors [TimeSliced]

What does the Dashboard show?

It shows CPU/Memory along with TimeSeries Graph that you can Zoom in and factor data for the controlled set of data.

Similar Tools:

Kibana


Sunday, April 18, 2021

How to find a file in macOS Terminal using bash?

Cd into the directory. 

Example:
List down all the files with the name test.

 find . -type f -name "test*"

Additional tip

List down all the directories with the name test.

find . -type d -name "test*"

How to configure settings in php on MAMP ?

 The configuration file for php is php.ini.

The file is present in /etc directory.

Open a Terminal. Change to Root user.

bash#su -s
enter password

bash# cd /etc

bash# ls -l | grep php.ini

-rwxr-xr-x   1 root  wheel   72020 Apr 18 11:17 php.ini.default

bash# chmod 755 php.ini.default

Rename the file to pho.ini

mv php.ini.default

Edit the file and set the following settings if you wish too.

vi php.ini

To seach use /<word>

Userful settings

display_errors On
disaplay_start_errors - On
error_log /var/log/apache2/php_errors.log

write and quit

restart apache to reflect changes

bash#apachectl restart

Additional commands

php -v          -         version of php
php -m        -          modules installed like ssl, sockets etc.,
php -i            -        view php.ini configuration files