Skip to content

Ingest data from Prometheus as Source #1997

Closed

Description

@ashoktelukuntla

Is your feature request related to a problem? Please describe.

Pipeline authors wanted to fetch data to Prometheus

Describe the solution you'd like

Create a source plugin which will fetch data from Prometheus and generate Data Prepper Events. This plugin should be able to handle scale and performance targeted while designing the plugin

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context

Remote write example: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/prometheusremotewriteexporter/README.md

Activity

  1. changed the title [-]Ingest data from Prometheus as Source[/-] [+]Ingest data from Prometheus as Sink[/+] on Nov 2, 2022
  2. changed the title [-]Ingest data from Prometheus as Sink[/-] [+]Ingest data to Prometheus as Sink[/+] on Nov 2, 2022
  3. changed the title [-]Ingest data to Prometheus as Sink[/-] [+]Ingest data from Prometheus as Source[/+] on Nov 2, 2022
  4. added
    enhancementNew feature or request
    plugin - sourceA plugin to receive data from a service or location.
    and removed on Nov 3, 2022
  5. srikanthpadakanti commented on Feb 11, 2026

    @srikanthpadakanti
    Collaborator

    Hello @dlvenable One qq:
    The GitHub issue says "fetch data from prometheus" which implies pull/scrape model and the reference provided "Remote write example" is Receive/Push model. There are opposite data flow directions. Which interpretation is correct for this open issue? If there is any existing RFC, please point me to that. Thanks.

  6. dlvenable commented on Feb 17, 2026

    @dlvenable
    Member

    @srikanthpadakanti , I believe this issue has not been fully fleshed out. Ultimately, Data Prepper could probably support both approaches depending on the need. However, I think that pull/scrape model would probably be the ideal solution in general here. It would allow Data Prepper to read from Prometheus without having to add any additional configurations to Prometheus beyond what is required for any other pull/scrape reader.

  7. srikanthpadakanti commented on Apr 3, 2026

    @srikanthpadakanti
    Collaborator

    @dlvenable Which one you are leaning towards? Polling with Worker Thread (like CloudWatch) or Scheduled Task (like RSS)

  8. added this to the v2.15 milestone on Apr 6, 2026
  9. srikanthpadakanti commented on Apr 6, 2026

    @srikanthpadakanti
    Collaborator

    @dlvenable I am leaning towards the Scheduled Task approach. Prometheus scraping is inherently periodic and each scrape is an independent snapshot with no state or pagination to track between runs.

    I am planning to add this to the existing prometheus source plugin so it supports both remote write and scrape in one plugin. The scrape config would be optional.

  10. modified the milestones: v2.15, v2.16 on Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requestplugin - sourceA plugin to receive data from a service or location.

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions