Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processor to create a new metric using other collected metrics #6254

Closed
b17k0 opened this issue Aug 14, 2019 · 2 comments
Closed

Processor to create a new metric using other collected metrics #6254

b17k0 opened this issue Aug 14, 2019 · 2 comments
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@b17k0
Copy link

b17k0 commented Aug 14, 2019

Feature Request

In addition to discussion #6233 create a new Feature Request based on the vision of one of contributors project

Use case:

All servers and virtual machines can have a different number of processor cores and when creating triggers you need to consider this number, but triggers are created immediately for a group of servers and many metric collectors use a metric that contains the result of the calculation <Load Average> / <N_cores>.
For example, for zabbix this parameter is called system.cpu.load [percpu, avg1] for Diamond - loadavg.01_normalized.
In some cases it is more profitable to duplicate metrics than constantly calculate values for a large number of nodes(if you calculate a value for example every 10 seconds for all nodes - this will greatly increase the load on the cpu).
Personally, I prefer the option with an optional metric in the System Input Plugin(as in request #6233), as it was done in competing solutions, but if it really is bad, it will suit an alternative option in the form of a processor to create a new metric based on the collected metrics on the telegraf side before sending metrics in the database.

@danielnelson danielnelson added the feature request Requests for new plugin and for new features to existing plugins label Aug 14, 2019
@danielnelson
Copy link
Contributor

related #3709

@danielnelson danielnelson changed the title [Feature Request] Processor to create a new metric using other collected metrics Processor to create a new metric using other collected metrics Jan 24, 2020
@reimda
Copy link
Contributor

reimda commented Jul 28, 2022

This issue was opened before the starlark processor was added. It should be possible to do the kinds of things this issue describes in a short starlark script.

@reimda reimda closed this as completed Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

3 participants