• Home
  • 1m Read
More

    Explained: Keep Specific Metrics in Prometheus using Prometheus Job

    This is 1m read article written by Kuberneteslab. In this article we will discuss about the keep action for keeping certain metrics in Prometheus and dropping everything else.

    Prometheus provides rich features like dropping the metrics and keeping the metrics which can specified under job configuration.

    To keep the specific metric:

    __name__ indicates the metric name by default. With the config above for job-1 it will scrape only metrics which are matching regex provided in configuration.

    Metric relabeling is applied to samples as the last step before ingestion. Make sure the configuration uses “metric_relabel_configs”.

    Kuberneteslab aims to write open-source blogs. We would like to have useful information be in one place. If you like our work then please donate us to support.

    Recent Articles

    SED Command : Search And Replace in file

    This is 1m read blog. In this blog we will check how to replace source string with replacement string for file with...

    How to check top 10 CPU consuming processes on Linux ?

    In shared linux server environment it is important to track the usage of high CPU consuming processes. If...

    Explained: Keep Specific Metrics in Prometheus using Prometheus Job

    This is 1m read article written by Kuberneteslab. In this article we will discuss about the keep action for keeping certain metrics in...

    How to check the Disk Statistics on Linux using Terminal ?

    This is 1m read article written by Kuberneteslab. In this article we will discuss about the disk statistics and how to view...

    How to get resources from Kubernetes Cluster using Kubectl ?

    Get Resources from K8S Cluster using Kubectl cmd: In this article we will look into some commands...

    Related Stories

    Subscribe
    Notify of
    guest
    0 Comments
    Inline Feedbacks
    View all comments

    Stay on op - Ge the daily news in your inbox

    0
    Would love your thoughts, please comment.x
    ()
    x