Add new page on configuring scrapers
parent
48a9f3a706
commit
1d568f797d
|
@ -2,7 +2,7 @@
|
||||||
title: Scrape data using the /metrics endpoint
|
title: Scrape data using the /metrics endpoint
|
||||||
seotitle: Scrape data using the /metrics endpoint
|
seotitle: Scrape data using the /metrics endpoint
|
||||||
description: >
|
description: >
|
||||||
Scrape data into an InfluxDB bucket.
|
Configure a scraper to collect data into an InfluxDB bucket.
|
||||||
menu:
|
menu:
|
||||||
v2_0:
|
v2_0:
|
||||||
name: Scrape data using the /metrics endpoint
|
name: Scrape data using the /metrics endpoint
|
||||||
|
@ -10,26 +10,31 @@ menu:
|
||||||
weight: 1
|
weight: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
You can use the InfluxDB 2.0 user interface (UI) to quickly define a scraper that can capture hardware and OS metrics from third-party systems and translate the data into the popular Prometheus format, which is supported by InfluxDB.
|
An InfluxDB scraper collects data from specified targets at regular intervals and then writes the scraped data to a bucket. Scrapers can capture hardware and OS metrics from third-party systems or even from InfluxDB instances. In InfluxDB 2.0, the metrics are scraped from
|
||||||
|
`/metrics` HTTP endpoints, in the [Prometheus data format](https://prometheus.io/docs/instrumenting/exposition_formats/), which is supported by InfluxDB.
|
||||||
|
|
||||||
Follow the steps below to configure an InfluxDB 2.0 scraper to collect metrics generated by InfluxDB 2.0 into a bucket.
|
To quickly create a scraper in InfluxDB 2.0, you can use the InfluxDB 2.0 user interface (UI) to specify the target URL and the bucket to store the data. The scraped data is collected in the [Prometheus data format](https://prometheus.io/docs/instrumenting/exposition_formats/) and then transformed to match the InfluxDB data structure in the buckets.
|
||||||
|
|
||||||
## Configure an InfluxDB scraper to collect InfluxDB 2.0 metrics
|
## Use the InfluxDB UI to configure a scraper for data collection
|
||||||
|
|
||||||
Follow the steps here to capture Prometheus format data into an InfluxDB 2.0 bucket.
|
Follow the steps below to configure an InfluxDB scraper for collecting metrics into a bucket.
|
||||||
|
|
||||||
1. Open a web browser to your InfluxDB 2.0 instance
|
1. Open a web browser to your InfluxDB 2.0 instance
|
||||||
[localhost:9999](http://localhost:9999). The login screen for the UI (user interface) appears.
|
([localhost:9999](http://localhost:9999)). The login screen for the UI (user interface) appears.
|
||||||
2. Log in using your username and password. The **Getting started with InfluxDB 2.0** screen appears.
|
2. Log in using your username and password. The **Getting started with InfluxDB 2.0** screen appears.
|
||||||
3. In the navigation bar on the left, click **Organizations** and then click the name of your organization. The **Organization** page appears for the selected organization.
|
3. In the navigation bar on the left, click **Organizations** and then click the name of your organization. The **Organization** page appears for the selected organization.
|
||||||
4. Click the **Scrapers** tab. A listing of any existing scrapers appears, listing the **URL** and the **BUCKET** name.
|
4. Click the **Scrapers** tab. A listing of any existing scrapers appears, listing the **URL** and the **BUCKET** name.
|
||||||
5. Click **Create Scraper**. The **Data Loading** page appears with **Add Scraper Target** options to define a scraper.
|
5. Click **Create Scraper**. The **Data Loading** page appears with **Add Scraper Target** options to define a scraper.
|
||||||
6. From the **Bucket** listing, select the bucket that you wan to be use to collect data.
|
6. From the **Bucket** listing, select the bucket for collecting the data.
|
||||||
7. Enter the **Target URL** to use for the Prometheus `/metrics` HTTP endpoint. The default URL value is `http://localhost:9100/metrics`.
|
7. Enter the **Target URL** to use for the Prometheus `/metrics` HTTP endpoint. The default URL value is `http://localhost:9999/metrics`.
|
||||||
8. Click **Finish**. Your new scraper appears in the scraper listing, displaying the values you specified for the **URL** and the **BUCKET**.
|
8. Click **Finish**. Your new scraper appears in the scraper listing, displaying the values you specified for the **URL** and the **BUCKET**.
|
||||||
|
|
||||||
The new scraper for is now collecting data into the InfluxDB bucket you specified.
|
The new scraper is now collecting data into the InfluxDB bucket you specified.
|
||||||
|
|
||||||
For information on creating InfluxDB 2.0 dashboards that use the Node Exporter data, see [Visualize data with InfluxDB](http://v2.dpcs.influxdata.com/v2.0/visualize-data/).
|
## Next steps
|
||||||
|
|
||||||
To learn more about
|
Now that you have a bucket of data ready for exploration, you can:
|
||||||
|
|
||||||
|
* **Query data.** To get started querying the data stored in InfluxDB buckets using the InfluxDB user interface (UI) and the `influx` command line interface (CLI), see [Query data in InfluxDB](/v2.0/query-data).
|
||||||
|
|
||||||
|
* **Visualize data.** To learn how to build dashboards for visualizing your data, see [Visualize data with the InfluxDB UI](/v2.0/visualize-data).
|
||||||
|
|
Loading…
Reference in New Issue