Skip to content

Instantly share code, notes, and snippets.

View hkboujrida's full-sized avatar

Haithem BOUJRIDA hkboujrida

View GitHub Profile
Hybrid Observability Architecture Documentation
This document describes the unified monitoring and logging strategy for a multi-environment hybrid infrastructure (INT, PREPROD, PRD) encompassing On-Premises Service Fabric, SQL Servers, AS400, and Kubernetes.
1. High-Level Architecture Diagram
The diagram below illustrates the flow of telemetry data from various sources through Grafana Alloy collectors to the centralized LGTM (Loki, Grafana, Tempo, Mimir) stack.
graph TD
subgraph "On-Premises Infrastructure (INT/PREPROD/PRD)"
# Mimir Compactor - Paramètres Helm Chart
## Introduction
Le **compactor** fusionne et optimise les blocs TSDB stockés dans l'object storage pour réduire les coûts et améliorer les performances de requêtes.
---
## Paramètres de déploiement Kubernetes
{
"Name": "Automation Jumpbox Manager",
"IsCustom": true,
"Description": "Allows an Automation Account to start, stop, and assess patches for VMs across a tenant.",
"Actions": [
"Microsoft.Resources/subscriptions/read",
"Microsoft.Compute/virtualMachines/read",
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.Compute/virtualMachines/deallocate/action",
"Microsoft.Compute/virtualMachines/assessPatches/action"
curl -X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_DOCUMENT_INTELLIGENCE_SUBSCRIPTION_KEY" \
-H "Content-Type: multipart/form-data" \
-F "file=@c:/data/example.pdf" \
"YOUR_DOCUMENT_INTELLIGENCE_ENDPOINT/documentintelligence/rest/v1.0-preview/custom/models/YOUR_MODEL_GUID/analyze"
param (
[Parameter(Mandatory = $true)]
[string]$Organization,
[Parameter(Mandatory = $true)]
[string]$Project,
[Parameter(Mandatory = $true)]
[string]$ClientId,
# read a json local file from local disk and extract the build information
import json
import requests
json_url = 'http://localhost:8080/v1/rules'
# load json form url and extract the build information
json_file = requests.get(json_url).json()
# json_file = 'test.json'
# get base adress from json_url
https://583c-77-201-81-191.ngrok-free.app/dashboards
cluster:
name: my-cluster
externalServices:
prometheus:
host: http://mimir-nginx.observability.svc:80
# queryEndpoint: /api/v1/push
writeEndpoint: /api/v1/push
authMode: none
tenantId: "1"
# Powershell script to download and install grafana alloy in silent mode
# https://github.com/grafana/alloy/releases/download/v1.1.1/alloy-installer-windows-amd64.exe.zip
# Define the URL of the alloy installer
$url = "https://github.com/grafana/alloy/releases/download/v1.1.1/alloy-installer-windows-amd64.exe.zip"
# Define the path where the installer will be saved
$installerPath = "$env:TEMP\alloy-installer-windows-amd64.exe.zip"
# Download the installer
Invoke-WebRequest -Uri $url -OutFile $installerPath
docker run -it \
--name pytorch \
--network=host \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--device=/dev/kfd \
--device=/dev/dri \
--group-add video \
--ipc=host \
--shm-size 8G \