How to plot graph of Prometheus data, with 1 sec interval in Grafana

Hello,
I am trying to add some graph using Prometheus Data (with scrap interval =1s) in Grafana but somehow i am not able to get the Graph with 1 Sec interval data points (i see it is 15 sec always). Can someone please confirm if that is even possible if yes how to achieve it. Thanks in advanced!

There is no specific limit on how quickly you can scrape (it really depends on the network/application), with some people having achieved sub 1s scrapes. What is the job configuration, and what shows in the Prometheus UI (both the targets page and if you query one of the scraped metrics)?

Hello,
I am trying with simple node exporter and trying to plot graph for go_gc_duration_seconds/process_cpu_total but for both Prometheus and Grafana i see plots are with 15s interval (scrap interval in prometheus is set to 1s and same is updated in Grafana’s Prometheus Configuration).

Pasting the prometheus yaml as below:

global:
scrape_interval: 1s
evaluation_interval: 1s

alerting:
alertmanagers:
- static_configs:
- targets:

‘evaluation_interval’.
rule_files:

scrape_configs:

  • job_name: “prometheus”
    static_configs:
    • targets: [“localhost:9090”]
  • job_name: node
    static_configs:
    • targets: [‘localhost:9100’]
      =================================================

Thanks

Blockquote