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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...