Commit Graph

  • 4e491639e6 Merge remote-tracking branch 'getters/metrics' master v0.0.1 testing Vasiliy Tolstov 2024-11-09 19:39:05 +03:00
  • cfcb00051e Merge remote-tracking branch 'prometheus/master' Vasiliy Tolstov 2024-11-09 19:33:55 +03:00
  • 6aa41f4081 change import path Vasiliy Tolstov 2024-11-09 19:32:37 +03:00
  • d783709a53
    push.go: clarify the docs for PushOptions.Method field Aliaksandr Valialkin 2024-07-16 13:14:56 +02:00
  • eba0da061f
    process_metrics_linux.go: avoid calling os.Getpagesize() with every writeProcessMetrics() call Aliaksandr Valialkin 2024-07-16 13:09:14 +02:00
  • 7a44715774
    histogram.go: code cleanup after e40cfe3ab596ac0302fad2cb8eb1779895bc43a3 Aliaksandr Valialkin 2024-07-16 12:55:56 +02:00
  • 17878c4c4e
    Make UnregisterSet() less error-prone to use Aliaksandr Valialkin 2024-07-15 10:29:56 +02:00
  • 32321d68e1
    Merge pull request from VictoriaMetrics/fixed-histogram-merge Nikolay 2024-07-10 12:44:08 +02:00
  • 001417b6f1
    fixed tests AndrewChubatiuk 2024-07-10 13:30:47 +03:00
  • 925f863c7b
    fixed histogram merge AndrewChubatiuk 2024-07-09 11:04:36 +03:00
  • d5fb341414
    Merge pull request from aierui/request_method Nikolay 2024-06-24 09:37:00 +02:00
  • 464c46d5c5
    Merge pull request from zhengtianbao/master Nikolay 2024-06-17 10:02:52 +02:00
  • 7b14975dbb Use Getpagesize replace hard-coded page size zhengtianbao 2024-06-11 18:03:33 +08:00
  • 5e5f209f79
    histograms: fixed panic in merge when target bucket is nil AndrewChubatiuk 2024-05-20 15:46:52 +03:00
  • a52bdc6f15
    Merge pull request from AndrewChubatiuk/merge-histograms Andrii Chubatiuk 2024-05-20 13:52:53 +03:00
  • e40cfe3ab5
    added function for histograms merge AndrewChubatiuk 2024-05-19 11:06:13 +03:00
  • b6cce23ebe
    metrics.go: fix typo () xsteadfastx 2024-03-19 10:03:09 +01:00
  • 1efad2cf86
    change link to metricsql in histogram.go Artem Navoiev 2024-03-18 12:24:50 +01:00
  • 4d19f45b19
    counter.go: add Counter.AddInt64() method Aliaksandr Valialkin 2024-02-24 01:23:20 +02:00
  • 9032bb9e48 feat: Support configure request method aierui 2024-02-19 22:19:06 +08:00
  • da211e52b9
    gauge.go: add Inc, Dec and Add methods to Gauge Aliaksandr Valialkin 2024-02-18 12:40:32 +02:00
  • fdfd428a62
    Add Set.RegisterMetricsWriter() function for registering user-defined callbacks for arbitrary metrics generation in Prometheus text exposition format Aliaksandr Valialkin 2024-01-16 00:06:40 +02:00
  • 64b88f0e8f
    push.go: document that PushOptions.WaitGroup can be used for waiting for background push workers to stop Aliaksandr Valialkin 2024-01-15 21:57:45 +02:00
  • c45a8b1b70
    push.go: add an ability to wait until push workers are stopped via PushOptions.WaitGroup Aliaksandr Valialkin 2024-01-15 12:07:18 +02:00
  • 49f6df7219
    gauge: fix unaligned 64-bit atomic operation panic on 32-bit architectures hagen1778 2023-12-22 15:54:57 +01:00
  • fa3e54236d
    github-actions: add test for 386 arch hagen1778 2023-12-22 15:52:25 +01:00
  • 4770da2beb
    github-actions: add test for 386 arch hagen1778 2023-12-22 15:50:59 +01:00
  • b23fdf5bd7
    gauge.go: add Set() method, which can be used for changing the gauge value without the need to pass callback to NewGauge() Aliaksandr Valialkin 2023-12-20 14:06:44 +02:00
  • efd161d607
    Expose WriteMetadataIfNeeded() function Aliaksandr Valialkin 2023-12-19 03:07:21 +02:00
  • 2d7f9a140e
    allow passing metric names with labels into Write{Counter,Gauge}{Uint64,Float64} functions Aliaksandr Valialkin 2023-12-19 02:49:52 +02:00
  • 9dc7358869
    allow exposing meta information for registered metrics () Roman Khavronenko 2023-12-19 01:36:54 +01:00
  • fd25889711
    push.go: added PushMetrics() function for force pushing of existing metrics to the specified url Aliaksandr Valialkin 2023-12-19 00:18:38 +02:00
  • bee9e4faf1
    push.go: initialize nil opts with the zero PushOptions inside InitPushExtWithOptions Aliaksandr Valialkin 2023-12-18 12:51:26 +02:00
  • b96951708c
    push_test.go: properly close the created httptest.Server after every test call Aliaksandr Valialkin 2023-12-18 12:35:00 +02:00
  • de719538d1
    push.go: expose InitPushExtWithOptions() function, since this it is neede by VictoriaMetrics Aliaksandr Valialkin 2023-12-17 19:39:36 +02:00
  • bd3cd7b6ff
    push.go: add ability to cancel periodic push via passed context Aliaksandr Valialkin 2023-12-17 18:23:33 +02:00
  • a9e3faa53c
    push.go: add InitPushWithOptions() function, which allows extending push options without breaking backwards compatibility and without the need to introduce new functions Aliaksandr Valialkin 2023-12-17 17:30:42 +02:00
  • 447d235cbb
    Do not panic on unsupported Go runtime metrics Aliaksandr Valialkin 2023-12-17 16:25:33 +02:00
  • cd448dd4c1
    Revert "support push config for InitPush ()" Aliaksandr Valialkin 2023-12-17 15:39:32 +02:00
  • 42c28a8486
    support push config for InitPush () Dmytro Kozlov 2023-12-15 13:08:55 +01:00
  • 2ec14979a8
    go_metrics.go: use histogram buckets instead of summary for Go runtime histogram Aliaksandr Valialkin 2023-11-30 01:47:03 +02:00
  • 5b58446f57
    go_metrics.go: follow-up for 8870cd36e76c191e1868f59846368468e5913919 Aliaksandr Valialkin 2023-11-30 00:56:43 +02:00
  • 5ad4f70016
    go.mod: run `go get -u ./... && go mod tidy && go mod vendor Aliaksandr Valialkin 2023-11-29 23:48:24 +02:00
  • 8870cd36e7
    go_metrics: adds new runtime metrics () Nikolay 2023-11-29 22:46:41 +01:00
  • a5eb7684ff add getters to histogram and summary metrics Anshal Shukla 2023-07-27 13:07:57 +05:30
  • ae1e9d8058
    process_metrics: adds metrics for windows OS () Nikolay 2023-05-16 18:59:00 +02:00
  • 880d8e1cc6 backward compatibility greyireland 2023-02-20 12:54:52 +08:00
  • 4a30cca184 rename compatible greyireland 2023-02-07 15:38:08 +08:00
  • 8969e845c9 update nameMetric greyireland 2023-02-07 15:15:54 +08:00
  • 8466104303 add inf greyireland 2023-02-07 15:00:56 +08:00
  • 60fb01a811 feature:compatible greyireland 2023-02-07 14:27:40 +08:00
  • fd0a3a0deb
    process_metrics_linux.go: follow-up after 7921ac9c64a6e1b4a013dbeca97023faa95c1a29 Aliaksandr Valialkin 2023-01-15 14:01:25 -08:00
  • 7921ac9c64
    linux process metrics: add error handling for metrics from /proc/self/io () Zakhar Bessarab 2023-01-16 01:51:57 +04:00
  • b2edcdcdd1
    .github/workflows/main.yml: bump Go version from 1.13 to 1.15 in order to support url.Redacted() Aliaksandr Valialkin 2022-10-29 05:20:10 +03:00
  • 17839691f2
    Add UnregisterAllMetrics() and GetDefaultSet() functions Aliaksandr Valialkin 2022-10-25 10:53:32 +03:00
  • cdba092549
    go.mod: bump minimum supported Go version from 1.12 to 1.15 Aliaksandr Valialkin 2022-08-17 21:09:16 +03:00
  • 4ca082233a
    all: go fmt from Go1.19 Aliaksandr Valialkin 2022-08-08 17:15:06 +03:00
  • c6c6640e5b
    add RegisterSet() and UnregisterSet() functions for registering the set in metrics export via global WritePrometheus() call Aliaksandr Valialkin 2022-08-08 17:13:46 +03:00
  • e9b4bb1534
    push.go: expose metrics_push_* metrics related to metrics push process Aliaksandr Valialkin 2022-08-04 18:12:13 +03:00
  • fe970f4df0
    push.go: properly flush compressed metrics to pushURL Aliaksandr Valialkin 2022-07-25 10:37:04 +03:00
  • b305bc011e
    push.go: push metrics to remote storage in gzip-compressed form Aliaksandr Valialkin 2022-07-25 10:17:02 +03:00
  • f790ba580c
    return error instead of panicing in InitPush* functions Aliaksandr Valialkin 2022-07-21 19:45:07 +03:00
  • c75f3497fe
    process_metrics_linux.go: consistently mention the metrics package in error logs Aliaksandr Valialkin 2022-07-21 19:33:33 +03:00
  • 195ac63dbf
    Improve error logging when metrics cannot be pushed to pushURL passed to InitPush*() Aliaksandr Valialkin 2022-07-21 19:30:06 +03:00
  • 5710165c4b
    Add a benchmark for addExtraLabels function Aliaksandr Valialkin 2022-07-21 18:42:53 +03:00
  • 3515499561
    Export InitPushExt function for pushing metrics provided via caller callback Aliaksandr Valialkin 2022-07-21 18:35:46 +03:00
  • aab1d62de8
    push.go: limit the maximum timeout for pushing metrics to the provided interval between pushes Aliaksandr Valialkin 2022-07-21 18:18:47 +03:00
  • 2767350561
    Add function to list all metric names from default set () sequix 2022-07-21 23:14:01 +08:00
  • 6cf96d45a0
    add functionality for periodic pushing metrics to remote storage via InitPush* Aliaksandr Valialkin 2022-07-20 16:53:12 +03:00
  • 7fa54d40f0
    README.md: rename "time series" to more clear "metrics" in the example Aliaksandr Valialkin 2022-07-20 14:56:10 +03:00
  • 96a67ce905
    README.md: add a link to Prometheus metric naming convention Aliaksandr Valialkin 2022-07-20 12:50:27 +03:00
  • f05b7d77a2
    go fmt Aliaksandr Valialkin 2021-11-01 14:53:23 +02:00
  • 0ee99fd214
    set.go: fix data race in Set.ListMetricNames when accessing Set.m map Aliaksandr Valialkin 2021-11-01 14:51:25 +02:00
  • 2ec4485cad vendor: update github.com/valyala/histogram from v1.1.2 to v1.2.0 in order to fix https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1612 Aliaksandr Valialkin 2021-09-15 09:20:11 +03:00
  • 1aa57265d4
    allow dot in metric name () Vasiliy Tolstov 2021-07-07 15:36:08 +03:00
  • bfa3fbc1a7 Document go_memstats_* metrics Aliaksandr Valialkin 2021-03-22 14:36:33 +02:00
  • 264e71c98a document exported process_* metrics Aliaksandr Valialkin 2021-03-18 18:49:19 +02:00
  • 096d705076 cleanup after 5a49bb8e88e070e43cbffaa68776259f11f6c053 Aliaksandr Valialkin 2021-03-17 23:17:01 +02:00
  • 53fe52ac0e Revert "export process_resident_memory_anonymous_bytes and process_resident_memory_pagecache_bytes metrics" Aliaksandr Valialkin 2021-03-17 23:10:35 +02:00
  • 5a49bb8e88
    adds extended memory stats () Nikolay 2021-03-18 00:07:19 +03:00
  • 55d5027c97 export process_resident_memory_anonymous_bytes and process_resident_memory_pagecache_bytes metrics Aliaksandr Valialkin 2021-03-17 17:48:29 +02:00
  • 98a1807528 Inline Histogram.resetLocked function Aliaksandr Valialkin 2021-03-16 12:14:36 +02:00
  • cea3ca311b Reset histogram sum on Histogram.Reset call Aliaksandr Valialkin 2021-03-16 12:13:43 +02:00
  • 57c9db1bc3 properly handle Histogram.Update(1e-9) Aliaksandr Valialkin 2021-03-01 16:46:59 +02:00
  • 16e4558792 Move bucket index calculations to the place where they are used Aliaksandr Valialkin 2021-02-28 17:39:11 +02:00
  • 5523b934ae add process_io_* metrics read from /proc/self/io` Aliaksandr Valialkin 2021-02-21 22:45:08 +02:00
  • b862701a8d
    fix example link () Harmen 2021-02-17 00:17:17 +01:00
  • e7f78fa63c Switch from log-linear histograms to log-based histograms Aliaksandr Valialkin 2021-02-15 14:15:01 +02:00
  • 43691b65a0 Read /proc/* file contents with ioutil.ReadFile() instead of opening it with os.Open() and scanning with bufio.Scanner Aliaksandr Valialkin 2021-02-08 14:23:37 +02:00
  • c070763356 follow-up for 2a12f948a97173ec8bf4c900e6725712021ef737 Aliaksandr Valialkin 2021-02-04 16:28:55 +02:00
  • 2a12f948a9
    adds file descriptors metrics, () Nikolay 2021-02-04 17:10:10 +03:00
  • be819551e3
    summary: fix Unregister behaviour for summary metric type () Roman Khavronenko 2020-08-07 10:59:44 +01:00
  • dd0c59c0d6
    Remove timeseries with quantile labels when Unregister is called for summary () Roman Khavronenko 2020-07-28 19:58:28 +01:00
  • 6a144d3619
    Add function to unregister metrics from default set () Roman Khavronenko 2020-07-27 20:05:14 +01:00
  • 5edf5eaace vendor: update github.com/valyala/histogram from v1.1.1 to v1.1.2 Aliaksandr Valialkin 2020-07-20 16:54:34 +03:00
  • 7ec95de8e8 vendor: update github.com/valyala/histogram from v1.0.1 to v1.1.1 Aliaksandr Valialkin 2020-07-20 16:50:56 +03:00
  • fd1ac75aa0 gauge.go: mention FloatCounter in Gauge docs Aliaksandr Valialkin 2020-07-05 17:49:49 +03:00
  • d81dd5ec9c Increase value precision in histograms from 5e-3 to 1e-12 Aliaksandr Valialkin 2020-05-20 02:49:49 +03:00
  • f6ff0f32a2 fix data race when accessing h.sum during histogram marshaling Aliaksandr Valialkin 2020-03-13 12:36:02 +02:00
  • 93f7956e2a
    bump version of codecov-action to v1.0.6 Artem Navoiev 2020-03-05 23:26:04 +02:00