Sorry, I don't know what you mean by "not showing all the jobs".  You have 
only shown a small portion of the targets page.  Are you saying that job 
blackbox-fundconnect_retail does not appear there, 
but blackbox-fundconnect_retail_03 does? Is it possible 
that blackbox-fundconnect_retail has zero targets configured?

The PromQL query "up" will show you all the targets. "count by (job) (up)" 
will show you the jobs, with the number of targets for each. Those won't 
show a job with zero targets though.

Note that in the above case, both scrape jobs look to be identical, in 
which case you could have one job:

  file_sd_configs:
    - files:
- './dynamic/blackbox/blackbox_retail_FundConnect_targets.yml'
- './dynamic/blackbox/blackbox_retail_FundConnectHealth-03_targets.yml'

(You can use target labels to distinguish them, if you wish)

> Do we have limitations in prometheus jobs.? 

No.

> Prometheus version: prometheus:v2.27.1

That's pretty old (May 2021). Current LTS version is v2.45.2

On Thursday 25 January 2024 at 13:11:27 UTC Venkatraman Natarajan wrote:

> Hi Team,
>
> We have 100+ prometheus jobs in prometheus UI but not showing all the 
> jobs. 
>
> The below are sample 2 jobs. In this, first job is not showing in UI but 
> second job metrics showing fine.  
> - job_name: 'blackbox-fundconnect_retail'
>   scrape_interval: 1020s
>   metrics_path: /probe
>   honor_timestamps: true
>   params:
>     module: [http_2xx]
>   file_sd_configs:
>     - files: ['./dynamic/blackbox/blackbox_retail_FundConnect_targets.yml']
>   relabel_configs:
>   - source_labels: [__address__]
>     separator: ;
>     regex: (.*)
>     target_label: __param_target
>     replacement: $1
>     action: replace
>   - source_labels: [__param_target]
>     separator: ;
>     regex: (.*)
>     target_label: instance
>     replacement: $1
>     action: replace
>   - separator: ;
>     regex: (.*)
>     target_label: __address__
>     replacement: {{ XXX }}:9122
>     action: replace
>
> - job_name: 'blackbox-fundconnect_retail_03'
>   scrape_interval: 1020s
>   metrics_path: /probe
>   honor_timestamps: true
>   params:
>     module: [http_2xx]
>   file_sd_configs:
>     - files: 
> ['./dynamic/blackbox/blackbox_retail_FundConnectHealth-03_targets.yml']
>   relabel_configs:
>   - source_labels: [__address__]
>     separator: ;
>     regex: (.*)
>     target_label: __param_target
>     replacement: $1
>     action: replace
>   - source_labels: [__param_target]
>     separator: ;
>     regex: (.*)
>     target_label: instance
>     replacement: $1
>     action: replace
>   - separator: ;
>     regex: (.*)
>     target_label: __address__
>     replacement: {{ XXXXX}}:9122
>     action: replace
>
> Do we have limitations in prometheus jobs.? 
>
> I would like to add more prometheus jobs to scrape the metrics.
>
> Please find attached screenshot which shows jobs in prometheus UI
>
> Prometheus version: prometheus:v2.27.1
>
> Could you please help me on this? 
>
> Thanks,
> Venkatraman N
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c758fd26-c945-4f96-a579-59ccb8983cf7n%40googlegroups.com.

Reply via email to