generic cert paths

This commit is contained in:
John Lancaster
2025-12-29 22:47:11 -06:00
parent e5beda0fff
commit f214a5b31e
2 changed files with 9 additions and 5 deletions

View File

@@ -17,9 +17,14 @@ services:
restart: unless-stopped restart: unless-stopped
privileged: true privileged: true
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /dev/disk/:/dev/disk:ro
- ./grafana-alloy/config.alloy:/etc/alloy/config.alloy - ./grafana-alloy/config.alloy:/etc/alloy/config.alloy
- ./certs:/etc/alloy/certs - /var/lib/ssl:/etc/alloy/certs:ro
ports: ports:
- '12345:12345' - '12345:12345'
command: command:

View File

@@ -18,8 +18,8 @@ prometheus.remote_write "default" {
endpoint { endpoint {
url = "https://prometheus.john-stream.com:9090/api/v1/write" url = "https://prometheus.john-stream.com:9090/api/v1/write"
tls_config { tls_config {
cert_file = "/etc/alloy/certs/prometheus.crt" cert_file = "/etc/alloy/certs/cert.pem"
key_file = "/etc/alloy/certs/prometheus.key" key_file = "/etc/alloy/certs/key.pem"
ca_file = "/etc/alloy/certs/root_ca.crt" ca_file = "/etc/alloy/certs/root_ca.crt"
} }
} }
@@ -31,7 +31,6 @@ discovery.docker "linux" {
// discovery.relabel "logs_integrations_docker" { // discovery.relabel "logs_integrations_docker" {
// targets = [] // targets = []
// rule { // rule {
// source_labels = ["__meta_docker_container_name"] // source_labels = ["__meta_docker_container_name"]
// regex = "/(.*)" // regex = "/(.*)"