The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Cortex Metrics Plugin

publishCortexMetrics: Publish metrics to Cortex

Publishes current job metrics to Cortex.

  • bearerToken : String (optional)
    Overrides the value set on the folder or global configuration. The Cortex API bearer token, in the form "123:abcd0123...".
  • labels (optional)
    • Type: java.util.Map<java.lang.String, java.lang.String>
  • namespace : String (optional)
    Overrides the value set on the folder or global configuration. The namespace to use for the Cortex metrics, defaults to "default". This will be the first element in all metrics, such as "default_jenkins_job_...".
  • url : String (optional)
    Overrides the value set on the folder or global configuration. The Cortex write URL for Prometheus pushes. This is used to send metrics directly to Cortex as if it were Prometheus. Example: https://mycortex.com/api/prom/push

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.