ice-monitoring.json
This file should be supplied to the helm upgrade command with -f ice-monitoring.json:
{
"charts": {
"iceMonitoring": {
"values": {
"promtail": {
"extraVolumes": [
{
"name": "varlog",
"hostPath": {
"path": "/var/log"
}
}
],
"extraVolumeMounts": [
{
"name": "varlog",
"mountPath": "/host/var/log",
"readOnly": true
}
],
"config": {
"snippets": {
"extraScrapeConfigs": "- job_name: system\n static_configs:\n - targets:\n - localhost\n labels:\n job: varlogs\n __path__: /host/var/log/*.log\n"
}
}
},
"grafana": {
"grafana.ini": {
"smtp": {
"enabled": true,
"from_address": "___CLUSTER___EMAIL___ADDRESS___",
"from_name": "___EMAIL___USER___COMMON___NAME___",
"host": "___SMTP___SERVER___: ___SMTP___PORT___",
"skip_verify": true,
"user": "apikey",
"password": "___EMAIL___API___KEY___"
}
}
}
}
}
}
}
For cloud-native deployments, such as Amazon EKS or Azure AKS, then remove the promtail section, as in the following JSON file sample:
{
"charts": {
"iceMonitoring": {
"values": {
"grafana": {
"grafana.ini": {
"smtp": {
"enabled": true,
"from_address": "___CLUSTER___EMAIL___ADDRESS___",
"from_name": "___EMAIL___USER___COMMON___NAME___",
"host": "___SMTP___SERVER___: ___SMTP___PORT___",
"skip_verify": true,
"user": "apikey",
"password": "___EMAIL___API___KEY___"
}
}
}
}
}
}
}
For cloud-native deployments, such as Amazon EKS or Azure AKS, if SMTP email notification is not being used, then remove the smtp section to disable SMTP, as in the following JSON file sample:
{
"charts": {
"iceMonitoring": {
"values": {
"grafana": {
"grafana.ini": {
"smtp": {
"enabled": false
}
}
}
}
}
}
}