Giter Club home page Giter Club logo

Comments (9)

Haleygo avatar Haleygo commented on May 28, 2024

Hello,
how do you scrape vmagent here, could you attach the scrape job config?
And how many vmagent instances showed in http://vmagent:8429/targets page, do them changed a lot?

from victoriametrics.

k0nstantinv avatar k0nstantinv commented on May 28, 2024

@Haleygo thanks for you response! as I posted vmagent has 6 shards, unfortunately it's not possible to post all the targets from /targets endpoint, since each vmagent only scrapes its part of targets. Overall count of targets is about 9000 (from vmagent dashboard) and they really do change a lot. It is a dev cluster where any developer can create his own test environment. I'm ready to post anything you need to be able to help

from victoriametrics.

Haleygo avatar Haleygo commented on May 28, 2024

No problem, I'm only concern about the vmagent scrape job.
How do you scrape vmagent, using service discovery or static configs? How many instances shown under the vmagent scrape job, are them all healthy? If not, there should be reason on /targets page as well.

from victoriametrics.

k0nstantinv avatar k0nstantinv commented on May 28, 2024

we use vm-stack chart for out setup

vmagent via VMServiceScrape (kubernetes sd)

apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
...
  labels:
....
    managed-by: vm-operator
  name: vmagent-vm-stack
  namespace: monitoring
  ownerReferences:
  - apiVersion: operator.victoriametrics.com/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: VMAgent
    name: vm-stack
    uid: dff72d61-3e36-4968-bd25-9f48cac8f339
  resourceVersion: "1104257"
  uid: 642c3ef7-fca1-4cee-b146-ad54260bab09
spec:
  endpoints:
  - attach_metadata: {}
    path: /metrics
    port: http
  namespaceSelector: {}
  selector:
    matchExpressions:
    - key: operator.victoriametrics.com/additional-service
      operator: DoesNotExist
    matchLabels:
      app.kubernetes.io/component: monitoring
      app.kubernetes.io/instance: vm-stack
      app.kubernetes.io/name: vmagent
      managed-by: vm-operator

I can't get what should I post here. Can you provide exact command or query, pls?

UI targets page is really huge due to targets count near 9000

we definitely have unhealthy targets, actually hundreds of them, is it related to vmagent's job up/down flapping?

from victoriametrics.

Haleygo avatar Haleygo commented on May 28, 2024

UI targets page is really huge due to targets count near 9000

Targets can be filtered on ui like this, please share for vmagent job
image

from victoriametrics.

k0nstantinv avatar k0nstantinv commented on May 28, 2024

Thanks! I can see now. Sometimes it is down
image
sometime it is up
image

no idea why it's happening

from victoriametrics.

k0nstantinv avatar k0nstantinv commented on May 28, 2024

@Haleygo can you please tell is there any recommendation to fix this? I've tried to increase scrape timeout with no luck, what else context deadline exceeded could mean?

from victoriametrics.

Haleygo avatar Haleygo commented on May 28, 2024

I can see now. Sometimes it is down

Looks like you have a lot of scrape failures(3062/4783; 2733/4846), they could be caused by resources pressure or slow network, could you also check vmagent's cpu usage?

from victoriametrics.

k0nstantinv avatar k0nstantinv commented on May 28, 2024

@Haleygo thanks! VMagent shows extremely high CPU usage. Nodes almost for 100% CPU usage. I didn't expect scrape failures could be caused due to high CPU usage. How to determine a scrape failure is exactly because of lack of resources?

from victoriametrics.

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.