AppD Archive

Setting roll-up qualifier with a custom metric via a script monitoring extension

CommunityUser
Splunk Employee
Splunk Employee

If I create a custom metric via a monitoring extension written in Java, I can set the metric qualifiers (aggregation qualifier, time roll-up qualifier and cluster roll-up qualifier) in the MetricWriter when I get it from the AManagedMonitor.  How can I do the same if the metrics are created via a script?  The documentation only discusses writting a line with the metric name and value similar to "name=Custom Metrics|device|metric,value=##".  Can I add some additional text along the lines of "cluster-rollup=COLLECTIVE" to define how the metric cluster rollup should work?

Are there any good docs on exactly what can be passed via a text line to the machine agent?   I can't seem to find them.

Thanks,

Barry

0 Karma

Arun_Dasetty
Super Champion

Hi Barry,

Can you try below syntax in script file and see how it goes:

name=Custom Metrics|Disks|C|Space left %,value=$spacePerc,aggregator=OBSERVATION,time-rollup=CURRENT,cluster-rollup=COLLECTIVE

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
That seems to have worked - thanks!

-Barry

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...