Running a docker registry with Minio S3 backend
Run minio in a container
docker run -d -p 9000:9000 --name minio minio/minio server /export
Use docker logs to retrieve access key and secret key from minio container
docker logs minio
docker run -d -p 9000:9000 --name minio minio/minio server /export
docker logs minio
import base64 | |
base64_message = 'BASE64' # pesan yang ingin di-decode | |
decoded_message = base64.b64decode(base64_message) # proses decoding | |
print(decoded_message.decode('utf-8')) # print hasil decoding |
grafana.ini
is located in /etc/grafana/grafana.ini
in the form of a single file and /var/lib/grafana/
is in the form of a directory to be backed up to S3 (here I use minio).0 */12 * * *
.-eq 2
section).#!/bin/bash
# set variable
Here is my experience installing Exporter on Proxmox and visualizing it on Grafana.
python3 -m pip install prometheus-pve-exporter
I get a case that I have to log in to an instance on Openstack without going through the instance IP (because it can't be reached) so I have to try to enter from the console for troubleshooting in the OS. Here's one of my ways to log in using the root
user on Ubuntu Server 20.04 LTS running on top of Openstack.
Horizon -> Project -> Instance -> Click on your Instance -> Console
.virsh console
but will not shows in here.SendCtrlAltDel
esc
repeatedly until it enters the boot order
menuswapon /swapfile
when the RAM threshold reaches 90% while swap is immediately turned off swapoff -a
when RAM is below 80%#!/bin/bash
# Set the threshold for activating and deactivating swap
#!/bin/bash
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
Script for alerting agent when a new Instance created or Destroyed on Openstack
#!/bin/bash
# Telegram
BOT_TOKEN="$BOTTOKEN"
CHAT_ID="$YOURCHATID"