javier-ruiz-voxsmart commented on issue #12747:
URL: https://github.com/apache/apisix/issues/12747#issuecomment-3527548457

   > Hi [@javier-ruiz-voxsmart](https://github.com/javier-ruiz-voxsmart), you 
need to set the correct host and port in the datadog plugin's metadata. You can 
refer to 
https://docs.api7.ai/hub/datadog/#update-datadog-agent-address-and-other-metadata
   
   Thanks @Baoyuantop 
   I tried to follow up those instruction and change the host to localhost.
   From what I've seen, it looks like I'm still having issues and I'm starting 
to think that indeed it's a Datadog issue.
   I may debug this locally following the same tutorial and not use K8s.
   
   see the logs below and the configuration as well
   
   ```
   2025/11/13 12:11:36 [error] 49#49: *31997 send() failed (111: Connection 
refused), context: ngx.timer, client: 10.1.21.187, server: 0.0.0.0:9080
   2025/11/13 12:11:36 [error] 49#49: *31997 [lua] datadog.lua:176: 
send_metric_over_udp(): failed to report request latency to dogstatsd server: 
host[127.0.0.1] port[8125] err: connection refused, context: ngx.timer, client: 
10.1.21.187, server: 0.0.0.0:9080
   2025/11/13 12:11:36 [error] 49#49: *31997 send() failed (111: Connection 
refused), context: ngx.timer, client: 10.1.21.187, server: 0.0.0.0:9080
   2025/11/13 12:11:36 [error] 49#49: *31997 [lua] datadog.lua:205: 
send_metric_over_udp(): failed to report req body size to dogstatsd server: 
host[127.0.0.1] port[8125] err: connection refused, context: ngx.timer, client: 
10.1.21.187, server: 0.0.0.0:9080
   2025/11/13 12:11:36 [error] 49#49: *31997 [lua] batch-processor.lua:91: 
Batch Processor[datadog] failed to process entries [9/9]: error sending 
ingress.size: connection refused, context: ngx.timer, client: 10.1.21.187, 
server: 0.0.0.0:9080
   2025/11/13 12:11:36 [error] 49#49: *31997 [lua] batch-processor.lua:106: 
Batch Processor[datadog] exceeded the max_retry_count[1] dropping the entries, 
context: ngx.timer, client: 10.1.21.187, server: 0.0.0.0:9080
   ```
   
   ```
   apisix:
   ....
       plugins:    # plugin list
         - openid-connect
         - proxy-rewrite
         - prometheus
         - public-api
         - response-rewrite
         - node-status
         - datadog
       plugin_attr:
         prometheus:
           default_buckets:
           - 15
           - 55
           - 105
           - 205
           - 505
           enable_export_server: false
           export_addr:
             ip: 127.0.0.1
             port: 9091
           export_uri: /apisix/prometheus/metrics
           metrics:
             bandwidth: null
             http_latency: null
             http_status:
               extra_labels:
               - upstream_addr: $upstream_addr
               - upstream_status: $upstream_status
           prefer_name: true
         datadog:
           host: "127.0.0.1"
           port: 8125 # Default DogStatsD port
           namespace: "apisix" # Prefix for all emitted metrics
           constant_tags: # Static tags for metric enrichment
             - "service:apisix"
             - "source:apisix"
   ...
   ```
   I have another theory and it's about the Datadog version.
   Did you recently test the latest plugin of datadog with the latest agent of 
Datadog?, maybe there is a change in the dogstatsd format.


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

Reply via email to