diff --git a/.obsidian/app.json b/.obsidian/app.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.obsidian/app.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.obsidian/appearance.json b/.obsidian/appearance.json new file mode 100644 index 0000000..c8c365d --- /dev/null +++ b/.obsidian/appearance.json @@ -0,0 +1,3 @@ +{ + "accentColor": "" +} \ No newline at end of file diff --git a/.obsidian/core-plugins-migration.json b/.obsidian/core-plugins-migration.json new file mode 100644 index 0000000..436f43c --- /dev/null +++ b/.obsidian/core-plugins-migration.json @@ -0,0 +1,30 @@ +{ + "file-explorer": true, + "global-search": true, + "switcher": true, + "graph": true, + "backlink": true, + "canvas": true, + "outgoing-link": true, + "tag-pane": true, + "properties": false, + "page-preview": true, + "daily-notes": true, + "templates": true, + "note-composer": true, + "command-palette": true, + "slash-command": false, + "editor-status": true, + "bookmarks": true, + "markdown-importer": false, + "zk-prefixer": false, + "random-note": false, + "outline": true, + "word-count": true, + "slides": false, + "audio-recorder": false, + "workspaces": false, + "file-recovery": true, + "publish": false, + "sync": false +} \ No newline at end of file diff --git a/.obsidian/core-plugins.json b/.obsidian/core-plugins.json new file mode 100644 index 0000000..9405bfd --- /dev/null +++ b/.obsidian/core-plugins.json @@ -0,0 +1,20 @@ +[ + "file-explorer", + "global-search", + "switcher", + "graph", + "backlink", + "canvas", + "outgoing-link", + "tag-pane", + "page-preview", + "daily-notes", + "templates", + "note-composer", + "command-palette", + "editor-status", + "bookmarks", + "outline", + "word-count", + "file-recovery" +] \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json new file mode 100644 index 0000000..fd088d9 --- /dev/null +++ b/.obsidian/workspace.json @@ -0,0 +1,155 @@ +{ + "main": { + "id": "5592aab14f66c563", + "type": "split", + "children": [ + { + "id": "9e1cbafd0088d3c3", + "type": "tabs", + "children": [ + { + "id": "4ff11dd078ab66bf", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "README.md", + "mode": "source", + "source": false + } + } + } + ] + } + ], + "direction": "vertical" + }, + "left": { + "id": "b94b45054e7382f7", + "type": "split", + "children": [ + { + "id": "3747cb665b3512ab", + "type": "tabs", + "children": [ + { + "id": "ff2e07594e5df190", + "type": "leaf", + "state": { + "type": "file-explorer", + "state": { + "sortOrder": "alphabetical" + } + } + }, + { + "id": "0e0ebac4a3febaa0", + "type": "leaf", + "state": { + "type": "search", + "state": { + "query": "", + "matchingCase": false, + "explainSearch": false, + "collapseAll": false, + "extraContext": false, + "sortOrder": "alphabetical" + } + } + }, + { + "id": "16abcfdb9b2d6541", + "type": "leaf", + "state": { + "type": "bookmarks", + "state": {} + } + } + ] + } + ], + "direction": "horizontal", + "width": 300 + }, + "right": { + "id": "b59bd8f018fd0080", + "type": "split", + "children": [ + { + "id": "c556a5f4dbffcf8b", + "type": "tabs", + "children": [ + { + "id": "7f5703816bb04d4d", + "type": "leaf", + "state": { + "type": "backlink", + "state": { + "file": "README.md", + "collapseAll": false, + "extraContext": false, + "sortOrder": "alphabetical", + "showSearch": false, + "searchQuery": "", + "backlinkCollapsed": false, + "unlinkedCollapsed": true + } + } + }, + { + "id": "54691d14942355f2", + "type": "leaf", + "state": { + "type": "outgoing-link", + "state": { + "file": "README.md", + "linksCollapsed": false, + "unlinkedCollapsed": true + } + } + }, + { + "id": "534e289695f35e27", + "type": "leaf", + "state": { + "type": "tag", + "state": { + "sortOrder": "frequency", + "useHierarchy": true + } + } + }, + { + "id": "6669f469ad5e0124", + "type": "leaf", + "state": { + "type": "outline", + "state": { + "file": "README.md" + } + } + } + ] + } + ], + "direction": "horizontal", + "width": 300, + "collapsed": true + }, + "left-ribbon": { + "hiddenItems": { + "switcher:Ouvrir le sélecteur rapide": false, + "graph:Ouvrir la vue graphique": false, + "canvas:Créer une nouvelle toile": false, + "daily-notes:Ouvrir la note quotidienne": false, + "templates:Insérer le modèle": false, + "command-palette:Ouvrir la palette de commandes": false + } + }, + "active": "4ff11dd078ab66bf", + "lastOpenFiles": [ + "img", + "Nouveau dossier", + "Pasted image 20240320140145.png" + ] +} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e59531f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM httpd:alpine3.17 + +LABEL maintainer="Tom Moguljak" +LABEL version="1.8" +LABEL tp="3" + +COPY ./dayScheduler/ /usr/local/apache2/htdocs/ + +RUN sed -i 's/Work Day Scheduler/Tom Moguljak/g' /usr/local/apache2/htdocs/index.html + +ENV school="IUT" +ENV level="1.8" + +HEALTHCHECK --interval=1m --timeout=1s \ + CMD curl --fail http://localhost:80/ || exit 1 \ No newline at end of file diff --git a/README.md b/README.md index 7dbc545..82a4ff3 100644 --- a/README.md +++ b/README.md @@ -181,4 +181,14 @@ services: restart: unless-stopped ``` -**Étape 5** : \ No newline at end of file +**Étape 5** : Ensuite nous devons nous connecter à grafana afin de créer la connection entre prometheus et grafana. +Pour ce connecter on peut utiliser un compte par défaut, on doit juste mettre "admin" comme nom d'utilisateur et comme mot de passe. +On peut skip aussi la demande de changer le mot de passe juste après. + +**Étape 6** : Une fois sur la page d'accueil, on va aller sur l'onglet "Connections" et appuyer sur "add new connection" + +**Étape 7** : Dans la barre de recherche on écrit prometheus, on clique ensuite sur Prometheus et enfin "Add new data source" en haut à droite + +**Étape 8** : Maintenant on doit configurer la configuration de la connection avec prometheus. Il suffit juste de mettre le lien "http://prometheus:9090" dans la catégorie Connection et ensuite appuyer sur "Save & Test" à la fin de la page. + +**Étape 9** : Il faut ensuite cliquer sur "Data sources", on peut alors voir qu'on a bien réussi à connecter prometheus. Dorénavant il faut cliquer sur "Build a dashboard" et ensuite sur \ No newline at end of file