Hi all,
I cannot retrieve any metrics from confluent cloud in Prometheus, in the table tab. But in the graph tab, I can successfully see them.
In particular, I’d like to retrieve the metric: “confluent_kafka_server_consumer_lag_offsets”
in the table tab: No data queried yet
In the graph tab: I see datas
I can make query from the table tab work and make an instant query by using: confluent_kafka_server_consumer_lag_offsets[10m]
or last_over_time(confluent_kafka_server_consumer_lag_offsets[10m]
Below is my Prometheus configuration:
- job_name: Confluent Cloud
honor_timestamps: true
track_timestamps_staleness: true # this is me trying to fix my current issue using this parameter. Without it, I also have the initial issue
params:
resource.kafka.id:
- consumer1
- consumer2
- consumer3
scrape_interval: 1m
scrape_timeout: 1m
scrape_protocols:
- OpenMetricsText1.0.0
- OpenMetricsText0.0.1
- PrometheusText0.0.4
metrics_path: /v2/metrics/cloud/export
scheme: https
enable_compression: true
basic_auth:
username: xxxx
password: <secret>
follow_redirects: true
enable_http2: true
http_headers: null
static_configs:
- targets:
- xxx.xxx.confluent.cloud # hidden
My question is the following: Is it expected to not receive any datas in the table tab section? (instant query)
If it is not, could you please advise, thank you!
Feel free to ask questions if needed.
Additional information:
Prometheus version: 2.53.1
Prometheus is running on GKE (Kubernetes)