From eb2f116d7b2f8730fcdde406607d6627e451b1d0 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Sat, 7 Dec 2024 17:05:02 -0600 Subject: [PATCH] closer to a full instrumentation stack --- README.md | 1 + influxdb/docker-compose.yml | 35 ---------- inprep/applehealth-grafana/docker-compose.yml | 11 +++ {cleanslate => inprep/cleanslate}/.env | 0 .../cleanslate}/docker-compose.yml | 0 {fitly => inprep/fitly}/config/config.ini | 0 {fitly => inprep/fitly}/config/fitness.db | Bin {fitly => inprep/fitly}/config/log.log | 0 {fitly => inprep/fitly}/docker-compose.yml | 0 {metrics => inprep/metrics}/README.md | 0 inprep/metrics/docker-compose.yml | 10 +++ {metrics => inprep/metrics}/metrics.sh | 0 {metrics => inprep/metrics}/settings.json | 64 ++++++++---------- .../resume-matcher}/docker-compose.yml | 0 {wger => inprep/wger}/config/nginx.conf | 0 {wger => inprep/wger}/docker-compose.yml | 0 {wger => inprep/wger}/update.sh | 0 metrics/docker-compose.yml | 15 ---- 18 files changed, 52 insertions(+), 84 deletions(-) delete mode 100644 influxdb/docker-compose.yml create mode 100644 inprep/applehealth-grafana/docker-compose.yml rename {cleanslate => inprep/cleanslate}/.env (100%) rename {cleanslate => inprep/cleanslate}/docker-compose.yml (100%) rename {fitly => inprep/fitly}/config/config.ini (100%) rename {fitly => inprep/fitly}/config/fitness.db (100%) rename {fitly => inprep/fitly}/config/log.log (100%) rename {fitly => inprep/fitly}/docker-compose.yml (100%) rename {metrics => inprep/metrics}/README.md (100%) create mode 100644 inprep/metrics/docker-compose.yml rename {metrics => inprep/metrics}/metrics.sh (100%) rename {metrics => inprep/metrics}/settings.json (77%) rename {resume-matcher => inprep/resume-matcher}/docker-compose.yml (100%) rename {wger => inprep/wger}/config/nginx.conf (100%) rename {wger => inprep/wger}/docker-compose.yml (100%) rename {wger => inprep/wger}/update.sh (100%) delete mode 100644 metrics/docker-compose.yml diff --git a/README.md b/README.md index 1184222..e84c886 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ This repo is for containers running on Charles (@ReachableCEO) laptop | (youtube archiving) tube-archivist | 2004 | | (the only editor) vscode-server | 2006 | | (timetracking) wakaapi | 2001 | +| apple heatlh export to influx/grafana | 2012 | | (analytics) metrics | 2002 | diff --git a/influxdb/docker-compose.yml b/influxdb/docker-compose.yml deleted file mode 100644 index dbf14fa..0000000 --- a/influxdb/docker-compose.yml +++ /dev/null @@ -1,35 +0,0 @@ -# compose.yaml -services: - influxdb2: - image: influxdb:2 - container_name: reachableceo-influxdb - ports: - - 4000:8086 - environment: - DOCKER_INFLUXDB_INIT_MODE: setup - DOCKER_INFLUXDB_INIT_USERNAME_FILE: /run/secrets/influxdb2-admin-username - DOCKER_INFLUXDB_INIT_PASSWORD_FILE: /run/secrets/influxdb2-admin-password - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE: /run/secrets/influxdb2-admin-token - DOCKER_INFLUXDB_INIT_ORG: docs - DOCKER_INFLUXDB_INIT_BUCKET: home - secrets: - - influxdb2-admin-username - - influxdb2-admin-password - - influxdb2-admin-token - volumes: - - type: volume - source: influxdb2-data - target: /var/lib/influxdb2 - - type: volume - source: influxdb2-config - target: /etc/influxdb2 -secrets: - influxdb2-admin-username: - file: $HOME/.env/influxdb2/admin-username - influxdb2-admin-password: - file: $HOME/.env/influxdb2/admin-password - influxdb2-admin-token: - file: $HOME/.env/influxdb2/admin-token -volumes: - influxdb2-data: - influxdb2-config: \ No newline at end of file diff --git a/inprep/applehealth-grafana/docker-compose.yml b/inprep/applehealth-grafana/docker-compose.yml new file mode 100644 index 0000000..7523dcc --- /dev/null +++ b/inprep/applehealth-grafana/docker-compose.yml @@ -0,0 +1,11 @@ +services: + influxdbV1: + image: influxdb:1.8.4 + container_name: reachableceo-health-data + ports: + - "8086:8086" + volumes: + - reachableceo-health-data:/var/lib/influxdb + restart: unless-stopped +volumes: + reachableceo-health-data: \ No newline at end of file diff --git a/cleanslate/.env b/inprep/cleanslate/.env similarity index 100% rename from cleanslate/.env rename to inprep/cleanslate/.env diff --git a/cleanslate/docker-compose.yml b/inprep/cleanslate/docker-compose.yml similarity index 100% rename from cleanslate/docker-compose.yml rename to inprep/cleanslate/docker-compose.yml diff --git a/fitly/config/config.ini b/inprep/fitly/config/config.ini similarity index 100% rename from fitly/config/config.ini rename to inprep/fitly/config/config.ini diff --git a/fitly/config/fitness.db b/inprep/fitly/config/fitness.db similarity index 100% rename from fitly/config/fitness.db rename to inprep/fitly/config/fitness.db diff --git a/fitly/config/log.log b/inprep/fitly/config/log.log similarity index 100% rename from fitly/config/log.log rename to inprep/fitly/config/log.log diff --git a/fitly/docker-compose.yml b/inprep/fitly/docker-compose.yml similarity index 100% rename from fitly/docker-compose.yml rename to inprep/fitly/docker-compose.yml diff --git a/metrics/README.md b/inprep/metrics/README.md similarity index 100% rename from metrics/README.md rename to inprep/metrics/README.md diff --git a/inprep/metrics/docker-compose.yml b/inprep/metrics/docker-compose.yml new file mode 100644 index 0000000..2600f29 --- /dev/null +++ b/inprep/metrics/docker-compose.yml @@ -0,0 +1,10 @@ +services: + reachableceo-metrics: + image: ghcr.io/lowlighter/metrics:latest + container_name: reachableceo-metrics + entrypoint: [""] + command: ["npm", "start"] + ports: + - "0.0.0.0:2002:3000" + volumes: + - "./settings.json:/metrics/settings.json" diff --git a/metrics/metrics.sh b/inprep/metrics/metrics.sh similarity index 100% rename from metrics/metrics.sh rename to inprep/metrics/metrics.sh diff --git a/metrics/settings.json b/inprep/metrics/settings.json similarity index 77% rename from metrics/settings.json rename to inprep/metrics/settings.json index 0682c1a..07743c3 100644 --- a/metrics/settings.json +++ b/inprep/metrics/settings.json @@ -2,7 +2,7 @@ "//": "Example of configuration for metrics web instance", "//": "====================================================================", - "token": "A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", "//": "GitHub Personal Token (required)", + "token": "GITHUB API TOKEN", "//": "GitHub Personal Token (required)", "modes": ["embed", "insights"], "//": "Web instance enabled modes", "restricted": [], "//": "Authorized users (empty to disable)", "maxusers": 0, "//": "Maximum users, (0 to disable)", @@ -17,8 +17,8 @@ "padding": ["0", "8 + 11%"], "//": "Image padding (default)", "outputs": ["svg", "png", "json"], "//": "Image output formats (empty to enable all)", "hosted": { - "by": "ReachableCEO Dev Workstation", "//": "Web instance host (displayed in footer)", - "link": "https://www.reachableceo.com", "//": "Web instance host link (displayed in footer)" + "by": "", "//": "Web instance host (displayed in footer)", + "link": "", "//": "Web instance host link (displayed in footer)" }, "oauth":{ "id": null, "//": "GitHub OAUTH client id", @@ -68,80 +68,80 @@ "enabled": false, "//": "Enable isocalendar plugin" }, "languages":{ - "enabled": true, "//": "Enable languages plugin" + "enabled": false, "//": "Enable languages plugin" }, "stargazers":{ "worldmap.token": null, "//": "Stargazers worldmap token", "enabled": false, "//": "Enable stargazers plugin" }, "lines":{ - "enabled": true, "//": "Enable lines plugin" + "enabled": false, "//": "Enable lines plugin" }, "topics":{ - "enabled": true, "//": "Enable topics plugin" + "enabled": false, "//": "Enable topics plugin" }, "stars":{ - "enabled": true, "//": "Enable stars plugin" + "enabled": false, "//": "Enable stars plugin" }, "licenses":{ - "enabled": true, "//": "Enable licenses plugin" + "enabled": false, "//": "Enable licenses plugin" }, "habits":{ - "enabled": true, "//": "Enable habits plugin" + "enabled": false, "//": "Enable habits plugin" }, "contributors":{ - "enabled": true, "//": "Enable contributors plugin" + "enabled": false, "//": "Enable contributors plugin" }, "followup":{ - "enabled": true, "//": "Enable followup plugin" + "enabled": false, "//": "Enable followup plugin" }, "reactions":{ - "enabled": true, "//": "Enable reactions plugin" + "enabled": false, "//": "Enable reactions plugin" }, "people":{ - "enabled": true, "//": "Enable people plugin" + "enabled": false, "//": "Enable people plugin" }, "sponsorships":{ - "enabled": true, "//": "Enable sponsorships plugin" + "enabled": false, "//": "Enable sponsorships plugin" }, "sponsors":{ - "enabled": true, "//": "Enable sponsors plugin" + "enabled": false, "//": "Enable sponsors plugin" }, "repositories":{ - "enabled": true, "//": "Enable repositories plugin" + "enabled": false, "//": "Enable repositories plugin" }, "discussions":{ - "enabled": true, "//": "Enable discussions plugin" + "enabled": false, "//": "Enable discussions plugin" }, "starlists":{ - "enabled": true, "//": "Enable starlists plugin" + "enabled": false, "//": "Enable starlists plugin" }, "calendar":{ - "enabled": true, "//": "Enable calendar plugin" + "enabled": false, "//": "Enable calendar plugin" }, "achievements":{ - "enabled": true, "//": "Enable achievements plugin" + "enabled": false, "//": "Enable achievements plugin" }, "notable":{ - "enabled": true, "//": "Enable notable plugin" + "enabled": false, "//": "Enable notable plugin" }, "activity":{ - "enabled": true, "//": "Enable activity plugin" + "enabled": false, "//": "Enable activity plugin" }, "traffic":{ - "enabled": true, "//": "Enable traffic plugin" + "enabled": false, "//": "Enable traffic plugin" }, "code":{ - "enabled": true, "//": "Enable code plugin" + "enabled": false, "//": "Enable code plugin" }, "gists":{ - "enabled": true, "//": "Enable gists plugin" + "enabled": false, "//": "Enable gists plugin" }, "projects":{ - "enabled": true, "//": "Enable projects plugin" + "enabled": false, "//": "Enable projects plugin" }, "introduction":{ - "enabled": true, "//": "Enable introduction plugin" + "enabled": false, "//": "Enable introduction plugin" }, "skyline":{ "enabled": false, "//": "Enable skyline plugin" @@ -174,12 +174,8 @@ "enabled": false, "//": "Enable rss plugin" }, "wakatime":{ - "token": "664dd8b2-b73a-4f31-82ef-96ed424814d2", - "enabled": true, "//": "Enable wakatime plugin" - "url": "http://localhost:2001/api", - "days": 7, - "sections": "time, projects, projects-graphs", - "limit": 4, + "token": "WakaTime API token", + "enabled": false, "//": "Enable wakatime plugin" }, "leetcode":{ "enabled": false, "//": "Enable leetcode plugin" @@ -222,4 +218,4 @@ }, "//": "" } -} +} \ No newline at end of file diff --git a/resume-matcher/docker-compose.yml b/inprep/resume-matcher/docker-compose.yml similarity index 100% rename from resume-matcher/docker-compose.yml rename to inprep/resume-matcher/docker-compose.yml diff --git a/wger/config/nginx.conf b/inprep/wger/config/nginx.conf similarity index 100% rename from wger/config/nginx.conf rename to inprep/wger/config/nginx.conf diff --git a/wger/docker-compose.yml b/inprep/wger/docker-compose.yml similarity index 100% rename from wger/docker-compose.yml rename to inprep/wger/docker-compose.yml diff --git a/wger/update.sh b/inprep/wger/update.sh similarity index 100% rename from wger/update.sh rename to inprep/wger/update.sh diff --git a/metrics/docker-compose.yml b/metrics/docker-compose.yml deleted file mode 100644 index 30d7421..0000000 --- a/metrics/docker-compose.yml +++ /dev/null @@ -1,15 +0,0 @@ -services: - reachableceo-metrics: - image: ghcr.io/lowlighter/metrics:${VERSION:-latest} - container_name: reachableceo-metrics - entrypoint: [""] - command: ["npm", "start"] - ports: - - "127.0.0.1:2002:3000" - volumes: - - "./settings.json:/metrics/settings.json" - environment: - - VERSION=${VERSION:-latest} - - SETTINGS=./settings.json - - SERVICE_PORT=${SERVICE_PORT:-3000} - - PUBLISHED_PORT=${PUBLISHED_PORT:-2002}