k8spacket - collects TCP traffic and TLS connection metadata in the Kubernetes cluster using eBPF and visualizes in Grafana
k8spacket - collects TCP traffic and TLS connection metadata in the Kubernetes cluster using eBPF and visualizes in Grafana
k8spacket doesn't use the gopacket library nowadays and is fully based on now!
Read the article on medium.com k8spacket — a fully based on eBPF right now
It uses
inet_sock_set_state tracepoint to get information about TCP connections inside the clusterTo use k8spacket v2.x.x, the minimum required kernel version is 5.4 with enabled BTF.
See e2e tests README
New features:
Dashboard k8spacket - TLS certificate expiration shows the remaining time until the certificates expire. By variable Past interval to analyze, you can narrow or expand the scope of data to analyze. Data sorted by expiring earliest first. It's easy to build alerts based on the certificate expiration date. See more raw metrics in the dashboard k8spacket - TLS metrics
Two principal k8spacket dashboards (k8spacket - node graph and k8spacket - TLS connections & certificates) are sensitive to Grafana time range control now. You can show cluster TCP traffic or TLS connections, f.e., for the last 5 minutes
tls-parser plugin can get information about the server certificate chain (TLS versions less than 1.3)marcusolsson-json-datasource and marcusolsson-dynamictext-panel Grafana plugins)architecture of k8spacket changed to use go plugins (see available plugins here: https://github.com/k8spacket/plugins)
added the plugin with metrics about the TLS handshake process inside and outside the cluster (TLS version and cipher suite used)
added a dashboard with TLS metrics
added a dashboard about TLS connections
k8spacket helps to understand TCP packets traffic in your kubernetes cluster:
k8spacket uses Node Graph API Grafana datasource plugin. See details Node Graph API plugin
Install k8spacket using helm chart (https://github.com/k8spacket/k8spacket-helm-chart)
helm repo add k8spacket https://k8spacket.github.io/k8spacket-helm-chart
helm repo update
helm install k8spacket --namespace k8spacket k8spacket/k8spacket --create-namespaceAdd Node Graph API and JSON API plugins and datasources to your Grafana instance. You can do it manually or change helm values for the Grafana chart, e.g.:
…Fill additional scrape config to observe Prometheus metrics:
- job_name: "k8spacket-metrics"
metrics_path: /metrics
scrape_interval: 25s
static_configs:
- targets: [k8spacket.k8spacket.svc.cluster.local:8080]Add dashboards configmap to Grafana stack
kubectl -n $GRAFANA_NS apply --recursive -f ./dashboardsGo to k8spacket - node graph in Grafana Dashboards and use filters as below
No open issues yet, or sync has not completed.