prometheus-client-mmap 0.26.1-x86_64-darwin → 0.28.0-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5e6a47564cdf94bbdc5239e944b883bc876afa39b7eb08744eb987fdb59060e
4
- data.tar.gz: e0d6309c130a7eb1483386fadc565c8badf412e6c9cc8fe9eed06e9728a8161e
3
+ metadata.gz: a538688261158976af3b9b6fcec46a733b52479a6b68e6bdf14be7f25feaccb3
4
+ data.tar.gz: 45eb08a421e7f53d98966c8b7d037046c0e5b4d36956348abd3b1aaaa103a89c
5
5
  SHA512:
6
- metadata.gz: 782a1f3aa34f60b408b43bafb0f866a7a3849dfa7067eda74e2f8755a887fc38c42a3ec3a461e806281b3e663fd26b3392ed1bdf276e17ac15b33856742563c8
7
- data.tar.gz: 6dc523ed5e961e6497f30f0ba7c08681415a242fde4ff699d101a0dc8ef29727c42bae8482bb1cdb0cd0dfea081066b1461e31aae837f4583e75c63b808df2a5
6
+ metadata.gz: fa9266c3aff8300a977f4fdd916a6e767ecb2a781d70e49c85a90d021acef48f7d64b6f3750b11a20c92a814be93a88a9735f060aeeb7c39edafeb662ec4892b
7
+ data.tar.gz: ccc92bc3963443d661d4d844b5f41bb46fffe5586a6a8315fa0258e2402b5b535930ff30adcd2f702f3802b45046b52b446fc785640a89128b911c5a8b9aae51
data/README.md CHANGED
@@ -241,8 +241,8 @@ To use the C extension, set the environment variable
241
241
 
242
242
  ### PID cardinality
243
243
 
244
- In multiprocess setup e.g. running under Unicorn, having worker process restart often can
245
- lead to performance problems when proccesing metric files. By default each process using
244
+ In multiprocess setup e.g. running under Unicorn or Puma, having worker process restart often
245
+ can lead to performance problems when proccesing metric files. By default each process using
246
246
  Prometheus metrics will create a set of files based on that process PID. With high worker
247
247
  churn this will lead to creation of thousands of files and in turn will cause very noticable
248
248
  slowdown when displaying metrics
@@ -250,17 +250,23 @@ slowdown when displaying metrics
250
250
  To reduce this problem, a surrogate process id can be used. Set of all such IDs needs
251
251
  have low cardinality, and each process id must be unique among all running process.
252
252
 
253
- For Unicorn a worker id/number can be used to greatly speedup the metrics rendering.
253
+ For Unicorn and Puma a worker id/number can be used to greatly speedup the metrics rendering.
254
254
 
255
- To use it add this line to your `configure` block:
255
+ If you are using Unicorn, add this line to your `configure` block:
256
256
 
257
257
  ```ruby
258
258
  config.pid_provider = Prometheus::Client::Support::Unicorn.method(:worker_pid_provider)
259
259
  ```
260
260
 
261
+ If you are using Puma, add this line to your `configure` block:
262
+
263
+ ```ruby
264
+ config.pid_provider = Prometheus::Client::Support::Puma.method(:worker_pid_provider)
265
+ ```
266
+
261
267
  ## Tools
262
268
 
263
- ###`bin/parse`
269
+ ### `bin/parse`
264
270
 
265
271
  This command can be used to parse metric files located on the filesystem just like a metric exporter would.
266
272
  It outputs either `json` formatted raw data or digested data in prometheus `text` format.
@@ -34,7 +34,7 @@ version = "0.62.0"
34
34
  source = "registry+https://github.com/rust-lang/crates.io-index"
35
35
  checksum = "c6720a8b7b2d39dd533285ed438d458f65b31b5c257e6ac7bb3d7e82844dd722"
36
36
  dependencies = [
37
- "bitflags",
37
+ "bitflags 1.3.2",
38
38
  "cexpr",
39
39
  "clang-sys",
40
40
  "lazy_static",
@@ -54,6 +54,12 @@ version = "1.3.2"
54
54
  source = "registry+https://github.com/rust-lang/crates.io-index"
55
55
  checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
56
56
 
57
+ [[package]]
58
+ name = "bitflags"
59
+ version = "2.3.3"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42"
62
+
57
63
  [[package]]
58
64
  name = "block-buffer"
59
65
  version = "0.10.4"
@@ -65,12 +71,11 @@ dependencies = [
65
71
 
66
72
  [[package]]
67
73
  name = "bstr"
68
- version = "1.4.0"
74
+ version = "1.6.0"
69
75
  source = "registry+https://github.com/rust-lang/crates.io-index"
70
- checksum = "c3d4260bcc2e8fc9df1eac4919a720effeb63a3f0952f5bf4944adfa18897f09"
76
+ checksum = "6798148dccfbff0fae41c7574d2fa8f1ef3492fba0face179de5d8d447d67b05"
71
77
  dependencies = [
72
78
  "memchr",
73
- "once_cell",
74
79
  "regex-automata",
75
80
  "serde",
76
81
  ]
@@ -128,9 +133,9 @@ dependencies = [
128
133
 
129
134
  [[package]]
130
135
  name = "digest"
131
- version = "0.10.6"
136
+ version = "0.10.7"
132
137
  source = "registry+https://github.com/rust-lang/crates.io-index"
133
- checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f"
138
+ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
134
139
  dependencies = [
135
140
  "block-buffer",
136
141
  "crypto-common",
@@ -138,13 +143,13 @@ dependencies = [
138
143
 
139
144
  [[package]]
140
145
  name = "errno"
141
- version = "0.3.0"
146
+ version = "0.3.2"
142
147
  source = "registry+https://github.com/rust-lang/crates.io-index"
143
- checksum = "50d6a0976c999d473fe89ad888d5a284e55366d9dc9038b1ba2aa15128c4afa0"
148
+ checksum = "6b30f669a7961ef1631673d2766cc92f52d64f7ef354d4fe0ddfd30ed52f0f4f"
144
149
  dependencies = [
145
150
  "errno-dragonfly",
146
151
  "libc",
147
- "windows-sys 0.45.0",
152
+ "windows-sys",
148
153
  ]
149
154
 
150
155
  [[package]]
@@ -181,12 +186,9 @@ dependencies = [
181
186
 
182
187
  [[package]]
183
188
  name = "fastrand"
184
- version = "1.9.0"
189
+ version = "2.0.0"
185
190
  source = "registry+https://github.com/rust-lang/crates.io-index"
186
- checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be"
187
- dependencies = [
188
- "instant",
189
- ]
191
+ checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764"
190
192
 
191
193
  [[package]]
192
194
  name = "generic-array"
@@ -224,37 +226,11 @@ dependencies = [
224
226
  "ahash",
225
227
  ]
226
228
 
227
- [[package]]
228
- name = "hermit-abi"
229
- version = "0.3.1"
230
- source = "registry+https://github.com/rust-lang/crates.io-index"
231
- checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
232
-
233
229
  [[package]]
234
230
  name = "indoc"
235
- version = "2.0.1"
231
+ version = "2.0.3"
236
232
  source = "registry+https://github.com/rust-lang/crates.io-index"
237
- checksum = "9f2cb48b81b1dc9f39676bf99f5499babfec7cd8fe14307f7b3d747208fb5690"
238
-
239
- [[package]]
240
- name = "instant"
241
- version = "0.1.12"
242
- source = "registry+https://github.com/rust-lang/crates.io-index"
243
- checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
244
- dependencies = [
245
- "cfg-if",
246
- ]
247
-
248
- [[package]]
249
- name = "io-lifetimes"
250
- version = "1.0.10"
251
- source = "registry+https://github.com/rust-lang/crates.io-index"
252
- checksum = "9c66c74d2ae7e79a5a8f7ac924adbe38ee42a859c6539ad869eb51f0b52dc220"
253
- dependencies = [
254
- "hermit-abi",
255
- "libc",
256
- "windows-sys 0.48.0",
257
- ]
233
+ checksum = "2c785eefb63ebd0e33416dfcb8d6da0bf27ce752843a45632a67bf10d4d4b5c4"
258
234
 
259
235
  [[package]]
260
236
  name = "itoa"
@@ -276,9 +252,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
276
252
 
277
253
  [[package]]
278
254
  name = "libc"
279
- version = "0.2.141"
255
+ version = "0.2.147"
280
256
  source = "registry+https://github.com/rust-lang/crates.io-index"
281
- checksum = "3304a64d199bb964be99741b7a14d26972741915b3649639149b2479bb46f4b5"
257
+ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
282
258
 
283
259
  [[package]]
284
260
  name = "libloading"
@@ -292,14 +268,15 @@ dependencies = [
292
268
 
293
269
  [[package]]
294
270
  name = "linux-raw-sys"
295
- version = "0.3.1"
271
+ version = "0.4.3"
296
272
  source = "registry+https://github.com/rust-lang/crates.io-index"
297
- checksum = "d59d8c75012853d2e872fb56bc8a2e53718e2cafe1a4c823143141c6d90c322f"
273
+ checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0"
298
274
 
299
275
  [[package]]
300
276
  name = "magnus"
301
- version = "0.5.0"
302
- source = "git+https://github.com/matsadler/magnus?branch=main#50cab2380103c39c14765a10bdc4b38a74082285"
277
+ version = "0.6.0"
278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
279
+ checksum = "68e9585bfe236e88e6b10b6d8eb5349bd0e0009f3f9dff8d2e99a82601b33743"
303
280
  dependencies = [
304
281
  "magnus-macros",
305
282
  "rb-sys",
@@ -309,8 +286,9 @@ dependencies = [
309
286
 
310
287
  [[package]]
311
288
  name = "magnus-macros"
312
- version = "0.4.0"
313
- source = "git+https://github.com/matsadler/magnus?branch=main#50cab2380103c39c14765a10bdc4b38a74082285"
289
+ version = "0.6.0"
290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
291
+ checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
314
292
  dependencies = [
315
293
  "proc-macro2",
316
294
  "quote",
@@ -354,7 +332,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
354
332
  checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4"
355
333
  dependencies = [
356
334
  "autocfg",
357
- "bitflags",
335
+ "bitflags 1.3.2",
358
336
  "cfg-if",
359
337
  "libc",
360
338
  "memoffset",
@@ -479,7 +457,7 @@ version = "0.3.5"
479
457
  source = "registry+https://github.com/rust-lang/crates.io-index"
480
458
  checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
481
459
  dependencies = [
482
- "bitflags",
460
+ "bitflags 1.3.2",
483
461
  ]
484
462
 
485
463
  [[package]]
@@ -495,9 +473,9 @@ dependencies = [
495
473
 
496
474
  [[package]]
497
475
  name = "regex-automata"
498
- version = "0.1.10"
476
+ version = "0.3.4"
499
477
  source = "registry+https://github.com/rust-lang/crates.io-index"
500
- checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
478
+ checksum = "b7b6d6190b7594385f61bd3911cd1be99dfddcfc365a4160cc2ab5bff4aed294"
501
479
 
502
480
  [[package]]
503
481
  name = "regex-syntax"
@@ -513,16 +491,15 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
513
491
 
514
492
  [[package]]
515
493
  name = "rustix"
516
- version = "0.37.8"
494
+ version = "0.38.4"
517
495
  source = "registry+https://github.com/rust-lang/crates.io-index"
518
- checksum = "1aef160324be24d31a62147fae491c14d2204a3865c7ca8c3b0d7f7bcb3ea635"
496
+ checksum = "0a962918ea88d644592894bc6dc55acc6c0956488adcebbfb6e273506b7fd6e5"
519
497
  dependencies = [
520
- "bitflags",
498
+ "bitflags 2.3.3",
521
499
  "errno",
522
- "io-lifetimes",
523
500
  "libc",
524
501
  "linux-raw-sys",
525
- "windows-sys 0.48.0",
502
+ "windows-sys",
526
503
  ]
527
504
 
528
505
  [[package]]
@@ -539,18 +516,18 @@ checksum = "e6b44e8fc93a14e66336d230954dda83d18b4605ccace8fe09bc7514a71ad0bc"
539
516
 
540
517
  [[package]]
541
518
  name = "serde"
542
- version = "1.0.159"
519
+ version = "1.0.164"
543
520
  source = "registry+https://github.com/rust-lang/crates.io-index"
544
- checksum = "3c04e8343c3daeec41f58990b9d77068df31209f2af111e059e9fe9646693065"
521
+ checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d"
545
522
  dependencies = [
546
523
  "serde_derive",
547
524
  ]
548
525
 
549
526
  [[package]]
550
527
  name = "serde_derive"
551
- version = "1.0.159"
528
+ version = "1.0.164"
552
529
  source = "registry+https://github.com/rust-lang/crates.io-index"
553
- checksum = "4c614d17805b093df4b147b51339e7e44bf05ef59fba1e45d83500bcfb4d8585"
530
+ checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68"
554
531
  dependencies = [
555
532
  "proc-macro2",
556
533
  "quote",
@@ -559,9 +536,9 @@ dependencies = [
559
536
 
560
537
  [[package]]
561
538
  name = "serde_json"
562
- version = "1.0.96"
539
+ version = "1.0.99"
563
540
  source = "registry+https://github.com/rust-lang/crates.io-index"
564
- checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1"
541
+ checksum = "46266871c240a00b8f503b877622fe33430b3c7d963bdc0f2adc511e54a1eae3"
565
542
  dependencies = [
566
543
  "itoa",
567
544
  "ryu",
@@ -570,9 +547,9 @@ dependencies = [
570
547
 
571
548
  [[package]]
572
549
  name = "sha2"
573
- version = "0.10.6"
550
+ version = "0.10.7"
574
551
  source = "registry+https://github.com/rust-lang/crates.io-index"
575
- checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0"
552
+ checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8"
576
553
  dependencies = [
577
554
  "cfg-if",
578
555
  "cpufeatures",
@@ -593,9 +570,9 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
593
570
 
594
571
  [[package]]
595
572
  name = "smallvec"
596
- version = "1.10.0"
573
+ version = "1.11.0"
597
574
  source = "registry+https://github.com/rust-lang/crates.io-index"
598
- checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
575
+ checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9"
599
576
  dependencies = [
600
577
  "serde",
601
578
  ]
@@ -624,15 +601,15 @@ dependencies = [
624
601
 
625
602
  [[package]]
626
603
  name = "tempfile"
627
- version = "3.5.0"
604
+ version = "3.7.0"
628
605
  source = "registry+https://github.com/rust-lang/crates.io-index"
629
- checksum = "b9fbec84f381d5795b08656e4912bec604d162bff9291d6189a78f4c8ab87998"
606
+ checksum = "5486094ee78b2e5038a6382ed7645bc084dc2ec433426ca4c3cb61e2007b8998"
630
607
  dependencies = [
631
608
  "cfg-if",
632
609
  "fastrand",
633
610
  "redox_syscall",
634
611
  "rustix",
635
- "windows-sys 0.45.0",
612
+ "windows-sys",
636
613
  ]
637
614
 
638
615
  [[package]]
@@ -701,37 +678,13 @@ version = "0.4.0"
701
678
  source = "registry+https://github.com/rust-lang/crates.io-index"
702
679
  checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
703
680
 
704
- [[package]]
705
- name = "windows-sys"
706
- version = "0.45.0"
707
- source = "registry+https://github.com/rust-lang/crates.io-index"
708
- checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
709
- dependencies = [
710
- "windows-targets 0.42.2",
711
- ]
712
-
713
681
  [[package]]
714
682
  name = "windows-sys"
715
683
  version = "0.48.0"
716
684
  source = "registry+https://github.com/rust-lang/crates.io-index"
717
685
  checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
718
686
  dependencies = [
719
- "windows-targets 0.48.0",
720
- ]
721
-
722
- [[package]]
723
- name = "windows-targets"
724
- version = "0.42.2"
725
- source = "registry+https://github.com/rust-lang/crates.io-index"
726
- checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
727
- dependencies = [
728
- "windows_aarch64_gnullvm 0.42.2",
729
- "windows_aarch64_msvc 0.42.2",
730
- "windows_i686_gnu 0.42.2",
731
- "windows_i686_msvc 0.42.2",
732
- "windows_x86_64_gnu 0.42.2",
733
- "windows_x86_64_gnullvm 0.42.2",
734
- "windows_x86_64_msvc 0.42.2",
687
+ "windows-targets",
735
688
  ]
736
689
 
737
690
  [[package]]
@@ -740,93 +693,51 @@ version = "0.48.0"
740
693
  source = "registry+https://github.com/rust-lang/crates.io-index"
741
694
  checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5"
742
695
  dependencies = [
743
- "windows_aarch64_gnullvm 0.48.0",
744
- "windows_aarch64_msvc 0.48.0",
745
- "windows_i686_gnu 0.48.0",
746
- "windows_i686_msvc 0.48.0",
747
- "windows_x86_64_gnu 0.48.0",
748
- "windows_x86_64_gnullvm 0.48.0",
749
- "windows_x86_64_msvc 0.48.0",
696
+ "windows_aarch64_gnullvm",
697
+ "windows_aarch64_msvc",
698
+ "windows_i686_gnu",
699
+ "windows_i686_msvc",
700
+ "windows_x86_64_gnu",
701
+ "windows_x86_64_gnullvm",
702
+ "windows_x86_64_msvc",
750
703
  ]
751
704
 
752
- [[package]]
753
- name = "windows_aarch64_gnullvm"
754
- version = "0.42.2"
755
- source = "registry+https://github.com/rust-lang/crates.io-index"
756
- checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
757
-
758
705
  [[package]]
759
706
  name = "windows_aarch64_gnullvm"
760
707
  version = "0.48.0"
761
708
  source = "registry+https://github.com/rust-lang/crates.io-index"
762
709
  checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
763
710
 
764
- [[package]]
765
- name = "windows_aarch64_msvc"
766
- version = "0.42.2"
767
- source = "registry+https://github.com/rust-lang/crates.io-index"
768
- checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
769
-
770
711
  [[package]]
771
712
  name = "windows_aarch64_msvc"
772
713
  version = "0.48.0"
773
714
  source = "registry+https://github.com/rust-lang/crates.io-index"
774
715
  checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
775
716
 
776
- [[package]]
777
- name = "windows_i686_gnu"
778
- version = "0.42.2"
779
- source = "registry+https://github.com/rust-lang/crates.io-index"
780
- checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
781
-
782
717
  [[package]]
783
718
  name = "windows_i686_gnu"
784
719
  version = "0.48.0"
785
720
  source = "registry+https://github.com/rust-lang/crates.io-index"
786
721
  checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
787
722
 
788
- [[package]]
789
- name = "windows_i686_msvc"
790
- version = "0.42.2"
791
- source = "registry+https://github.com/rust-lang/crates.io-index"
792
- checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
793
-
794
723
  [[package]]
795
724
  name = "windows_i686_msvc"
796
725
  version = "0.48.0"
797
726
  source = "registry+https://github.com/rust-lang/crates.io-index"
798
727
  checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
799
728
 
800
- [[package]]
801
- name = "windows_x86_64_gnu"
802
- version = "0.42.2"
803
- source = "registry+https://github.com/rust-lang/crates.io-index"
804
- checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
805
-
806
729
  [[package]]
807
730
  name = "windows_x86_64_gnu"
808
731
  version = "0.48.0"
809
732
  source = "registry+https://github.com/rust-lang/crates.io-index"
810
733
  checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
811
734
 
812
- [[package]]
813
- name = "windows_x86_64_gnullvm"
814
- version = "0.42.2"
815
- source = "registry+https://github.com/rust-lang/crates.io-index"
816
- checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
817
-
818
735
  [[package]]
819
736
  name = "windows_x86_64_gnullvm"
820
737
  version = "0.48.0"
821
738
  source = "registry+https://github.com/rust-lang/crates.io-index"
822
739
  checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
823
740
 
824
- [[package]]
825
- name = "windows_x86_64_msvc"
826
- version = "0.42.2"
827
- source = "registry+https://github.com/rust-lang/crates.io-index"
828
- checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
829
-
830
741
  [[package]]
831
742
  name = "windows_x86_64_msvc"
832
743
  version = "0.48.0"
@@ -8,7 +8,7 @@ edition = "2021"
8
8
  [dependencies]
9
9
  hashbrown = "0.13"
10
10
  libc = "0.2"
11
- magnus = { git = "https://github.com/matsadler/magnus", branch = "main", features = ["rb-sys"] }
11
+ magnus = { version = "0.6", features = ["rb-sys"] }
12
12
  memmap2 = "0.5"
13
13
  # v0.26 cannot be built on CentOS 7 https://github.com/nix-rust/nix/issues/1972
14
14
  nix = { version = "0.25", features = ["mman"] } # mman used for MsFlags
@@ -19,10 +19,10 @@ smallvec = { version = "1.10", features = ["serde"] }
19
19
  thiserror = "1.0"
20
20
 
21
21
  [dev-dependencies]
22
- bstr = "1.4"
22
+ bstr = "1.6"
23
23
  indoc = "2.0"
24
24
  # We need the `embed` feature to run tests, but this triggers failures when building as a Gem.
25
- magnus = { git = "https://github.com/matsadler/magnus", branch = "main", features = ["rb-sys","embed"] }
25
+ magnus = { version = "0.6", features = ["rb-sys","embed"] }
26
26
  rand = "0.8"
27
27
  sha2 = "0.10"
28
28
  tempfile = "3.5"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -5,8 +5,7 @@ module Prometheus
5
5
  # LabelSetValidator ensures that all used label sets comply with the
6
6
  # Prometheus specification.
7
7
  class LabelSetValidator
8
- # TODO: we might allow setting :instance in the future
9
- RESERVED_LABELS = [:job, :instance].freeze
8
+ RESERVED_LABELS = [].freeze
10
9
 
11
10
  class LabelSetError < StandardError; end
12
11
  class InvalidLabelSetError < LabelSetError; end
@@ -0,0 +1,44 @@
1
+ module Prometheus
2
+ module Client
3
+ module Support
4
+ module Puma
5
+ extend self
6
+
7
+ def worker_pid_provider
8
+ wid = worker_id
9
+ if wid = worker_id
10
+ wid
11
+ else
12
+ "process_id_#{Process.pid}"
13
+ end
14
+ end
15
+
16
+ private
17
+
18
+ def object_based_worker_id
19
+ return unless defined?(::Puma::Cluster::Worker)
20
+
21
+ workers = ObjectSpace.each_object(::Puma::Cluster::Worker)
22
+ return if workers.nil?
23
+
24
+ workers_first = workers.first
25
+ workers_first.index unless workers_first.nil?
26
+ end
27
+
28
+ def program_name
29
+ $PROGRAM_NAME
30
+ end
31
+
32
+ def worker_id
33
+ if matchdata = program_name.match(/puma.*cluster worker ([0-9]+):/)
34
+ "puma_#{matchdata[1]}"
35
+ elsif object_worker_id = object_based_worker_id
36
+ "puma_#{object_worker_id}"
37
+ elsif program_name.include?('puma')
38
+ 'puma_master'
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '0.26.1'.freeze
3
+ VERSION = '0.28.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-client-mmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.1
4
+ version: 0.28.0
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Tobias Schmidt
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-07-12 00:00:00.000000000 Z
14
+ date: 2023-09-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rb_sys
@@ -197,6 +197,7 @@ files:
197
197
  - lib/prometheus/client/registry.rb
198
198
  - lib/prometheus/client/simple_value.rb
199
199
  - lib/prometheus/client/summary.rb
200
+ - lib/prometheus/client/support/puma.rb
200
201
  - lib/prometheus/client/support/unicorn.rb
201
202
  - lib/prometheus/client/uses_value_type.rb
202
203
  - lib/prometheus/client/version.rb