Skip to content

Configuring different custom metrics with spring actuator with different scrape intervals from Prometheus #20371

@debashish-github

Description

@debashish-github

Hi,
I have a set of custom metrics using spring actuator/micrometer framework to spit out metrics compatible with prometheus.
I want some of these metrics to be scraped at 10 second interval and some that are process/thread heavy to be scraped every 2 minutes .
But the way it looks we just have one micrometer registry where all metrics are added and a single url that prometheus is configured to hit .so either I can have all the metrics scraped at 10second interval or every 2 minutes .
Is there a way to segregate these metrics so that I can create different jobs in prometheus with different scrape intervals ?

Thanks
Debashish

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions