Skip to content

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

@FedericoGianni

Description

@FedericoGianni

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions