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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...