templatefile/data/config/loki-stack.json

205 lines
4.6 KiB
JSON
Raw Normal View History

{
"Globals": {
"Vars": {
"PrometheusPort": "9090"
}
},
"Name": "loki-stack",
"Services": {
"Alertmanager": {
"ConfigFiles": [
{
"destination": "/etc/alertmanager/alertmanager.yml",
"group": "prometheus",
"mode": "600",
"owner": "prometheus",
"source": "alertmanager.yml.pktpl.hcl"
}
],
"Daemons": {
"prometheus": {
"enabled": true,
"name": "alertmanager",
"type": "auto"
}
},
"Packages": {
"alertmanager": {
"action": "install",
"name": "alertmanager"
},
"nodeExporter": {
"action": "install",
"name": "prometheus-node-exporter"
}
},
"Users": {
"prometheus": {
"group": "prometheus",
"home": "/var/lib/prometheus",
"shell": "/sbin/nologin",
"username": "prometheus"
}
},
"Vars": {}
},
"Grafana": {
"ConfigFiles": [
{
"destination": "/etc/grafana.ini",
"group": "grafana",
"mode": "600",
"owner": "grafana",
"source": "grafana.ini.pktpl.hcl"
}
],
"Daemons": {
"grafana": {
"enabled": true,
"name": "grafana",
"type": "auto"
}
},
"Packages": {
"grafana": {
"action": "install",
"name": "grafana"
},
"nodeExporter": {
"action": "install",
"name": "prometheus-node-exporter"
}
},
"Users": {
"grafana": {
"group": "grafana",
"home": "/srv/grafana",
"shell": "/bin/nologin",
"username": "grafana"
}
},
"Vars": {
"AppMode": "production",
"DomainName": "www.grafana.local",
"HTTPPort": "80",
"HostName": "grafana.local",
"UserName": "grafana"
}
},
"Loki": {
"ConfigFiles": [
{
"destination": "/etc/loki/loki-local-config.yaml",
"group": "grafana",
"mode": "600",
"owner": "loki",
"service": "loki",
"source": "loki-local-config.pktpl.hcl"
}
],
"Daemons": {
"Loki": {
"enabled": true,
"name": "loki"
}
},
"Packages": {
"loki": {
"action": "install",
"name": "loki"
},
"nodeExporter": {
"action": "install",
"name": "prometheus-node-exporter"
},
"promtail": {
"action": "install",
"name": "loki-promtail"
}
},
"Repositories": {
"AlpineTesting": {
"enabled": true,
"name": "testing",
"type": "apk",
"url": "http://mirrors.bfsu.edu.cn/alpine/edge/testing"
}
},
"Users": {
"loki": {
"group": "grafana",
"home": "/srv/loki",
"shell": "/bin/nologin",
"username": "loki"
}
},
"Vars": {
"AlertManagerURL": "http://localhost:9092",
"AuthEnabled": false,
"GRPCPort": "9095",
"Group": "grafana",
"HTTPPort": "3099",
"LogLevel": "error",
"ObjectStore": "filesystem",
"S2": {
"APIKey": "",
"APISecretKey": "",
"BucketName": "",
"URL": ""
},
"SharedStore": "filesystem",
"StorageRoot": "/var/loki",
"User": "loki"
}
},
"Prometheus": {
"ConfigFiles": [
{
"destination": "/etc/prometheus/prometheus.yml",
"group": "prometheus",
"mode": "600",
"owner": "prometheus",
"source": "prometheus.yml.pktpl.hcl"
}
],
"Daemons": {
"prometheus": {
"enabled": true,
"name": "prometheus",
"type": "auto"
}
},
"Packages": {
"nodeExporter": {
"action": "install",
"name": "prometheus-node-exporter"
},
"prometheus": {
"action": "install",
"name": "prometheus"
}
},
"Users": {
"prometheus": {
"group": "prometheus",
"home": "/var/lib/prometheus",
"shell": "/sbin/nologin",
"username": "prometheus"
}
},
"Vars": {
"Scrapers": [
{
"MetricsPath": "/metrics",
"Name": "Prometheus",
"Scheme": "http",
"Targets": [
"localhost:9001"
]
}
]
}
}
}
}