eBay / nvidiagpubeat

nvidiagpubeat is an elastic beat that uses NVIDIA System Management Interface (nvidia-smi) to monitor NVIDIA GPU devices and can ingest metrics into Elastic search cluster, with support for both 6.x and 7.x versions of beats. nvidia-smi is a command line utility, based on top of the NVIDIA Management Library (NVML), intended to aid in the management and monitoring of NVIDIA GPU devices.
https://github.com/eBay/nvidiagpubeat
Apache License 2.0
54 stars 22 forks source link

Wrong template exported by nvidiagpubeat #34

Open nperron opened 3 years ago

nperron commented 3 years ago

The template exported is wrong... and it seems to be the cause of timestamp mapped as a string (#15) Whatever I set as argument (i.e: ./nvidiagpubeat -c nvidiagpubeat.yml -e -d "*" -E seccomp.enabled=false -v export template), the template is this:

{
  "index_patterns": [
    "nvidiagpubeat-6.8.15-*"
  ],
  "mappings": {
    "doc": {
      "_meta": {
        "version": "6.8.15"
      },
      "date_detection": false,
      "dynamic_templates": [
        {
          "strings_as_keyword": {
            "mapping": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "match_mapping_type": "string"
          }
        }
      ],
      "properties": {}
    }
  },
  "order": 1,
  "settings": {
    "index": {
      "mapping": {
        "total_fields": {
          "limit": 10000
        }
      },
      "number_of_routing_shards": 30,
      "query": {
        "default_field": [
          "fields.*"
        ]
      },
      "refresh_interval": "5s"
    }
  }
}

This is completly different from https://github.com/eBay/nvidiagpubeat/blob/master/nvidiagpubeat.template.json where there is at least this:

[...]
      "properties": {
        "@timestamp": {
          "type": "date"
        },
[...]
deepujain commented 2 years ago

Ack