kfaraz commented on code in PR #18598:
URL: https://github.com/apache/druid/pull/18598#discussion_r2409741823


##########
docs/development/extensions-contrib/prometheus.md:
##########
@@ -44,7 +44,7 @@ All the configuration parameters for the Prometheus emitter 
are under `druid.emi
 | `druid.emitter.prometheus.addHostAsLabel`     | Flag to include the hostname 
as a prometheus label.                                                          
                                                                                
                                          | no        | false                   
             |
 | `druid.emitter.prometheus.addServiceAsLabel`  | Flag to include the druid 
service name (e.g. `druid/broker`, `druid/coordinator`, etc.) as a prometheus 
label.                                                                          
                                               | no        | false              
                  |
 | `druid.emitter.prometheus.pushGatewayAddress` | Pushgateway address. 
Required if using `pushgateway` strategy.                                       
                                                                                
                                                  | no        | none            
                     |
-| `druid.emitter.prometheus.flushPeriod`        | Emit metrics to Pushgateway 
every `flushPeriod` seconds. Required if `pushgateway` strategy is used.        
                                                                                
                                           | no        | 15                     
              |
+| `druid.emitter.prometheus.flushPeriod`        | If strategy is 
`pushgateway`, emits metrics every `flushPeriod` seconds. Required if 
`pushgateway` strategy is used. If strategy is `exporter`, configures the 
metric ttl such that if the metric value is not updated within the 
`flushPeriod` then it will stop being emitted. Optional if `exporter` strategy 
is used.                                                                        
                                                           | no        | 15 
seconds for `pushgateway` strategy. None for `exporter` strategy                
                  |

Review Comment:
   Yeah, good point. I guess it would have to account for the scraping 
frequency too.
   So, a good value would be something like `3 * scrape period` or `3 * 
emission period`, whichever is larger.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to