ashwintumma23 commented on issue #17767:
URL: https://github.com/apache/druid/issues/17767#issuecomment-2691684351

   Hi @applike-ss , 
   I am using version 32.0.0, and when I try running a similar query, I do see 
the lane information in the `LoggingEmitter` and `PrometheusEmitter`. 
   * Logging Emitter
   ```
   2025-02-28T18:37:08,718 INFO [sql[8dda3ed0-7b14-4aa3-8ec9-a77cd8468a61]] 
org.apache.druid.java.util.emitter.core.LoggingEmitter - [metrics] 
{"feed":"metrics","metric":"query/priority","service":"druid/broker","host":"localhost:8082","type":"scan","version":"32.0.0","value":0,"dataSource":["wikipedia"],"lane":"lane4","timestamp":"2025-02-28T18:37:08.718Z"}
   ```
   
   * Prometheus Emitter
     * Currently `query/priority` metric is not listed in the 
[defaultMetrics.json](https://github.com/apache/druid/blob/master/extensions-contrib/prometheus-emitter/src/main/resources/defaultMetrics.json)
 file. 
     * I added the following record to my local file, `  "query/priority" : { 
"dimensions" : ["lane", "dataSource", "type"], "type" : "count", "help":  
"Query Priority Value."},` and now I do see the metric, as well as the lane 
information.
   ```
   $ curl http://localhost:8085/metrics | grep priority
   
   # HELP druid_query_priority_total Query Priority Value.
   # TYPE druid_query_priority_total counter
   
druid_query_priority_total{dataSource="_wikipedia_",druid_service="druid/broker",host_name="localhost:8082",lane="default",type="segmentMetadata",}
 0.0
   
druid_query_priority_total{dataSource="_wikipedia_",druid_service="druid/broker",host_name="localhost:8082",lane="lane4",type="scan",}
 0.0
   ```
   
   * The query I used: 
   ```
   $ curl -X POST http://localhost:8082/druid/v2/sql -H "Content-Type: 
application/json" \
        -d '{
              "query": "SELECT * FROM wikipedia LIMIT 1",
              "context": {
                "lane": "lane4"
              }
            }'
   ```


-- 
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: commits-unsubscr...@druid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to