2019-04-08 21:41:23 +02:00
|
|
|
{
|
2019-09-27 00:02:33 +02:00
|
|
|
_config+:: {
|
2020-03-18 15:12:53 +01:00
|
|
|
namespace: 'monitoring',
|
|
|
|
},
|
2019-04-08 21:41:23 +02:00
|
|
|
// Enable or disable additional modules
|
2019-05-07 17:16:16 +02:00
|
|
|
modules: [
|
2020-03-18 15:12:53 +01:00
|
|
|
{
|
|
|
|
// After deployment, run the create_gmail_auth.sh script from scripts dir.
|
|
|
|
name: 'smtpRelay',
|
|
|
|
enabled: false,
|
2020-05-26 01:23:56 +02:00
|
|
|
file: import 'modules/smtp_relay.jsonnet',
|
2020-03-18 15:12:53 +01:00
|
|
|
},
|
2019-05-07 17:16:16 +02:00
|
|
|
{
|
|
|
|
name: 'armExporter',
|
2019-05-15 22:28:47 +02:00
|
|
|
enabled: false,
|
2020-05-26 01:23:56 +02:00
|
|
|
file: import 'modules/arm_exporter.jsonnet',
|
2019-05-07 17:16:16 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'upsExporter',
|
2019-05-15 22:28:47 +02:00
|
|
|
enabled: false,
|
2020-05-26 01:23:56 +02:00
|
|
|
file: import 'modules/ups_exporter.jsonnet',
|
2019-05-07 17:16:16 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'metallbExporter',
|
2019-05-15 22:28:47 +02:00
|
|
|
enabled: false,
|
2020-05-26 01:23:56 +02:00
|
|
|
file: import 'modules/metallb.jsonnet',
|
2019-05-07 17:16:16 +02:00
|
|
|
},
|
2020-08-16 05:45:18 +02:00
|
|
|
{
|
|
|
|
name: 'nginxExporter',
|
2020-08-17 14:06:28 +02:00
|
|
|
enabled: false,
|
2020-08-16 05:45:18 +02:00
|
|
|
file: import 'modules/nginx.jsonnet',
|
|
|
|
},
|
2019-05-07 17:16:16 +02:00
|
|
|
{
|
|
|
|
name: 'traefikExporter',
|
2019-08-22 00:13:13 +02:00
|
|
|
enabled: false,
|
2020-05-26 01:23:56 +02:00
|
|
|
file: import 'modules/traefik.jsonnet',
|
2019-05-07 17:16:16 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'elasticExporter',
|
2019-05-15 22:28:47 +02:00
|
|
|
enabled: false,
|
2020-05-26 01:23:56 +02:00
|
|
|
file: import 'modules/elasticsearch_exporter.jsonnet',
|
2019-05-07 17:16:16 +02:00
|
|
|
},
|
2021-10-08 20:46:39 +02:00
|
|
|
{
|
|
|
|
name: 'speedtestExporter',
|
|
|
|
enabled: false,
|
|
|
|
file: import 'modules/speedtest_exporter.jsonnet',
|
|
|
|
},
|
2019-05-07 17:16:16 +02:00
|
|
|
],
|
2019-04-08 21:41:23 +02:00
|
|
|
|
2019-08-21 02:46:29 +02:00
|
|
|
k3s: {
|
2019-08-22 00:13:13 +02:00
|
|
|
enabled: false,
|
2020-08-16 06:36:54 +02:00
|
|
|
master_ip: ['192.168.1.15'],
|
2019-08-21 02:46:29 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
// Domain suffix for the ingresses
|
2020-08-16 06:36:54 +02:00
|
|
|
suffixDomain: '192.168.1.15.nip.io',
|
2020-03-02 20:46:38 +01:00
|
|
|
// If TLSingress is true, a self-signed HTTPS ingress with redirect will be created
|
|
|
|
TLSingress: true,
|
2020-03-18 15:12:53 +01:00
|
|
|
// If UseProvidedCerts is true, provided files will be used on created HTTPS ingresses.
|
|
|
|
// Use a wildcard certificate for the domain like ex. "*.192.168.99.100.nip.io"
|
2020-03-02 20:46:38 +01:00
|
|
|
UseProvidedCerts: false,
|
|
|
|
TLSCertificate: importstr 'server.crt',
|
|
|
|
TLSKey: importstr 'server.key',
|
2019-08-20 01:20:17 +02:00
|
|
|
|
2020-06-23 00:38:27 +02:00
|
|
|
// Persistent volume configuration
|
2019-04-08 21:41:23 +02:00
|
|
|
enablePersistence: {
|
2020-06-23 00:38:27 +02:00
|
|
|
// Setting these to false, defaults to emptyDirs.
|
2019-04-08 21:41:23 +02:00
|
|
|
prometheus: false,
|
|
|
|
grafana: false,
|
2020-06-23 00:38:27 +02:00
|
|
|
// If using a pre-created PV, fill in the names below. If blank, they will use the default StorageClass
|
2020-06-17 20:39:59 +02:00
|
|
|
prometheusPV: '',
|
|
|
|
grafanaPV: '',
|
2020-06-23 00:38:27 +02:00
|
|
|
// If required to use a specific storageClass, keep the PV names above blank and fill the storageClass name below.
|
|
|
|
storageClass: '',
|
|
|
|
// Define the PV sizes below
|
|
|
|
prometheusSizePV: '2Gi',
|
2020-06-17 20:39:59 +02:00
|
|
|
grafanaSizePV: '20Gi',
|
2019-04-08 21:41:23 +02:00
|
|
|
},
|
|
|
|
|
2020-06-19 14:58:49 +02:00
|
|
|
// Configuration for Prometheus deployment
|
|
|
|
prometheus: {
|
|
|
|
retention: '15d',
|
|
|
|
scrapeInterval: '30s',
|
|
|
|
scrapeTimeout: '30s',
|
|
|
|
},
|
2019-04-08 21:41:23 +02:00
|
|
|
grafana: {
|
2020-06-23 22:24:33 +02:00
|
|
|
// Grafana "from" email
|
2019-05-03 19:00:05 +02:00
|
|
|
from_address: 'myemail@gmail.com',
|
2020-06-23 22:24:33 +02:00
|
|
|
// Plugins to be installed at runtime.
|
|
|
|
//Ex. plugins: ['grafana-piechart-panel', 'grafana-clock-panel'],
|
|
|
|
plugins: [],
|
2020-07-14 16:26:12 +02:00
|
|
|
//Ex. env: [ { name: 'http_proxy', value: 'host:8080' } ]
|
|
|
|
env: []
|
2019-04-08 21:41:23 +02:00
|
|
|
},
|
2019-05-07 17:16:16 +02:00
|
|
|
}
|