Giter VIP home page Giter VIP logo

Comments (8)

maxim-ge avatar maxim-ge commented on August 16, 2024 1

In my case it was RAM amount problem. I use "local" (VirtualBox + vagrant) cluster for testing purposes, prometheus requirements in docker-compose.yml was too much for my VMs

        limits:
          memory: 2048M
        reservations:
          memory: 1024M

changed to

        limits:
          memory: 128M
        reservations:
          memory: 64M

and dashboards appear.

In normal cirsumstances (enough RAM) this cause won't appear.

from swarmprom.

 avatar commented on August 16, 2024

Also getting

Annotation Query Failed
{"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"api/annotations","params":{"from":1512751416116,"to":1512752316116,"dashboardId":2},"retry":0,"headers":{"X-Grafana-Org-Id":1,"Accept":"application/json, text/plain, /"}},"statusText":"","xhrStatus":"error"}

from swarmprom.

stefanprodan avatar stefanprodan commented on August 16, 2024

Could be related to #9

from swarmprom.

maxim-ge avatar maxim-ge commented on August 16, 2024

Got similar error using default configuration.

  • Trying http://swarm-ip:9090/ results to 502 Bad Gateway
  • http://swarm-ip:3000 is ok, graphana GUI is shown
  • curl 127.0.0.1:9323/metrics from swarm-ip node works fine

Seems there is some problem related to prometheus configuration, will continue investigation

PS: Anyhow, nice setup for "startup", thank you very much!

from swarmprom.

basavanag avatar basavanag commented on August 16, 2024

Hi @maxim-ge,
Am also facing the same issue, did you find any fix for this?

from swarmprom.

basavanag avatar basavanag commented on August 16, 2024

Hi, it was space issue in the swarm host. But it is giving incorrect matrix, one instance: node number is 3, it shows different number each time i do refresh.

from swarmprom.

stefanprodan avatar stefanprodan commented on August 16, 2024

Fixed by 52ffa41

from swarmprom.

kanzali avatar kanzali commented on August 16, 2024

Hello,

I'm new to monitoring tools and prometheus, I'd be grateful if you can explain me this querry command, what exactly does it do ! Does it collect cpu from all manager and worker nodes together or wha!t:

Thank you in advance
query=sum(irate(node_cpu%7Bmode%3D%22idle%22%7D%5B30s%5D)%20*%20on(instance)%20group_left(node_name)%20node_meta%7Bnode_id%3D~%22. %2B%22%7D)%20*%20100%20%2F%20count_scalar(node_cpu%7Bmode%3D%22user%22%7D%20*%20on(instance)%20group_left(node_name)%20node_meta%7Bnode_id%3D~%22.%2B%22%7D)%

from swarmprom.

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.