<div dir="ltr"><div style="font-size:12.8000001907349px">Hello!</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I'm struggling to derive meaningful metric names out of my collectd configuration for grabbing CoS statistics from some Juniper switches.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">The <Data> definition looks like this:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div><Data "jnxCosQstatTailDropPkts"></div><div>    Type "cos_dropped"</div><div>    Table true</div><div>    Values "1.3.6.1.4.1.2636.3.15.4.1.11"</div><div></Data></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>The OID is structured like this:</div><div><br></div><div>1.3.6.1.4.1.2636.3.15.4.1.11.<snmp_interface_index>.<output-queue-number></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Using the aforementioned Data definition, the metric names end up looking like this:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">cos_dropped-503_0</div><div style="font-size:12.8000001907349px">cos_dropped-503_1</div><div style="font-size:12.8000001907349px">cos_dropped-503_2</div><div style="font-size:12.8000001907349px">cos_dropped-503_3</div><div style="font-size:12.8000001907349px">cos_dropped-503_4</div><div style="font-size:12.8000001907349px">cos_dropped-503_5</div><div style="font-size:12.8000001907349px">cos_dropped-503_6</div><div style="font-size:12.8000001907349px">cos_dropped-503_7</div><div style="font-size:12.8000001907349px"><div>cos_dropped-505_0</div><div>cos_dropped-505_1</div><div>cos_dropped-505_2</div><div>cos_dropped-505_3</div><div>cos_dropped-505_4</div><div>cos_dropped-505_5</div><div>cos_dropped-505_6</div><div>cos_dropped-505_7</div></div><div style="font-size:12.8000001907349px">...</div><div style="font-size:12.8000001907349px">etc.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I tried to insert 'Instance "IF-MIB::ifName"' into the <Data> definition but that didn't do anything except cause metrics to stop logging. ;)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">ifName looks something like this:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>ifName.6      = lo0</div><div>ifName.35     = vme</div><div>ifName.49     = vcp-0</div><div>ifName.51     = vcp-1</div><div>ifName.503    = ge-0/0/1</div><div>ifName.505    = ge-0/0/10</div><div>ifName.507    = ge-0/0/11</div><div>ifName.509    = ge-0/0/12</div><div>ifName.511    = ge-0/0/13</div><div>ifName.513    = ge-0/0/14</div><div>ifName.515    = ge-0/0/15</div><div>ifName.517    = ge-0/0/16</div><div>ifName.519    = ge-0/0/17</div><div>ifName.521    = ge-0/0/18</div><div>ifName.523    = ge-0/0/19</div><div>ifName.525    = ge-0/0/2</div><div>ifName.527    = ge-0/0/20</div><div>ifName.529    = ge-0/0/21</div><div>ifName.531    = ge-0/0/22</div><div>ifName.533    = ge-0/0/23</div><div>ifName.535    = ge-0/0/3</div><div>ifName.537    = ge-0/0/4</div><div>ifName.539    = ge-0/0/5</div><div>ifName.541    = ge-0/0/6</div><div>ifName.543    = ge-0/0/7</div><div>ifName.545    = ge-0/0/8</div><div>ifName.547    = ge-0/0/9</div><div>ifName.549    = ge-0/0/0</div><div>ifName.551    = vlan</div><div>...</div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">You can see the mapping would work quite well if it weren't for the trailing queue number in the jnxCosQstatTailDropPkts OID.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">BTW, the SNMP index number mapping to interfaces can vary across devices and also between reboots. (This is pretty standard AFAIK.)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Is there any way I could potentially get my metrics logged with names like...</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>cos_dropped-ge_0_0_1-0</div><div>cos_dropped-ge_0_0_1-1</div><div>cos_dropped-ge_0_0_1-2</div><div>cos_dropped-ge_0_0_1-3</div><div>cos_dropped-ge_0_0_1-4</div><div>cos_dropped-ge_0_0_1-5</div><div>cos_dropped-ge_0_0_1-6</div><div>cos_dropped-ge_0_0_1-7</div><div>cos_dropped-ge_0_0_10-0</div><div>cos_dropped-ge_0_0_10-1</div><div>cos_dropped-ge_0_0_10-2</div><div>cos_dropped-ge_0_0_10-3</div><div>cos_dropped-ge_0_0_10-4</div><div>cos_dropped-ge_0_0_10-5</div><div>cos_dropped-ge_0_0_10-6</div><div>cos_dropped-ge_0_0_10-7</div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Specifically, 'cos_dropped' + interface name + output queue number.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks for your help,</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">-M</div></div>