generic cert paths
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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 = "/(.*)"
|
||||||
|
|||||||
Reference in New Issue
Block a user