question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add addition params feature into import prometheus configuration

See original GitHub issue

Hi Team, Currently, promgen configuration only support some params. I have some configuration need migrate to Promgen like:


scrape_configs:
   - job_name: 'test_application'
     metrics_path: 'prometheus'
     params:
       token: ['xxxxxx']
     file_sd_configs:
     - files:
       - file-sd/jennifer_node*.json


jennifer_node*.json have this content

  {
    "targets": [
      "http://atrkadas-stream1.travel-dev.dev.jp.local/healthcheck.html",
      "http://atrsrm-api.travel-dev.dev.jp.local/healthcheck.html"
    ],
    "labels": {
      "type": "internal",
      "platform": "cloud"
    }

Can we add some params like token, type, platform … ? It should be useful. Thank you,

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kfdmcommented, Aug 11, 2020

Currently there is no support for something like that 🙇

0reactions
dykowcommented, Aug 11, 2020

Currently there is no support for something like that bow

Oooh, ok. Thanks for the reply 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Prometheus.io
The file is written in YAML format, defined by the scheme described below. Brackets indicate that a parameter is optional. For non-list parameters...
Read more >
Scraping additional Prometheus sources and importing those ...
Explains how to import more Prometheus metrics and scrape more Prometheus sources in CloudWatch Container Insights.
Read more >
Prometheus data source | Grafana documentation
Configure the data source ; Custom query parameters, Adds custom parameters to the Prometheus query URL, such as timeout , partial_response , dedup...
Read more >
Prometheus Metrics, Implementing your Application - Sysdig
In the following example-driven tutorial we will learn how to use Prometheus metrics / OpenMetrics to instrument your code whether you are ...
Read more >
Prometheus Cluster Monitoring - OpenShift Documentation
In addition to Prometheus and Alertmanager, OpenShift Container Platform Monitoring also ... Use the process described above to add this configuration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found