closer to a full instrumentation stack
This commit is contained in:
parent
7a29dbd3c7
commit
eb2f116d7b
@ -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 |
|
||||
|
@ -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:
|
11
inprep/applehealth-grafana/docker-compose.yml
Normal file
11
inprep/applehealth-grafana/docker-compose.yml
Normal file
@ -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:
|
10
inprep/metrics/docker-compose.yml
Normal file
10
inprep/metrics/docker-compose.yml
Normal file
@ -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"
|
@ -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"
|
@ -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}
|
Loading…
Reference in New Issue
Block a user