Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating telemetry options to prevent system overload using playground example. #7

Open
FedericoGianni opened this issue Jul 25, 2023 · 0 comments

Comments

@FedericoGianni
Copy link

Environment info:

  • KrakenD version: 2.4.2
  • Additional environment information: Docker

Describe what are you trying to do:
Hi. I am trying to export logs, metrics and traces to external services following the example in the playground.
I've tested the audit tool using the configuration sample present in the playground and it returns:

0.602 4.1.3     [HIGH]          Avoid duplicating telemetry options to prevent system overload.

What is the right approach to export logs, metrics and traces to avoid this misconfiguration?

Your configuration file:

krakend.json

{
  "version": 3,
  "name": "krakend-config-sample",
  "output_encoding": "json",
  "port": "8080",
  "endpoints": [
    {
      "endpoint": "/test/{id}",
      "backend": [
        {
          "host": [
            "http://localhost:8080"
          ],
          "url_pattern": "/__health"
        }
      ]
    },
  ],
  "extra_config": {
    "telemetry/influx": {
        "address": "http://host.docker.internal:8086",
        "ttl": "25s",
        "buffer_size": 0,
        "db": "krakend_local",
        "username": "krakend-dev",
        "password": "pas5w0rd"
    },
    "telemetry/metrics": {
      "collection_time": "30s",
      "listen_address": "127.0.0.1:8090"
    },
    "telemetry/logging": {
      "level": "WARNING",
      "@comment": "Prefix should always be inside [] to keep the grok expression working",
      "prefix": "[KRAKEND]",
      "syslog": false,
      "stdout": true
    },
    "telemetry/gelf": {
      "address": "host.docker.internal:12201",
      "enable_tcp": false
    },
    "telemetry/opencensus": {
      "sample_rate": 100,
      "reporting_period": 0,
      "exporters": {
        "jaeger": {
          "endpoint": "http://host.docker.internal:14268/api/traces",
          "service_name":"krakend",
          "buffer_max_count": 1000
        }
      }
    }
  }
}

Commands used:

krakend audit -s HIGH -c krakend.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant