first commit
This commit is contained in:
34
grafana/dashboards/init.sh
Normal file
34
grafana/dashboards/init.sh
Normal file
@@ -0,0 +1,34 @@
|
||||
curl -X POST http://admin:admin@grafana:3000/api/datasources -H "Content-Type: application/json" -d '{
|
||||
"name": "DS_WAZUH_INDEXER",
|
||||
"type": "elasticsearch",
|
||||
"access": "proxy",
|
||||
"url": "https://wazuh.indexer:9200",
|
||||
"basicAuth": true,
|
||||
"basicAuthUser": "admin",
|
||||
"secureJsonData": {
|
||||
"basicAuthPassword": "SecretPassword"
|
||||
},
|
||||
"jsonData": {
|
||||
"index": "wazuh-*",
|
||||
"timeField": "timestamp",
|
||||
"tlsSkipVerify": true,
|
||||
"logMessageField": "rule.description",
|
||||
"logLevelField": "rule.level"
|
||||
}
|
||||
}'
|
||||
|
||||
curl -X POST http://admin:admin@grafana:3000/api/dashboards/db \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"dashboard": '"$(cat /grafana/dashboards/wazuh.json)"',
|
||||
"folderId": 0,
|
||||
"overwrite": true
|
||||
}'
|
||||
|
||||
curl -X POST http://admin:admin@grafana:3000/api/dashboards/db \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"dashboard": '"$(cat /grafana/dashboards/zabbix-server.json)"',
|
||||
"folderId": 0,
|
||||
"overwrite": true
|
||||
}'
|
||||
Reference in New Issue
Block a user