Coder Social home page Coder Social logo

krakend-audit's People

Contributors

deepsource-autofix[bot] avatar deepsource-io[bot] avatar dhontecillas avatar kpacha avatar

Watchers

 avatar  avatar  avatar  avatar

krakend-audit's Issues

Duplicating telemetry options to prevent system overload using playground example.

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

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.