Skip to content

Support host and service templates to send variables to Elasticsearch #6837

@wols

Description

@wols

It would be great if we could select host.vars and service.vars additional sent to Elasticsearch using the ElastichsearchWriter. The idea was inspired by #6213.

This should follow the template logic of InfluxdbWriter:

object ElasticsearchWriter "elasticsearch" {
  # other options...

  host_template = {
    tags = {
      location = "$host.vars.geodata$"
    }
  }
  service_template = {
    tags = {
      snmp_oid = "$service.vars.snmpv3_oid$"
    }
  }
}

See also Tags vs Fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions