Open jonmoter opened 6 years ago
Patches are welcome :D
It looks good idea to have another option :field
in config_param :aggregate
list, and a new parameter aggregate_field_name
to specify the name of field.
Being able to count bytes per kubernetes namespace if a requirement I have. Unfortunate that this is so limited. Don't know enough ruby to work out a pull request.
I'm running fluentd as a daemonset in a Kubernetes cluster. For each application we deploy to the cluster, we add a
project
label, and then have some logic to apply that label to the log entries.I'd like to generate counts of log entries generated in fluentd, aggregated by that
application
field. So I can know how many log messages each of the apps in my cluster are generating.(From there, I'm using the dd plugin to send counts to Datadog.)
As far as I can tell, there's no way to aggregate counts with an arbitrary event field. But that would be a super-useful feature for us.