yuecong commented on issue #26060: [SPARK-29400][CORE] Improve 
PrometheusResource to use labels
URL: https://github.com/apache/spark/pull/26060#issuecomment-539809234
 
 
   > 1. Please see this PR's description. The metric name is **unique** with 
cadinality 1 by using labels, 
`metrics_executor_rddBlocks_Count{application_id="app-20191008151625-0000"`
   
   For Prometheus, not just the metrics name, but also labels count for a 
high-cardinality. Inside the tsdb for Prometheus server, actually, the 
combination of metrics names and labels are the key.
   see details [here](https://prometheus.io/docs/practices/naming/#labels)
   
   > CAUTION: Remember that every unique combination of key-value label pairs 
represents a new time series, which can dramatically increase the amount of 
data stored. Do not use labels to store dimensions with high cardinality (many 
different label values), such as user IDs, email addresses, or other unbounded 
sets of values.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to