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
privileged: true
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
- ./certs:/etc/alloy/certs
- /var/lib/ssl:/etc/alloy/certs:ro
ports:
- '12345:12345'
command:

View File

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