Forgot to add the runtime info!

Runtime Information
Start time Sun, 27 Feb 2022 17:39:24 GMT
Working directory /prometheus
Configuration reload Successful
Last successful configuration reload 2022-02-27T17:39:24Z
WAL corruptions 0
Goroutines 66
GOMAXPROCS 32
GOGC
GODEBUG
Storage retention 360d

Build Information
Version 2.33.4
Revision 83032011a5d3e6102624fe58241a374a7201fee8
Branch HEAD
BuildUser root@d13bf69e7be8
BuildDate 20220222-16:51:28
GoVersion go1.17.7

On Sun, Feb 27, 2022 at 12:40 PM Laurent Dumont <laurentfdum...@gmail.com>
wrote:

> Hey folks,
>
> Trying to load some past data into Prometheus using create-blocks-from.
>
>    - The data appears to be proper Openmetrics formatted.
>    - No errors from Prometheus
>    - I do see the metric in Prometheus, but there doesnt appear to be any
>    data points.
>    - Tried restarting the server to trigger the compaction but same result
>
>
> [image: image.png]
>
> Example file
> /prometheus $ cat test-data
> # HELP potato_http_requests_total The total number of HTTP requests.
> # TYPE potato_http_requests_total counter
> potato_http_requests_total{code="200",service="user"} 123 1645890050
> potato_http_requests_total{code="500",service="user"} 456 1645803650
> # EOF
>
> /prometheus $ promtool tsdb create-blocks-from openmetrics test-data
> BLOCK ULID                  MIN TIME       MAX TIME       DURATION     NUM
> SAMPLES  NUM CHUNKS   NUM SERIES   SIZE
> 01FWY412H2C2FQJQJTWE4SJK8R  1645803650000  1645803650001  1ms          1
>          1            1            711
> 01FWY412JSY30HTX5XNEHWR7NC  1645890050000  1645890050001  1ms          1
>          1            1            711
>
> I see the blocks in the data folder
>
> /prometheus/data $ ls -alh
> total 100K
> drwxr-xr-x   17 nobody   nobody      4.0K Feb 27 17:35 .
> drwxr-xr-x    3 nobody   nobody      4.0K Feb 27 16:45 ..
> drwxr-xr-x    3 nobody   nobody      4.0K Mar 25  2021
> 01F1KN6MHTT14QY66JG3C1Q1YY
> drwxr-xr-x    3 nobody   nobody      4.0K Apr 14  2021
> 01F37SR7TPX16S3BYMH5B0YB1Q
> drwxr-xr-x    3 nobody   nobody      4.0K May  4  2021
> 01F4VY9MT7BQ23DHX5R8WDND49
> drwxr-xr-x    3 nobody   nobody      4.0K May 24  2021
> 01F6G2V8NE1NC48PWKXSDJ9WT2
> drwxr-xr-x    3 nobody   nobody      4.0K Aug 25  2021
> 01FDXM0CFDYQTZB01EDFG5ZVT2
> drwxr-xr-x    3 nobody   nobody      4.0K Sep  3 05:00
> 01FEN0EAG99SSNBNTYENDDJVC7
> drwxr-xr-x    3 nobody   nobody      4.0K Dec  4 22:21
> 01FP3RJZHXJD84TSBYQ21EEE66
> drwxr-xr-x    3 nobody   nobody      4.0K Dec 13 11:00
> 01FPSQ640Q0GMS0CF11HCBEAPE
> drwxr-xr-x    3 nobody   nobody      4.0K Jan  2 15:00
> 01FRDMWGTP1Q00Q1NS76YVY8QB
> drwxr-xr-x    3 nobody   nobody      4.0K Jan 22 21:00
> 01FT1SDTQ0TSBC81VX3VNGMSYC
> drwxr-xr-x    3 nobody   nobody      4.0K Feb 27 17:35
> 01FWY40KRJ5A6CDAQVYFZXFF19
> drwxr-xr-x    3 nobody   nobody      4.0K Feb 27 17:35
> 01FWY412H2C2FQJQJTWE4SJK8R
> drwxr-xr-x    3 nobody   nobody      4.0K Feb 27 17:35
> 01FWY412JSY30HTX5XNEHWR7NC
> drwxr-xr-x    2 nobody   nobody      4.0K Feb 27 17:33 chunks_head
> -rw-r--r--    1 nobody   nobody         0 Feb 27 17:35 lock
> -rw-r--r--    1 nobody   nobody     19.5K Feb 27 17:35 queries.active
> drwxr-xr-x    3 nobody   nobody     28.0K Feb 27 17:35 wal
>
> No errors logs from Prometheus
>
> root@docker01:/var/lib/docker/volumes/prometheus-data/_data/data# docker
> logs 3e12c83cafd7 -f --tail 10
> ts=2022-02-27T17:35:16.715Z caller=main.go:947 level=info msg="TSDB
> started"
> ts=2022-02-27T17:35:16.715Z caller=main.go:1128 level=info msg="Loading
> configuration file" filename=/etc/prometheus/prometheus.yml
> ts=2022-02-27T17:35:16.716Z caller=main.go:1165 level=info msg="Completed
> loading of configuration file" filename=/etc/prometheus/prometheus.yml
> totalDuration=1.656076ms db_storage=1.263µs remote_storage=2.439µs
> web_handler=1.168µs query_engine=1.722µs scrape=310.554µs scrape_sd=92.74µs
> notify=1.421µs notify_sd=3.065µs rules=516.589µs
> ts=2022-02-27T17:35:16.716Z caller=main.go:896 level=info msg="Server is
> ready to receive web requests."
> ts=2022-02-27T17:35:21.861Z caller=compact.go:510 level=info
> component=tsdb msg="write block resulted in empty block" mint=1642874400000
> maxt=1642881600000 duration=24.495227ms
> ts=2022-02-27T17:35:21.874Z caller=head.go:827 level=info component=tsdb
> msg="Head GC completed" duration=10.91284ms
> ts=2022-02-27T17:35:22.076Z caller=compact.go:519 level=info
> component=tsdb msg="write block" mint=1645970403340 maxt=1645977600000
> ulid=01FWY40KRJ5A6CDAQVYFZXFF19 duration=201.925871ms
> ts=2022-02-27T17:35:22.091Z caller=head.go:827 level=info component=tsdb
> msg="Head GC completed" duration=12.652968ms
> ts=2022-02-27T17:35:22.092Z caller=checkpoint.go:98 level=info
> component=tsdb msg="Creating checkpoint" from_segment=5876 to_segment=5887
> mint=1645977600000
> ts=2022-02-27T17:35:22.230Z caller=head.go:996 level=info component=tsdb
> msg="WAL checkpoint complete" first=5876 last=5887 duration=138.799289ms
>
> After a prometheus restart
>
> ts=2022-02-27T17:39:24.674Z caller=head.go:604 level=info component=tsdb
> msg="WAL segment loaded" segment=5893 maxSegment=5896
> ts=2022-02-27T17:39:24.675Z caller=head.go:604 level=info component=tsdb
> msg="WAL segment loaded" segment=5894 maxSegment=5896
> ts=2022-02-27T17:39:24.701Z caller=head.go:604 level=info component=tsdb
> msg="WAL segment loaded" segment=5895 maxSegment=5896
> ts=2022-02-27T17:39:24.702Z caller=head.go:604 level=info component=tsdb
> msg="WAL segment loaded" segment=5896 maxSegment=5896
> ts=2022-02-27T17:39:24.702Z caller=head.go:610 level=info component=tsdb
> msg="WAL replay completed" checkpoint_replay_duration=204.980533ms
> wal_replay_duration=249.924299ms total_replay_duration=489.340555ms
> ts=2022-02-27T17:39:24.716Z caller=main.go:944 level=info
> fs_type=EXT4_SUPER_MAGIC
> ts=2022-02-27T17:39:24.716Z caller=main.go:947 level=info msg="TSDB
> started"
> ts=2022-02-27T17:39:24.716Z caller=main.go:1128 level=info msg="Loading
> configuration file" filename=/etc/prometheus/prometheus.yml
> ts=2022-02-27T17:39:24.717Z caller=main.go:1165 level=info msg="Completed
> loading of configuration file" filename=/etc/prometheus/prometheus.yml
> totalDuration=1.525714ms db_storage=1.257µs remote_storage=2.685µs
> web_handler=570ns query_engine=1.494µs scrape=267.342µs scrape_sd=96.809µs
> notify=1.42µs notify_sd=3.155µs rules=529.186µs
> ts=2022-02-27T17:39:24.717Z caller=main.go:896 level=info msg="Server is
> ready to receive web requests."
>
> Any thoughts?
>

-- 
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/CAOAKi8yXRutKmNNJKV38Sh6No%3DSdGRQ1r3bWRzpT56BWh_sFdg%40mail.gmail.com.

Reply via email to