Проверка работоспособности vmagent'а с помощью командной строки

  1. curl -s http://127.0.0.1:8429/-/healthy

    VictoriaMetrics is Healthy.
  2. curl -s http://127.0.0.1:8429/health

    OK
  3. curl -s http://127.0.0.1:8429/ready

    OK
  4. curl -s http://127.0.0.1:8429/metrics | head

    process_cpu_cores_available 2
    process_memory_limit_bytes 2060156928
    vm_cache_chars_current{type="promql/regexp"} 0
    vm_cache_chars_max{type="promql/regexp"} 1000000
    vm_cache_entries{type="promql/regexp"} 0
    vm_cache_misses_total{type="promql/regexp"} 0
    vm_cache_requests_total{type="promql/regexp"} 0
    vm_concurrent_insert_capacity 4
    vm_concurrent_insert_current 0
    vm_concurrent_insert_limit_reached_total 0
  5. curl -s http://127.0.0.1:8429/flags

    -envflag.enable="true"
    -loggerLevel="INFO"
    -promscrape.config="/etc/victoriametrics/vmagent.yml"
    -promscrape.suppressDuplicateScrapeTargetErrors="true"
    -remoteWrite.bearerToken="secret"
    -remoteWrite.label="vmagent_hostname=mon-vmagent01p.example.org,vmagent_vlan_num=2687,vmagent_region=moscow,vmagent_vlan_env=prod"
    -remoteWrite.maxDiskUsagePerURL="5GiB"
    -remoteWrite.tmpDataPath="/data/vmagent"
    -remoteWrite.url="secret"
  6. curl -s http://127.0.0.1:8429/config | head

    global:
      scrape_interval: 15s
      external_labels:
        scraper_hostname: mon-vmagent01p.example.org
        scraper_region: moscow
        scraper_vlan_env: prod
        scraper_vlan_num: "2687"
    scrape_configs:
    - job_name: telegraf
      metrics_path: /metrics