Giter Club home page Giter Club logo

Comments (6)

randmonkey avatar randmonkey commented on June 20, 2024

@zackery-parkhurst Looks like you are using version 3.5 of your gateway, and the opentelemetry plugin in Kong 3.5 does not support datadog in config.header_type:

{
  "default": "preserve",
  "one_of": [
    "preserve",
    "ignore",
    "b3",
    "b3-single",
    "w3c",
    "jaeger",
    "ot",
    "aws",
    "gcp"
  ],
  "required": false,
  "type": "string"
}

You can run kong:3.5 in docker with this command

docker run -e"KONG_DATABASE=off" -e"KONG_ADMIN_LISTEN=0.0.0.0:8001"  -p"8001:8001" kong:3.5

Then you fetch the header_type of config by:

curl 127.1:8001/schemas/plugins/opentelemetry | jq .fields[1].config.fields[10].header_type

You can see the result above. This does not include datadog.

Can you try to paste your helm command to install KIC? I can help you to replace the Kong gateway version to 3.6.

from kubernetes-ingress-controller.

zackery-parkhurst avatar zackery-parkhurst commented on June 20, 2024

@zackery-parkhurst Looks like you are using version 3.5 of your gateway, and the opentelemetry plugin in Kong 3.5 does not support datadog in config.header_type:

{
  "default": "preserve",
  "one_of": [
    "preserve",
    "ignore",
    "b3",
    "b3-single",
    "w3c",
    "jaeger",
    "ot",
    "aws",
    "gcp"
  ],
  "required": false,
  "type": "string"
}

You can run kong:3.5 in docker with this command

docker run -e"KONG_DATABASE=off" -e"KONG_ADMIN_LISTEN=0.0.0.0:8001"  -p"8001:8001" kong:3.5

Then you fetch the header_type of config by:

curl 127.1:8001/schemas/plugins/opentelemetry | jq .fields[1].config.fields[10].header_type

You can see the result above. This does not include datadog.

Can you try to paste your helm command to install KIC? I can help you to replace the Kong gateway version to 3.6.

@randmonkey I Install Gateway + KIC via terraform. Here is my install command:

resource "helm_release" "kong" {
  name       = var.kong_gateway_name
  repository = "https://charts.konghq.com"
  chart      = "kong"
  namespace  = var.kong_gateway_namespace
  version    = "2.36.0" 
  values = [
      <<EOF
      ....... 

I am installing version 2.36.0 of the KIC helm chart.

Thank you for informing me that the plugin does not support Datadog header in the gateway version 3.5.

I was just going by what the documentation for the plugin version 3.5 stated:
image

I was also referencing the kong gateway changelog. Which stated that in version 3.5.0.0 the datadog header_type was added.
image

Is the version of gateway:3.5. Not the same version that is referenced in the documentation I have linked? I was a little confused when the plugin documentation for 3.5 and kong gateway changelog for version 3.5 both said the header_type was released in 3.5, but when I installed gateway version 3.5 it was not present.

I can try updating to a version of the chart that has kong3.6. Which looks like versions > 2.37.0 will install kong 3.6.
image

from kubernetes-ingress-controller.

randmonkey avatar randmonkey commented on June 20, 2024

You can also change the values in your file referred in your values section if you have one, or add a set section like this

esource "helm_release" "kong" {
  name       = var.kong_gateway_name
  repository = "https://charts.konghq.com"
  chart      = "kong"
  namespace  = var.kong_gateway_namespace
  version    = "2.36.0" 
  values = [
      <<EOF
      ....... ]
set {
  name = image.tag
  value = 3.6
}

As I checked with the gateway team, the datadog in config.header_type is only available with Kong enterprise edition. Please create an issue in the repo kong or docs to tell the mistake in the docs.

from kubernetes-ingress-controller.

zackery-parkhurst avatar zackery-parkhurst commented on June 20, 2024

@randmonkey

As I checked with the gateway team, the datadog in config.header_type is only available with Kong enterprise edition.

Oh, this is new information. So your saying if I am using OSS I can't use the datadog in config.header_type regardless of what version of kong gateway I am on?

from kubernetes-ingress-controller.

randmonkey avatar randmonkey commented on June 20, 2024

@randmonkey

As I checked with the gateway team, the datadog in config.header_type is only available with Kong enterprise edition.

Oh, this is new information. So your saying if I am using OSS I can't use the datadog in config.header_type regardless of what version of kong gateway I am on?

In Kong OSS 3.7 (will soon be released), we can use datadog in config.header_type. For Kong gateway 3.5 and 3.6, it is only available in Kong Enterprise but not OSS.

from kubernetes-ingress-controller.

zackery-parkhurst avatar zackery-parkhurst commented on June 20, 2024

@randmonkey Thank you for this information. I will try again when 3.7 is released. I will go ahead and close this issue out!

from kubernetes-ingress-controller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.