We’ll be back soon!
We’re performing some hacks at the moment. diff --git a/apache/maintenance.png b/apache/var/www/maintenance/index.png similarity index 100% rename from apache/maintenance.png rename to apache/var/www/maintenance/index.png diff --git a/postgresql/pg_hba.conf b/postgresql/etc/postgresql/pg_hba.conf similarity index 100% rename from postgresql/pg_hba.conf rename to postgresql/etc/postgresql/pg_hba.conf diff --git a/postgresql/postgresql_custom.conf b/postgresql/etc/postgresql/postgresql.conf similarity index 55% rename from postgresql/postgresql_custom.conf rename to postgresql/etc/postgresql/postgresql.conf index 65c2e9f..e9efbc1 100644 --- a/postgresql/postgresql_custom.conf +++ b/postgresql/etc/postgresql/postgresql.conf @@ -1,5 +1,5 @@ -... +## OTHER CONFIG password_encryption = scram-sha-256 -... +## END CONFIG diff --git a/prometheus/exporters/etc/default/prometheus-apache-exporter.conf b/prometheus/exporters/etc/default/prometheus-apache-exporter.conf new file mode 100644 index 0000000..a8e2ad2 --- /dev/null +++ b/prometheus/exporters/etc/default/prometheus-apache-exporter.conf @@ -0,0 +1 @@ +ARGS='--scrape_uri="http://127.0.0.1/server-status?auto"' diff --git a/prometheus/exporters/etc/default/prometheus-nginx-exporter.conf b/prometheus/exporters/etc/default/prometheus-nginx-exporter.conf new file mode 100644 index 0000000..3068016 --- /dev/null +++ b/prometheus/exporters/etc/default/prometheus-nginx-exporter.conf @@ -0,0 +1 @@ +ARGS="-nginx.scrape-uri http://127.0.0.1:80/stub_status" diff --git a/prometheus/exporters/etc/default/prometheus-postgresql-exporter.conf b/prometheus/exporters/etc/default/prometheus-postgresql-exporter.conf new file mode 100644 index 0000000..afb72f4 --- /dev/null +++ b/prometheus/exporters/etc/default/prometheus-postgresql-exporter.conf @@ -0,0 +1,2 @@ +# peer mode +DATA_SOURCE_NAME='host=/var/run/postgresql sslmode=disable' diff --git a/prometheus/exporters/etc/systemd/systemd/prometheus-apache-exporter.service b/prometheus/exporters/etc/systemd/systemd/prometheus-apache-exporter.service new file mode 100644 index 0000000..fbf05b1 --- /dev/null +++ b/prometheus/exporters/etc/systemd/systemd/prometheus-apache-exporter.service @@ -0,0 +1,15 @@ +[Unit] +Description=Prometheus exporter for Apache +Documentation=https://github.com/Lusitaniae/apache_exporter +Wants=network-online.target +After=network-online.target + +[Service] +User=root +Group=root +Type=simple +EnvironmentFile=/etc/default/prometheus-apache-exporter +ExecStart=/usr/bin/apache_exporter $ARGS + +[Install] +WantedBy=multi-user.target diff --git a/prometheus/exporters/etc/systemd/systemd/prometheus-mysqld-exporter.service b/prometheus/exporters/etc/systemd/systemd/prometheus-mysqld-exporter.service new file mode 100644 index 0000000..0b9436c --- /dev/null +++ b/prometheus/exporters/etc/systemd/systemd/prometheus-mysqld-exporter.service @@ -0,0 +1,15 @@ +[Unit] +Description=Prometheus exporter for MariaDB +Documentation=https://github.com/prometheus/mysqld_exporter +Wants=network-online.target +After=network-online.target + +[Service] +User=root +Group=root +Type=simple +EnvironmentFile=/etc/default/prometheus-mariadb-exporter +ExecStart=/usr/bin/mysqld_exporter $ARGS + +[Install] +WantedBy=multi-user.target