Discussion:
[influxdb] Telegraf TAG
Paulo Henrique Peres
2017-04-28 18:06:32 UTC
Permalink
Hi,

I have the following config on telegraf.

[[inputs.snmp]]
interval= "5m"
agents = [ "sr-vta4a:161","sr-vta4b:161" ]
version = 2
community = "public"
timeout= 2.0
name = "hosts_resources"
[[inputs.snmp.field]]
name="bras"
oid="1.3.6.1.2.1.1.5.0"
is_tag=true
[[inputs.snmp.field]]
name="tFPResSubHostTotal_1"
oid="1.3.6.1.4.1.6527.3.1.2.2.3.46.1.63.1.1.1"
[[inputs.snmp.field]]
name="tFPResSubHostAlloc_1"
oid="1.3.6.1.4.1.6527.3.1.2.2.3.46.1.64.1.1.1"





How add tag without snmp? Example: slot=1

Tks,

Paulo
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/08a4a622-9411-496e-9552-21e6f59ff371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
p***@gmail.com
2017-05-07 06:13:14 UTC
Permalink
You mean add the static value `slot=1` to all emitted points?
Use the `tags` config property. See https://docs.influxdata.com/telegraf/v1.2/administration/configuration/#input-config-tags

-Patrick
Post by Paulo Henrique Peres
Hi,
I have the following config on telegraf.
[[inputs.snmp]]
  interval= "5m"
  agents = [ "sr-vta4a:161","sr-vta4b:161" ]
  version = 2
  community = "public"
  timeout= 2.0
  name = "hosts_resources"
    [[inputs.snmp.field]]
      name="bras"
      oid="1.3.6.1.2.1.1.5.0"
      is_tag=true
    [[inputs.snmp.field]]
      name="tFPResSubHostTotal_1"
      oid="1.3.6.1.4.1.6527.3.1.2.2.3.46.1.63.1.1.1"
    [[inputs.snmp.field]]
      name="tFPResSubHostAlloc_1"
      oid="1.3.6.1.4.1.6527.3.1.2.2.3.46.1.64.1.1.1"
How add tag without snmp? Example: slot=1
Tks,
Paulo
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/3054f7f6-5311-417f-8a36-c8aa83cff193%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...