Skip to content

WarpScript macro: Return a list of all unique label values of a GTS list

Notifications You must be signed in to change notification settings

miton18/forge-listlabelvalues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ListLabelValues

labels

Return a list of all unique label values of a GTS list

Getting started / Usage

To get started with ListLabelValues, the easiest way is to go on Quantum and follow the following instructions.

'ListLabelValues' FIMPORT

// Let's get some timeseries
[
  NEWGTS { 'host' 'a' } RELABEL
  NEWGTS { 'host' 'b' } RELABEL
  NEWGTS { 'host' 'b' } RELABEL
  NEWGTS {            } RELABEL
]

// put the interesting label
'host'

// Call the macro !
@ListLabelValues

There is a list of Time series with twice time the b host, and one without host value. We will get the list of unique hosts, so: a & b

Issues

Just open a new issue on macro Github repository

Licensing

The code in this project is licensed under MIT license.

About

WarpScript macro: Return a list of all unique label values of a GTS list

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published