Giter Club home page Giter Club logo

netmeta's People

Contributors

fionera avatar leoluk avatar n0emis avatar skorpy2009 avatar yu-re-ka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netmeta's Issues

CRDs weren't created on first deployment attempt

persistentvolumeclaim/grafana-data-claim created
persistentvolumeclaim/traefik-data created
unable to recognize "STDIN": no matches for kind "Kafka" in version "kafka.strimzi.io/v1beta1"
unable to recognize "STDIN": no matches for kind "KafkaTopic" in version "kafka.strimzi.io/v1beta1"
unable to recognize "STDIN": no matches for kind "ClickHouseInstallation" in version "clickhouse.altinity.com/v1"
unable to recognize "STDIN": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1"
command "kubectl apply --all -f -" failed: exit status 1

Carefully consider flows_raw sorting key

  • Optimize for main dasboard queries.
  • Low-cardinality values first for easy filtering (verify that this does what we think it does).
  • Sequence Num for sampling, but how? It's as high-cardinality as it gets.
  • Play with secondary idexes - are they more efficient than a carefully-considered sorting key?

Pin everything that can be pinned

We can probably pin almost every binary dependency we pull in via digests.

(is there a way to verify k3s binaries and containers?)

Fork vertamedia-clickhouse to simplify queries

The current templating engine becomes ....unwieldy:

SELECT
    $timeSeries as t,
    SrcAS,
    sum(Bytes * SamplingRate) * 8 / $interval AS Bps
FROM $table
WHERE
    $timeFilter AND FlowDirection = 0
    $conditionalTest(AND SamplerAddress = toIPv6($sampler), $sampler)
    $conditionalTest(AND SrcAddr = toIPv6('$srcIP'), $srcIP)
    $conditionalTest(AND DstAddr = toIPv6('$dstIP'), $dstIP)
    $conditionalTest(AND (SrcAddr = toIPv6('$hostIP') OR DstAddr = toIPv6('$hostIP')), $hostIP)
    $conditionalTest(AND NextHop = toIPv6('$nextHop'), $nextHop)
    $conditionalTest(AND (InIf = $interface OR OutIf = $interface), $interface)
    AND SrcAS IN (
    SELECT SrcAS
    FROM $table
    WHERE $timeFilter AND FlowDirection = 0 AND $adhoc
      $conditionalTest(AND SamplerAddress = toIPv6($sampler), $sampler)
      $conditionalTest(AND SrcAddr = toIPv6('$srcIP'), $srcIP)
      $conditionalTest(AND DstAddr = toIPv6('$dstIP'), $dstIP)
      $conditionalTest(AND (SrcAddr = toIPv6('$hostIP') OR DstAddr = toIPv6('$hostIP')), $hostIP)
      $conditionalTest(AND NextHop = toIPv6('$nextHop'), $nextHop)
      $conditionalTest(AND (InIf = $interface OR OutIf = $interface), $interface)
      $conditionalTest(AND ($extra), $extra)
    GROUP BY SrcAS
    ORDER BY count(*) DESC
    LIMIT 10)
    $conditionalTest(AND ($extra), $extra)
GROUP BY
    t,
    SrcAS
ORDER BY t, Bps

We need to fork https://github.com/Vertamedia/clickhouse-grafana and add custom templates for this.

Downsampling for long-term storage

We don't need 1-second high resolution data for long-term archival.

Use an AggreatingMergeTree, aggregate it to 5m or so and possibly keep min/max/median.

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.