MCPcopy Index your code
hub / github.com/skydive-project/skydive

github.com/skydive-project/skydive @v0.28.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.28.0 ↗
8,443 symbols 26,565 edges 641 files 3,257 documented · 39%
README

GitHub license Slack Invite Slack Channel Weekly minutes Go Report Card CII Best Practices StackShare PyPI

Skydive

Skydive is an open source real-time network topology and protocols analyzer. It aims to provide a comprehensive way of understanding what is happening in the network infrastructure.

Skydive agents collect topology information and flows and forward them to a central agent for further analysis. All the information is stored in an Elasticsearch database.

Skydive is SDN-agnostic but provides SDN drivers in order to enhance the topology and flows information.

Key features

  • Captures network topology and flows
  • Full history of network topology and flows
  • Distributed
  • Ability to follow a flow along a path in the topology
  • Supports VMs and Containers infrastructure
  • Unified query language for topology and flows (Gremlin)
  • Web and command line interfaces
  • REST API
  • Easy to deploy (standalone executable)
  • Connectors to OpenStack, Docker, OpenContrail, Kubernetes

Quick start

All-in-one

The easiest way to get started is to download the latest binary and to run it using the all-in-one mode :

curl -Lo - https://github.com/skydive-project/skydive-binaries/raw/jenkins-builds/skydive-latest.gz | gzip -d > skydive && chmod +x skydive && sudo mv skydive /usr/local/bin/

SKYDIVE_ETCD_DATA_DIR=/tmp SKYDIVE_ANALYZER_LISTEN=0.0.0.0:8082 sudo -E /usr/local/bin/skydive allinone

Open a browser to http://localhost:8082 to access the analyzer Web UI.

Helm

If you are using Kubernetes then you can deploy skydive using helm directly from Git:

helm plugin install https://github.com/aslafy-z/helm-git --version 0.10.0
helm repo add skydive git+https://github.com/skydive-project/skydive@contrib/charts
helm repo update
helm install skydive-analyzer skydive/skydive-analyzer
helm install skydive-agent skydive/skydive-agent
kubectl port-forward service/skydive-analyzer 8082:8082

Open a browser to http://localhost:8082 to access the analyzer Web UI.

Docker

docker run -d --privileged --pid=host --net=host -p 8082:8082 -p 8081:8081 \
    -e SKYDIVE_ANALYZER_LISTEN=0.0.0.0:8082 \
    -v /var/run/docker.sock:/var/run/docker.sock -v /run/netns:/var/run/netns \
    skydive/skydive allinone

Open a browser to http://localhost:8082 to access the analyzer Web UI.

Docker Compose

To quick set up a more complete working environment (with history support), Docker Compose can be used to automatically start an Elasticsearch container, a Skydive analyzer container and a Skydive agent container.

curl -o docker-compose.yml https://raw.githubusercontent.com/skydive-project/skydive/master/contrib/docker/docker-compose.yml
docker-compose up

You can also use the Skydive command line client with:

docker run --net=host -ti skydive/skydive client query "g.V()"

Open a browser to http://localhost:8082 to access the analyzer Web UI.

Documentation

Skydive documentation can be found here:

  • http://skydive.network/documentation

The Skydive REST API is described using swagger here.

Tutorials

Skydive tutorials can be found here:

  • http://skydive.network/tutorials/first-steps-1.html

Get involved

Contributing

Your contributions are more than welcome. Please check https://github.com/skydive-project/skydive/blob/master/CONTRIBUTING.md to know about the process.

License

This software is licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Extension points exported contracts — how you extend this code

Sender (Interface)
Sender defines a flows sender interface [7 implementers]
flow/table.go
FlowProbeHandler (Interface)
FlowProbeHandler defines flow probe mechanism [8 implementers]
flow/probes/probes.go
Subprobe (Interface)
Subprobe describes a probe for a specific Kubernetes resource It must implement the ListenerHandler interface so that yo [64 …
topology/probes/k8s/probe.go
Protocol (Interface)
Protocol describes the immutable part of an OpenFlow protocol version [6 implementers]
openflow/protocol.go
Listener (Interface)
Listener defines the interface implemented by monitor listeners [15 implementers]
openflow/client.go
StructSpeakerPool (Interface)
StructSpeakerPool is the interface of a pool of StructSpeakers. [7 implementers]
graffiti/websocket/message.go
Getter (Interface)
Getter describes filter getter fields [71 implementers]
graffiti/getter/getter.go
Validator (Interface)
Validator is the interface to implement to validate REST resources [6 implementers]
graffiti/api/server/server.go

Core symbols most depended-on inside this repo

Errorf
called by 1472
graffiti/logging/logging.go
String
called by 1421
openflow/protocol.go
Error
called by 533
graffiti/logging/logging.go
GetLogger
called by 409
graffiti/logging/logging.go
Has
called by 376
js/api.ts
New
called by 311
graffiti/api/rest/rest.go
Values
called by 289
graffiti/graph/traversal/traversal.go
V
called by 220
graffiti/js/api.ts

Shape

Method 4,746
Function 2,600
Struct 758
Class 188
Interface 82
TypeAlias 53
FuncType 16

Languages

Go85%
TypeScript13%
Python2%

Modules by API surface

statics/ui/js/bundle.js531 symbols
flow/flow.pb.go310 symbols
graffiti/filters/filters.pb.go296 symbols
topology/probes/vpp/bin_api/interfaces/interfaces.ba.go232 symbols
graffiti/js/api.ts215 symbols
graffiti/graph/graph.go142 symbols
flow/flow.pb_easyjson.go130 symbols
graffiti/graph/traversal/traversal.go120 symbols
flow/layers/dns.pb.go110 symbols
graffiti/graph/traversal/traversal_parser.go109 symbols
js/api.ts105 symbols
topology/probes/vpp/bin_api/vpe/vpe.ba.go86 symbols

Dependencies from manifests, versioned

git.fd.io/govpp.gitv0.0.0-2019032122074 · 1×
github.com/GehirnInc/cryptv0.0.0-2020031606550 · 1×
github.com/VerizonDigital/vflowv0.0.0-2019011100590 · 1×
github.com/abbot/go-http-authv0.4.0 · 1×
github.com/avast/retry-gov3.0.0+incompatible · 1×
github.com/bennyscetbun/jsongov0.0.0-2019011016371 · 1×
github.com/casbin/casbinv1.9.1 · 1×
github.com/cenk/rpc2v0.0.0-2016042717013 · 1×
github.com/cnf/structhashv0.0.0-2020101318311 · 1×
github.com/coreos/etcdv3.3.22+incompatible · 1×
github.com/digitalocean/go-libvirtv0.0.0-2019071514480 · 1×

For agents

$ claude mcp add skydive \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact