Can't access specific metrics

58 views
Skip to first unread message

Morgan WAHBI

unread,
Feb 17, 2023, 8:01:59 AM2/17/23
to Prometheus Users
Hi guys,

on the prometheus server's of my company i can't access to the metrics to estimate the disk used for a month

so i can't access all prometheus_tsdb_* like

prometheus_tsdb_head_samples_appended_total

i was trying this command
2592000* (rate(prometheus_tsdb_head_samples_appended_total[1d]) *
(rate(prometheus_tsdb_compaction_chunk_size_bytes_sum[1d]) / rate(prometheus_tsdb_compaction_chunk_samples_sum[1d])))

I precise that im not admin of the platform maybe this metrics are available just when you are admin? 

If you have any idea, im interested to dive in

Ty
morgan


sayf eddine Hammemi

unread,
Feb 17, 2023, 8:40:22 AM2/17/23
to Morgan WAHBI, Prometheus Users
Prometheus does not implement any multi-tenancy to prevent you from accessing such metrics, you are in one of the following case
- Prometheus is not scraping itself (meta monitoring), in that case you need to add prometheus as target
- These metrics are intentionally dropped in the prometheus configuration
- You have another system on top of Prometheus that is applying access policies

The first one is the most probable

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/663266ea-fe64-4871-a63e-0538eacd001en%40googlegroups.com.

Morgan WAHBI

unread,
Feb 17, 2023, 8:50:44 AM2/17/23
to Prometheus Users
Hi !

Thanks for quick answer i will check the targets and come back here ! ty

Morgan WAHBI

unread,
Feb 17, 2023, 9:06:32 AM2/17/23
to Prometheus Users
Good catch my friend.

We were not scraping prometheus itself. i added the localhost:9090 as target and i have my metrics !

Thanks again.
Reply all
Reply to author
Forward
0 new messages