Compare commits

..

4 Commits

Author SHA1 Message Date
328c626892 Scrape wordpress metrics. 2024-11-05 10:39:08 +00:00
75aff61eae Switch to latest image. 2024-11-05 10:38:58 +00:00
41738ad028 Use a locally built wordpress image. 2024-11-05 10:32:36 +00:00
5de59b9b2e Persist docker directory (for login info). 2024-11-05 10:32:13 +00:00
3 changed files with 10 additions and 2 deletions

View File

@@ -26,6 +26,7 @@
".cache/nix"
".cache/nix-index"
".config/sops/"
".docker/"
".local/share/fish"
".ssh"
"projects"

View File

@@ -23,7 +23,7 @@ job "prometheus" {
driver = "docker"
config {
image = "prom/prometheus:v2.54.1"
image = "prom/prometheus:latest"
network_mode = "host"
args = [
"--storage.tsdb.path", "/opt/prometheus",
@@ -149,6 +149,13 @@ scrape_configs:
- source_labels: ['__meta_consul_node']
target_label: 'host'
- job_name: 'wordpress'
static_configs:
- targets:
- 'wordpress.paler.net'
scrape_interval: 15s
metrics_path: /wp-json/prompress/v1/metrics
EOH
destination = "local/prometheus.yml"

View File

@@ -17,7 +17,7 @@ job "wordpress" {
user = "237"
config {
image = "wordpress:latest"
image = "gitea.v.paler.net/ppetru/wordpress"
ports = ["http"]
volumes = [
"/data/sync/wordpress:/var/www/html",