Skip to content

Instantly share code, notes, and snippets.

View sirianni's full-sized avatar

Eric Sirianni sirianni

View GitHub Profile
@sirianni
sirianni / readme.md
Created January 29, 2022 14:43
Set log4j levels via Jolokia
$ http ':7777/jolokia/write/org.apache.logging.log4j2:component=Loggers,name=io.opentelemetry,type=251a69d7/Level/INFO'
HTTP/1.1 200 OK

{
    "request": {
        "attribute": "Level",
        "mbean": "org.apache.logging.log4j2:component=Loggers,name=io.opentelemetry,type=251a69d7",
        "type": "write",
 "value": "INFO"
@sirianni
sirianni / README.md
Last active March 11, 2024 13:06
Datadog OTel Gauge Issue
# https://gist.github.com/sirianni/0b4bdac87e62bf136bfa71828827ca43
import os
import shutil
import time
for filename in os.listdir():
if os.path.isfile(filename):
@sirianni
sirianni / example.diff
Created May 15, 2025 14:43
Example diff
--- config.txt 2025-05-15 09:00:00.000000000 +0000
+++ config.txt 2025-05-15 09:05:00.000000000 +0000
@@ -3,10 +3,11 @@
host=localhost
-port=8080
+port=9090
timeout=30
enable_logging=true
-log_level=debug
+log_level=info