cbbceb0ad3
Add container for prometheus, mysqld_exporter, node_exporter and haproxy_exporter Change-Id: I6e4eb0391380e594b708a67365e240d3eeafd88b
10 lines
263 B
Bash
10 lines
263 B
Bash
#!/bin/bash
|
|
|
|
# Create log directory, with appropriate permissions
|
|
if [[ ! -d "/var/log/kolla/prometheus" ]]; then
|
|
mkdir -p /var/log/kolla/prometheus
|
|
fi
|
|
if [[ $(stat -c %a /var/log/kolla/prometheus) != "755" ]]; then
|
|
chmod 755 /var/log/kolla/prometheus
|
|
fi
|