Open zxding opened 2 years ago
@harsh1231 : Can you chime in here please.
@zxding : guess you are asking for adding arbitrary tags to each metrics right?
yes,any suggestion?
@nsivabalan Thank you for quick reply , I tried to add a property "metricsname.prefix" to make it more flexible for prometheus statistics , but I found that if I did that , the metric lack an tag to distinguish where the metric from , is there any way to archive it ? In release 0.10.0 ,I found the "PushGatewayReporter" class use "DropwizardExports" collector , the DropwizardExports does not use any additional tags , so is it possible to add another implementation of reporter just like "simplecollector" to archive this ? Look forward to your reply.
@nsivabalan Thank you for quick reply , I tried to add a property "metricsname.prefix" to make it more flexible for prometheus statistics , but I found that if I did that , the metric lack an tag to distinguish where the metric from , is there any way to archive it ? In release 0.10.0 ,I found the "PushGatewayReporter" class use "DropwizardExports" collector , the DropwizardExports does not use any additional tags , so is it possible to add another implementation of reporter just like "simplecollector" to archive this ? Look forward to your reply.
You're welcome to give a try and make some proof-of-concepts. This is more of a prometheus-specific problem; hopefully someone from the community who is familiar with this can help out here.
@rmahindra123 @harsh1231 : do we have any suggestions on how to go about this.
'hoodie.metrics.reporter.metricsname.prefix' = 'hudi_metrics', Then I got a metrics like
hudi_metrics_commit_totalBytesWritten{exported_job="my-hudi-metrics-2", instance="pushgateway", job="pushgateway"}
, how to add other label likejob_name
to make metric likehudi_metrics_commit_totalBytesWritten{exported_job="my-hudi-metrics-2", instance="pushgateway", job="pushgateway" ,job_name = "xxx"}
so that I can distinguish metrics from different job