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