Skip to content

prom_scraper_windows job from loggregator-agent/3.18

Github source: 0e56508 or master branch

Properties

config_globs

Files matching the globs are expected to contain information to scrape a Prometheus metrics endpoint on localhost.

Default
  - /var/vcap/jobs/*/config/prom_scraper_config.yml
  - /var/vcap/jobs/*/config/metric_port.yml

loggregator_agent

grpc_port

The gRPC port used to connect to loggregator agent. Can come from loggregator link

tls

ca_cert

The CA used to communicate with loggregator agent. Can come from loggregator link

cert

The cert used to communicate with loggregator agent. Can come from loggregator link

key

The key used to communicate with loggregator agent. Can come from loggregator link

scrape_interval

The interval to scrape the metrics URL (golang duration)

Default
15s

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/prom_scraper_windows/ directory (learn more).

  • bin/pre-start.ps1 (from pre-start.ps1.erb)
  • config/certs/loggregator_agent.crt (from loggregator_agent.crt.erb)
  • config/certs/loggregator_agent.key (from loggregator_agent.key.erb)
  • config/certs/loggregator_ca.crt (from loggregator_ca.crt.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.