Utilisation de prometheus-cpp-dev

This commit is contained in:
2025-12-03 23:20:46 +01:00
parent 3b9d229559
commit 8c23e6b8f9
6 changed files with 170 additions and 77 deletions

38
.vscode/tasks.json vendored
View File

@@ -1,33 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${workspaceFolder}${pathSeparator}main.cpp",
"-lm",
"-lncursesw",
"-lprom",
"-lpromhttp",
"-lmicrohttpd",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"label": "CMake: build",
"type": "shell",
"command": "cmake --build build --config Debug",
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
"problemMatcher": ["$gcc"]
},
{
"label": "CMake: configure",
"type": "shell",
"command": "cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
"problemMatcher": ["$gcc"]
}
],
"version": "2.0.0"
}
]
}