Skip to content

Instantly share code, notes, and snippets.

@jokeru
jokeru / README.md
Created April 20, 2024 10:11
How to configure Grafana Alloy to pull metrics from Azure and push them into Grafana Cloud for metrics / alerting consolidation

How to push Azure virtual machines metrics to Grafana Cloud

0. the alloy environment

jokeru@box:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.4 LTS
Release:	22.04
@jokeru
jokeru / aws_delete-default-vpc.sh
Created March 31, 2018 15:14
Script to delete all AWS default VPCs from all regions using AWS CLI
#!/usr/bin/env bash
if [ "$AWS_PROFILE" = "" ]; then
  echo "No AWS_PROFILE set"
  exit 1
fi
for region in $(aws ec2 describe-regions --region eu-west-1 | jq -r .Regions[].RegionName); do
@jokeru
jokeru / collectd-web_0.4.0-ubuntu-14.04.diff
Created October 26, 2014 19:50
collectd-web_0.4.0 patch for ubuntu 14.04
--- /usr/lib/python2.7/CGIHTTPServer.py 2014-10-26 19:24:43.087509000 +0000
+++ /usr/lib/python2.7/CGIHTTPServer.ubuntu.py 2014-10-26 19:33:00.487509000 +0000
@@ -243,10 +243,10 @@
return
# Child
try:
- try:
- os.setuid(nobody)
- except os.error:
- pass
@jokeru
jokeru / compile-nginx-minimal.sh
Created June 27, 2014 19:36
howto compile nginx for static content only - minimal modules loaded
apt-get install build-essential
cd /usr/src/
wget http://nginx.org/download/nginx-1.6.0.tar.gz
tar -xzf nginx-1.6.0.tar.gz
cd nginx-1.6.0/
./configure --help
./configure \
--prefix=/usr/local/nginx \