Compare commits
4 Commits
176c53a5ae
...
328c626892
| Author | SHA1 | Date | |
|---|---|---|---|
| 328c626892 | |||
| 75aff61eae | |||
| 41738ad028 | |||
| 5de59b9b2e |
@@ -26,6 +26,7 @@
|
|||||||
".cache/nix"
|
".cache/nix"
|
||||||
".cache/nix-index"
|
".cache/nix-index"
|
||||||
".config/sops/"
|
".config/sops/"
|
||||||
|
".docker/"
|
||||||
".local/share/fish"
|
".local/share/fish"
|
||||||
".ssh"
|
".ssh"
|
||||||
"projects"
|
"projects"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ job "prometheus" {
|
|||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "prom/prometheus:v2.54.1"
|
image = "prom/prometheus:latest"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
args = [
|
args = [
|
||||||
"--storage.tsdb.path", "/opt/prometheus",
|
"--storage.tsdb.path", "/opt/prometheus",
|
||||||
@@ -149,6 +149,13 @@ scrape_configs:
|
|||||||
- source_labels: ['__meta_consul_node']
|
- source_labels: ['__meta_consul_node']
|
||||||
target_label: 'host'
|
target_label: 'host'
|
||||||
|
|
||||||
|
- job_name: 'wordpress'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- 'wordpress.paler.net'
|
||||||
|
scrape_interval: 15s
|
||||||
|
metrics_path: /wp-json/prompress/v1/metrics
|
||||||
|
|
||||||
EOH
|
EOH
|
||||||
|
|
||||||
destination = "local/prometheus.yml"
|
destination = "local/prometheus.yml"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ job "wordpress" {
|
|||||||
user = "237"
|
user = "237"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "wordpress:latest"
|
image = "gitea.v.paler.net/ppetru/wordpress"
|
||||||
ports = ["http"]
|
ports = ["http"]
|
||||||
volumes = [
|
volumes = [
|
||||||
"/data/sync/wordpress:/var/www/html",
|
"/data/sync/wordpress:/var/www/html",
|
||||||
|
|||||||
Reference in New Issue
Block a user