Skip to content

Instantly share code, notes, and snippets.

View petarnikolovski's full-sized avatar

Petar Nikolovski petarnikolovski

View GitHub Profile
@petarnikolovski
petarnikolovski / prometheus.md
Last active October 12, 2021 01:19
Prometheus 2.x installation on Ubuntu 16.04 server.

Installing Prometheus on Ubuntu 16.04

This gist is a compilation of two tutorials. You can find the original tutorials here and here. What should you know before using this? Everything can be executed from the home folder. For easier cleanup at the end you can make directory where you'll download everything, and then just use rm -rf .. Although, you should be careful. If some strange bugs arise unexpectedly somewhere sometimes, just keep in mind that some user names have underscores in them (this is probably nothing to worry about).

Create Users

sudo adduser --no-create-home --disabled-login --shell /bin/false --gecos "Prometheus Monitoring User" prometheus
sudo adduser --no-create-home --disabled-login --shell /bin/false --gecos "Node Exporter User" node_exporter
sudo adduser --no-create-home --disabled-login --shell /bin/false --gecos "Alertm
@petarnikolovski
petarnikolovski / recommendations.md
Last active July 18, 2021 22:49
Few Recommendations for Python Beginners
@petarnikolovski
petarnikolovski / .gitignore
Created August 5, 2017 14:41
Gitignore for virtualenv, selenium, and Ubuntu
# Ignore system files and folders - Ubuntu
*.*~
# Ignore Python related files
*.py[cod]
__pycache__/
.cache/
# Ignore virtualenv files and folders
pip-selfcheck.json
@petarnikolovski
petarnikolovski / virtualenv_py.md
Last active July 26, 2017 09:03
Setting up and activating virtualenv (Python 3.X)

Installing virtualenv

Virtualenv can be installed using pip:

pip3 install virtualenv

If this approach fails, try: