Skip to content

Commit

Permalink
Removed obsolete note
Browse files Browse the repository at this point in the history
  • Loading branch information
clayton-cornell committed Jan 21, 2025
1 parent 184d3b1 commit c0601f7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/sources/reference/components/discovery/discovery.file.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ title: discovery.file

# discovery.file

{{< admonition type="note" >}}
In {{< param "PRODUCT_NAME" >}} `v0.35.0`, the `discovery.file` component was renamed to [local.file_match][], and `discovery.file` was repurposed to discover scrape targets from one or more files.

If you are trying to discover files on the local filesystem rather than scrape targets within a set of files, you should use [local.file_match][] instead.

[local.file_match]: ../../local/local.file_match/
{{< /admonition >}}

`discovery.file` discovers targets from a set of files, similar to the [Prometheus file_sd_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config).

## Usage
Expand Down

0 comments on commit c0601f7

Please sign in to comment.