Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Rename a series with a custom template #36

Closed
miton18 opened this issue Apr 5, 2019 · 0 comments · Fixed by #38
Closed

Rename a series with a custom template #36

miton18 opened this issue Apr 5, 2019 · 0 comments · Fixed by #38
Assignees

Comments

@miton18
Copy link
Contributor

miton18 commented Apr 5, 2019

TSL already have .renameBy() function which allow us to rename a series with its labels.

For some use case, it could be interesting have template the name with a very custom string.

Can we extend .renameBy() function with the following behaviour ?

select('os.cpu').renameBy('${this.labels.hostname} (${this.labels.datacenter})' )
// produce a series named: "1.server.front (GRA)"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants