host-metrics/configs/opensearch/index-template.json
2026-09-17 22:31:35 +02:00

179 lines
4.1 KiB
JSON

{
"index_patterns": [
"host-metrics-v1-*"
],
"priority": 200,
"version": 1,
"template": {
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"refresh_interval": "5s",
"index.mapping.total_fields.limit": 500
},
"mappings": {
"dynamic": true,
"properties": {
"@timestamp": {
"type": "date"
},
"ingested_at": {
"type": "date"
},
"timestamp": {
"type": "long"
},
"name": {
"type": "keyword"
},
"tags": {
"type": "object",
"dynamic": true
},
"fields": {
"type": "object",
"dynamic": true,
"properties": {
"usage_active": {
"type": "double"
},
"used_percent": {
"type": "double"
},
"load1_per_cpu": {
"type": "double"
},
"uptime": {
"type": "double"
},
"n_cpus": {
"type": "double"
},
"load1": {
"type": "double"
},
"usage_iowait": {
"type": "double"
},
"usage_user": {
"type": "double"
},
"usage_system": {
"type": "double"
},
"usage_steal": {
"type": "double"
},
"load5": {
"type": "double"
},
"load15": {
"type": "double"
},
"available": {
"type": "double"
},
"cached": {
"type": "double"
},
"buffered": {
"type": "double"
},
"in_per_sec": {
"type": "double"
},
"out_per_sec": {
"type": "double"
},
"running": {
"type": "double"
},
"blocked": {
"type": "double"
},
"zombie": {
"type": "double"
},
"context_switches_per_sec": {
"type": "double"
},
"interrupts_per_sec": {
"type": "double"
},
"inodes_used_percent": {
"type": "double"
},
"io_busy_percent": {
"type": "double"
},
"free": {
"type": "double"
},
"total": {
"type": "double"
},
"read_bytes_per_sec": {
"type": "double"
},
"write_bytes_per_sec": {
"type": "double"
},
"reads_per_sec": {
"type": "double"
},
"writes_per_sec": {
"type": "double"
},
"iops_in_progress": {
"type": "double"
},
"bytes_recv_per_sec": {
"type": "double"
},
"bytes_sent_per_sec": {
"type": "double"
},
"err_in_per_sec": {
"type": "double"
},
"drop_in_per_sec": {
"type": "double"
},
"packets_recv_per_sec": {
"type": "double"
},
"packets_sent_per_sec": {
"type": "double"
},
"err_out_per_sec": {
"type": "double"
},
"drop_out_per_sec": {
"type": "double"
}
}
}
},
"dynamic_templates": [
{
"tags": {
"path_match": "tags.*",
"mapping": {
"type": "keyword",
"ignore_above": 1024
}
}
},
{
"numeric_fields": {
"path_match": "fields.*",
"mapping": {
"type": "double"
}
}
}
]
}
}
}