https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /etc/vector/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //etc/vector/examples/prometheus_to_console.yaml
# Prometheus source example
# ------------------------------------------------------------------------------
# Scraping Prometheus metrics and printing them into console

data_dir: "/var/lib/vector"

# Ingest
sources:
  prometheus:
    type: "prometheus_scrape"
    hosts: ["http://127.0.0.1:9090", "http://127.0.0.1:9090"]
    scrape_interval_secs: 2

# Output
sinks:
  console:
    inputs: ["prometheus"]
    type: "console"
    encoding:
      codec: "json"

https://t.me/RX1948 - 2025