Skip to content

Instantly share code, notes, and snippets.

View trietsch's full-sized avatar
💻

Robin Trietsch trietsch

💻
View GitHub Profile
// ==UserScript==
// @name Environment Banner
// @version 1.0.0
// @description Inject a small box at the top of a Grafana page to display the environment based on the URL
// @author You
// @include /^.*\.weu\.grafana\.azure\.com\/.*$/
// @grant none
// ==/UserScript==
(function () {
@trietsch
trietsch / azure_log_analytics_traces.sh
Created April 14, 2026 07:30
azure_log_analytics_traces
azure_log_analytics_traces() {
subscription=$1
resource_group=$2
workspace_name=$3
service=$4
timespan=${5:-"10m"}
level_filter=${6:-""}
if [[ -z "$subscription" || -z "$resource_group" || -z "$workspace_name" || -z "$service" ]]; then
echo "Usage: azure_log_analytics_traces <subscription> <resource_group> <workspace_name> <service> [timespan] [level]"