n8n-free-templates/Misc/server_health_grafana.json
2025-05-19 00:56:45 -05:00

355 lines
7.4 KiB
JSON

{
"name": "Server Health Grafana",
"nodes": [
{
"parameters": {
"content": "Automated workflow: Server Health Grafana",
"height": 530,
"width": 1100,
"color": 5
},
"id": "d2ba1e2d-bcbc-45e4-bd37-73668fce5802",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-480,
-240
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "server-health-grafana"
},
"id": "eb7fca76-66e2-4fa1-ab00-09b4c0817961",
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-300,
0
]
},
{
"parameters": {
"chunkSize": 400,
"chunkOverlap": 40
},
"id": "7db01be8-61d6-4c89-9800-db7b62eb7fcf",
"name": "Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
"typeVersion": 1,
"position": [
-130,
0
]
},
{
"parameters": {
"model": "embed-english-v3.0",
"options": {}
},
"id": "66a0f30e-32ee-4ef3-823c-82b4a1af354c",
"name": "Embeddings",
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
"typeVersion": 1,
"position": [
70,
0
],
"credentials": {
"cohereApi": {
"id": "COHERE_API",
"name": "Cohere"
}
}
},
{
"parameters": {
"mode": "insert",
"options": {},
"indexName": "server_health_grafana"
},
"id": "6ea57ca4-3426-4820-a293-78565186c35e",
"name": "Weaviate Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate",
"typeVersion": 1,
"position": [
270,
0
],
"credentials": {
"weaviateApi": {
"id": "WEAVIATE_API",
"name": "Weaviate account"
}
}
},
{
"parameters": {
"indexName": "server_health_grafana"
},
"id": "443a366d-7547-4bda-b066-91fb43d60aed",
"name": "Weaviate Query",
"type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate",
"typeVersion": 1,
"position": [
270,
-180
],
"credentials": {
"weaviateApi": {
"id": "WEAVIATE_API",
"name": "Weaviate account"
}
}
},
{
"parameters": {
"name": "Weaviate",
"description": "Vector context"
},
"id": "fdbc5d42-f717-414e-a775-235a0de386e9",
"name": "Vector Tool",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"typeVersion": 1,
"position": [
450,
-180
]
},
{
"parameters": {},
"id": "48c210ef-2004-4ef4-b2f9-d2dab2f5d391",
"name": "Window Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
450,
-40
]
},
{
"parameters": {
"options": {}
},
"id": "86681bd5-9377-4348-a411-caf2a0b9887b",
"name": "Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1,
"position": [
450,
-340
],
"credentials": {
"anthropicApi": {
"id": "ANTHROPIC_API",
"name": "Anthropic"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "Process the following data for task 'Server Health Grafana':\n\n{{ $json }}",
"options": {
"systemMessage": "You are an assistant for Server Health Grafana"
}
},
"id": "78773e49-4558-4ec1-a740-adfd2f177a9f",
"name": "RAG Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1,
"position": [
720,
-40
]
},
{
"parameters": {
"operation": "append",
"documentId": {
"__rl": true,
"value": "SHEET_ID",
"mode": "list",
"cachedResultName": "Server Health Grafana"
},
"sheetName": {
"__rl": true,
"value": "Log",
"mode": "list",
"cachedResultName": "Log"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Status": "={{$json[\"RAG Agent\"].text}}"
},
"schema": []
}
},
"id": "77eccce3-bf9e-4d3a-9262-820db8faaeec",
"name": "Append Sheet",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4,
"position": [
930,
-40
],
"credentials": {
"googleSheetsOAuth2Api": {
"id": "SHEETS_API",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"channel": "#alerts",
"text": "Server Health Grafana error: {$json.error.message}"
},
"id": "2f5f6b7a-45d8-4f54-8b06-af95c6032926",
"name": "Slack Alert",
"type": "n8n-nodes-base.slack",
"typeVersion": 1,
"position": [
930,
120
],
"credentials": {
"slackApi": {
"id": "SLACK_API",
"name": "Slack"
}
}
}
],
"connections": {
"Webhook Trigger": {
"main": [
[
{
"node": "Text Splitter",
"type": "main",
"index": 0
},
{
"node": "Window Memory",
"type": "main",
"index": 0
}
]
]
},
"Text Splitter": {
"main": [
[
{
"node": "Embeddings",
"type": "main",
"index": 0
}
]
],
"ai_textSplitter": [
[
{
"node": "Weaviate Insert",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"Embeddings": {
"ai_embedding": [
[
{
"node": "Weaviate Insert",
"type": "ai_embedding",
"index": 0
},
{
"node": "Weaviate Query",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Weaviate Insert": {
"ai_document": [
[]
]
},
"Weaviate Query": {
"ai_vectorStore": [
[
{
"node": "Vector Tool",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"Vector Tool": {
"ai_tool": [
[
{
"node": "RAG Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Window Memory": {
"ai_memory": [
[
{
"node": "RAG Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Chat Model": {
"ai_languageModel": [
[
{
"node": "RAG Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"RAG Agent": {
"main": [
[
{
"node": "Append Sheet",
"type": "main",
"index": 0
}
]
],
"onError": [
[
{
"node": "Slack Alert",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"triggerCount": 1
}