You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "redhandpl (via GitHub)" <gi...@apache.org> on 2024/07/12 11:38:09 UTC
Re: [I] help request: Datadog plugin config - can't define DogStatsD target with CRDs [apisix-ingress-controller]
redhandpl commented on issue #2125:
URL: https://github.com/apache/apisix-ingress-controller/issues/2125#issuecomment-2225386630
HI,
I'm using Apisix chart 2.8.1 with Apisix 3.9.1 and still cannot created metadata for DataDog plugin.
`apiVersion: apisix.apache.org/v2
kind: ApisixGlobalRule
metadata:
name: global
spec:
plugins:
- name: datadog
enable: true
config:
host: "datadog-agent.datadog.svc.cluster.local"
port: 8125
namespace: "apisix"`
This adds global rule
`❯ curl "http://127.0.0.1:9180/apisix/admin/global_rules/" -H 'X-API-KEY: THEKEY'
{"total":1,"list":[{"key":"/apisix/global_rules/cd935c2f","value":{"id":"cd935c2f","plugins":{"datadog":{"port":8125,"prefer_name":true,"buffer_duration":60,"inactive_timeout":5,"retry_delay":1,"namespace":"apisix","name":"datadog","batch_max_size":1000,"max_retry_count":0,"host":"datadog-agent.datadog.svc.cluster.local"}},"create_time":1720782046,"update_time":1720783721},"modifiedIndex":641,"createdIndex":488}]}`
But not the metedata
`❯ curl http://127.0.0.1:9180/apisix/admin/plugin_metadata/ -H 'X-API-KEY: THEKEY'
{"total":0,"list":[]}`
And in logs I still see
`2024/07/12 11:36:22 [error] 51#51: *6297 [lua] datadog.lua:172: 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.103.10.44, server: 0.0.0.0:9080
`
Adding plugin-metadata-config-map, does not make any difference
`apiVersion: v1
kind: ConfigMap
metadata:
name: plugin-metadata-config-map
data:
config.yaml: |
- cluster: default
plugins:
- name: datadog
metadata:
host: "datadog-agent.datadog.svc.cluster.local"
port: 8125
namespace: "apisix"`
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org