Docs

v2.0

Quick start to data collection

The steps below are available on a page that appears after you complete the initial configuration described in Set up InfluxDB. After clicking one of the three options, the page is no longer available.

If you missed the change to select Quick Start or you want to learn how to configure a scraper yourself, see Scrape data using the /metrics endpoint.

Use Quick Start to collect InfluxDB metrics

When you start InfluxDB 2.0 for the first time, you are guided to configure a user, an organization, and a bucket (see Set up InfluxDB). After completing the setup, the next page displays “Let’s start collecting data!” and three options.

On this page, click Quick Start. The following message briefly appears in a pop-up alert:

“The InfluxDB Scraper has been configured for http://localhost:9999/metrics."

Behind the scenes, here’s what happened:

  1. InfluxDB 2.0 configured a scraper named “InfluxDB Scraper.”

    • The target URL points to the /metrics HTTP endpoint of your local InfluxDB instance: http://localhost:9999/metrics. The /metrics HTTP endpoint monitors your InfluxDB instance, collects metrics from it, and provides the data in the Prometheus data format.
    • InfluxDB stores the scraped data in the default bucket created in the initial setup procedure.
  2. The InfluxDB Scraper immediately started collecting InfluxDB data and writing it into your bucket.

To see a sample of the data being collected in Prometheus format, you can use one of the following methods to display a sample of the exposed InfluxDB metrics in the Prometheus text-based format:

  • In a web browser, open the InfluxDB Scraper URL (http://localhost:9999/metrics).

  • In a terminal window, run the following cURL command:

    curl  http://localhost:9999/metrics
    

Next steps

Now that you have data ready for exploration, you can:


Bug Reports and Feedback

Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation.

Submit feedback in the InfluxData Community