What is the purpose of a Prometheus client library?
ATo instrument app code and expose its own metrics
BTo scrape the remote targets and store their samples
CTo route fired alerts to the correct receivers
DTo render dashboards from stored time series
Why this is the answer
Client libraries let application code define and expose metrics on /metrics for scraping. Scraping is the server's job, and alert routing belongs to Alertmanager.