GithubHelp home page GithubHelp logo

404 page not found about k8spacket HOT 10 CLOSED

LU1371046 avatar LU1371046 commented on June 8, 2024
404 page not found

from k8spacket.

Comments (10)

k8spacket avatar k8spacket commented on June 8, 2024

@LU1371046

You need to build a path according to used plugin requirements (see API Configuration fields and data on https://grafana.com/grafana/plugins/hamedkarbasi93-nodegraphapi-datasource/ )

result:

image

In the Grafana data source you should have a path without additional nodes:

image

from k8spacket.

k8spacket avatar k8spacket commented on June 8, 2024

@LU1371046
This thread is inactive for 10 days.

I'm going to close this issue. If you will have more questions, feel free to reopen this or a new issue

from k8spacket.

zhutong196 avatar zhutong196 commented on June 8, 2024

I have same question? How to resolve this question?
image
metrics is normal
image

from k8spacket.

LU1371046 avatar LU1371046 commented on June 8, 2024

这个不支持在虚拟机上使用

from k8spacket.

LU1371046 avatar LU1371046 commented on June 8, 2024

我有同样的问题?如何解决这个问题? 指标正常 图片 图片

不要用虚拟机

from k8spacket.

k8spacket avatar k8spacket commented on June 8, 2024

Hi @zhutong196
It looks like k8spacket didn't start any plugins on startup.

Could you share the logs from the k8spacket workload? There should be information about loaded plugins:

k -n k8spacket logs <k8spacket-pod-name> -f -c k8spacket                                                                                                                                                                                                         

plugins/nodegraph-x86_64.so
plugins/tls-parser-x86_64.so
2023/01/12 08:26:14 Serving requests on port 6676
2023/01/12 08:26:14 Refreshing interfaces for capturing...
Getting k8s resources
2023/01/12 08:26:15 Starting capture on interface "azv98340604ff0"
2023/01/12 08:26:15 Starting capture on interface "azv46a1bc8c07a"
2023/01/12 08:26:15 Starting capture on interface "azvb3a4e067125"
2023/01/12 08:26:15 Starting capture on interface "azvf7f07f45cd7"
2023/01/12 08:26:15 reading in packets

Additionally, you can check logs in the init container with the command:

k -n k8spacket logs <k8spacket-pod-name> -f -c init-k8spacket                                                                                                                                                                                              

Connecting to github.com (140.82.121.4:443)
wget: note: TLS certificate validation not implemented
Connecting to objects.githubusercontent.com (185.199.109.133:443)
saving to 'nodegraph-x86_64.so'
nodegraph-x86_64.so   23% |*******                         | 14.1M  0:00:03 ETA
nodegraph-x86_64.so   51% |****************                | 31.0M  0:00:01 ETA
nodegraph-x86_64.so   76% |************************        | 45.7M  0:00:00 ETA
nodegraph-x86_64.so  100% |********************************| 59.9M  0:00:00 ETA
'nodegraph-x86_64.so' saved
Connecting to github.com (140.82.121.3:443)
Connecting to objects.githubusercontent.com (185.199.108.133:443)
saving to 'tls-parser-x86_64.so'
tls-parser-x86_64.so   0% |                                |  127k  0:08:04 ETA
tls-parser-x86_64.so   8% |**                              | 5408k  0:00:20 ETA
tls-parser-x86_64.so  33% |**********                      | 20.0M  0:00:06 ETA
tls-parser-x86_64.so  59% |*******************             | 36.0M  0:00:02 ETA
tls-parser-x86_64.so  86% |***************************     | 52.0M  0:00:00 ETA
tls-parser-x86_64.so 100% |********************************| 60.3M  0:00:00 ETA
'tls-parser-x86_64.so' saved

from k8spacket.

zhutong196 avatar zhutong196 commented on June 8, 2024

Hi @zhutong196 It looks like k8spacket didn't start any plugins on startup.

Could you share the logs from the k8spacket workload? There should be information about loaded plugins:

k -n k8spacket logs <k8spacket-pod-name> -f -c k8spacket                                                                                                                                                                                                         

plugins/nodegraph-x86_64.so
plugins/tls-parser-x86_64.so
2023/01/12 08:26:14 Serving requests on port 6676
2023/01/12 08:26:14 Refreshing interfaces for capturing...
Getting k8s resources
2023/01/12 08:26:15 Starting capture on interface "azv98340604ff0"
2023/01/12 08:26:15 Starting capture on interface "azv46a1bc8c07a"
2023/01/12 08:26:15 Starting capture on interface "azvb3a4e067125"
2023/01/12 08:26:15 Starting capture on interface "azvf7f07f45cd7"
2023/01/12 08:26:15 reading in packets

Additionally, you can check logs in the init container with the command:

k -n k8spacket logs <k8spacket-pod-name> -f -c init-k8spacket                                                                                                                                                                                              

Connecting to github.com (140.82.121.4:443)
wget: note: TLS certificate validation not implemented
Connecting to objects.githubusercontent.com (185.199.109.133:443)
saving to 'nodegraph-x86_64.so'
nodegraph-x86_64.so   23% |*******                         | 14.1M  0:00:03 ETA
nodegraph-x86_64.so   51% |****************                | 31.0M  0:00:01 ETA
nodegraph-x86_64.so   76% |************************        | 45.7M  0:00:00 ETA
nodegraph-x86_64.so  100% |********************************| 59.9M  0:00:00 ETA
'nodegraph-x86_64.so' saved
Connecting to github.com (140.82.121.3:443)
Connecting to objects.githubusercontent.com (185.199.108.133:443)
saving to 'tls-parser-x86_64.so'
tls-parser-x86_64.so   0% |                                |  127k  0:08:04 ETA
tls-parser-x86_64.so   8% |**                              | 5408k  0:00:20 ETA
tls-parser-x86_64.so  33% |**********                      | 20.0M  0:00:06 ETA
tls-parser-x86_64.so  59% |*******************             | 36.0M  0:00:02 ETA
tls-parser-x86_64.so  86% |***************************     | 52.0M  0:00:00 ETA
tls-parser-x86_64.so 100% |********************************| 60.3M  0:00:00 ETA
'tls-parser-x86_64.so' saved

Download plugin failed,Can I install plugin offline?
image

from k8spacket.

k8spacket avatar k8spacket commented on June 8, 2024

Hi @zhutong196

I see the problem is with resolving the eval command when an init-container downloads plugins. See https://github.com/k8spacket/k8spacket-helm-chart/blob/master/charts/k8spacket/templates/daemonset.yaml#L49

To download them without resolving machine architecture create simple custom-values.yaml file with the content:

k8sPacket:
  plugins:
    - https://github.com/k8spacket/plugins/releases/download/v1.0.1/nodegraph-{{arch}}.so
    - https://github.com/k8spacket/plugins/releases/download/v1.0.1/tls-parser-{{arch}}.so

where {{arch}} is the architecture of your k8s cluster nodes (x86_64 and aarch64 available currently, see on the releases page: https://github.com/k8spacket/plugins/releases)

and upgrade k8spacket with the command:

helm upgrade --install k8spacket --namespace k8spacket k8spacket/k8spacket -f custom-values.yaml

Additionally, there is a new version 1.1.0 of k8spacket and plugins available.

I supposed the arch command is available everywhere, but maybe it was the wrong assumption. I'll fix it.

from k8spacket.

k8spacket avatar k8spacket commented on June 8, 2024

@zhutong196
What kind of architecture and the operating system does your K8S node use?

from k8spacket.

k8spacket avatar k8spacket commented on June 8, 2024

@zhutong196
This thread is inactive for more than 10 days.

I'm going to close this issue.

from k8spacket.

Related Issues (20)

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.