door7302 / openjts

The Open Juniper Telemetry Stack Project
BSD 3-Clause "New" or "Revised" License
43 stars 7 forks source link

bng pppoe per vlan count #44

Open guilhermefigueiredo opened 2 months ago

guilhermefigueiredo commented 2 months ago

Is it possible in the bng template to add an snmp input to collect and count the number of clients x vlan? See if we can do it this way:

on telegraf:

[[inputs.snmp.table]] oid = ".1.3.6.1.4.1.2636.3.64.1.1.1.3" name = "jnxSubscriberTable"

[[inputs.snmp.table.field]] oid = ".1.3.6.1.4.1.2636.3.64.1.1.1.3.1.16" name = "jnxSubscriberPhysicalInterface" is_tag = true

[[inputs.snmp.table.field]] oid = ".1.3.6.1.4.1.2636.3.64.1.1.1.3.1.3" name = "jnxSubscriberUserName" is_tag = true

and this query on grafana: SELECT count("jnxSubscriberUserName") FROM "jnxSubscriberTable" WHERE ("agent_host"::tag =~ /^$rtr$/) AND $timeFilter GROUP BY time($interval), "jnxSubscriberPhysicalInterface"::tag fill(none)

door7302 commented 1 month ago

Do you know if we could do that directly from gNMI ? or at least Netconf ?