Delete information from one host in Prometheus

30 05 2017

If we have information in Prometheus from one node and we need to remove it, the following api request solve it:

curl -X DELETE -g 'http://IP_prometheus:9090/api/v1/series?match[]={instance="IP_node_to_remove:9100"}'

Advertisements




Disable time sync between host and guest in Linux VirtualBox

19 05 2017

To the following files:

/home/[your_user]/.config/VirtualBox/VirtualBox.xml
/home/[your_user]/VirtualBox\ VMs/[VM_Name]/[VM_Name].vbox

Add the line:

<ExtraDataItem name="VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" value="1"/>

More info:
https://forums.virtualbox.org/viewtopic.php?f=2&t=8535&sid=40a155aafbe83d3409b73aed8f0b96dd&start=15





Migrar trac de un host a otro

22 09 2011

En la máquina nueva:
# mkdir /var/trac/aaa

En la máquina vieja:
# cd /var/trac/aaa; tar -czvf - ./ | ssh root@192.168.1.1 "cd /var/trac/aaa; tar -xzvf -"

En la nueva:
# cd /var/trac/aaa/db/; cp trac.db SAVE.trac.db; sqlite trac.db .dump | sqlite3 trac.db.new; cp trac.db.new trac.db
# trac-admin /var/trac/aaa upgrade
# trac-admin /var/trac/aaa wiki upgrade
# chgrp -R www-data /var/trac/
# chmod -R ug+rwx /var/trac/