Commit Graph

  • fb82a6517d
    linux process metrics: implement self/io error check with init function Zakhar Bessarab 2023-01-11 22:26:00 +04:00
  • ed2c19c5e6
    linux process metrics: restore error handling for self/stat metrics Zakhar Bessarab 2023-01-11 22:21:50 +04:00
  • 2130ea2753
    linux process metrics: address review feedback Zakhar Bessarab 2023-01-11 18:16:21 +04:00
  • 3b6d2fec6c
    linux process metrics: add error handling for metrics from /proc/self/io Zakhar Bessarab 2023-01-11 16:44:37 +04:00
  • 0ed1820726 add grafana dashboard template json file for golang runtime metrics fuchun.zhang 2022-12-06 16:30:32 +08:00
  • 5cabd7b312 add new func InitPushWithFlags fuchun.zhang 2022-12-06 14:45:29 +08:00
  • c639157c6e add new func InitPushWithFlags fuchun.zhang 2022-12-06 14:33:28 +08:00
  • f76ac8902e add new func InitPushWithFlags fuchun.zhang 2022-12-06 14:28:11 +08:00
  • 89bfc60e87
    Merge pull request #1 from adjust/add-close-method Bubunyo Nyavor 2022-11-17 18:31:59 +03:00
  • b318f2d047 add documentation Bubunyo Nyavor 2022-11-17 18:22:58 +03:00
  • c0267f81bd Add metrics.Close and set.Close method Bubunyo Nyavor 2022-11-17 18:07:07 +03: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
  • 38713a9f7a add push metric aliheydarabadii 2022-08-14 12:02:02 +04:30
  • 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 (#29) 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
  • 73d8441120 Add function to list all metric names from default set sequix 2021-09-14 09:27:42 +08:00
  • b4975e8ed5 append quotes to label value Vasiliy Tolstov 2021-07-21 11:57:49 +03:00
  • 9b5019a423 fixup Vasiliy Tolstov 2021-07-18 01:50:10 +03:00
  • a3c2c5b0c6 fixes Vasiliy Tolstov 2021-07-17 20:41:09 +03:00
  • c9024f411d add BuildName helper func Vasiliy Tolstov 2021-07-17 15:34:14 +03:00
  • 1aa57265d4
    allow dot in metric name (#26) Vasiliy Tolstov 2021-07-07 15:36:08 +03:00
  • bc65ff4f0e allow dot in metric name Vasiliy Tolstov 2021-07-07 01:06:19 +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 (#21) Nikolay 2021-03-18 00:07:19 +03:00
  • 6958e34ccb
    fix conflict f41gh7 2021-03-17 22:06:28 +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
  • 3f8200f79a
    adds extended memory stats f41gh7 2021-03-10 22:30:51 +03: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 (#20) Harmen 2021-02-17 00:17:17 +01:00
  • 0a037a91d3
    fix example link Harmen 2021-02-15 15:52:13 +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, (#19) Nikolay 2021-02-04 17:10:10 +03:00
  • 4865915f70
    small fix f41gh7 2021-02-04 13:34:28 +03:00
  • 2047ac4d3c
    adds file descriptors metrics, for linux based systems, https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1037 f41gh7 2021-02-04 13:28:23 +03:00
  • 114bee2b6a add optional types to metrics Seth Bunce 2020-11-10 21:27:03 -08:00
  • be819551e3
    summary: fix Unregister behaviour for summary metric type (#16) Roman Khavronenko 2020-08-07 10:59:44 +01:00
  • 0d2a585067 summary: fix Unregister behaviour for summary metric type hagen1778 2020-08-01 18:55:01 +01:00
  • dd0c59c0d6
    Remove timeseries with quantile labels when Unregister is called for summary #14 (#15) Roman Khavronenko 2020-07-28 19:58:28 +01:00
  • fbd2a1dd8b Remove timeseries with quantile labels when Unregister is called for summary #14 hagen1778 2020-07-28 18:16:29 +01:00
  • 6a144d3619
    Add function to unregister metrics from default set #12 (#13) Roman Khavronenko 2020-07-27 20:05:14 +01:00
  • 657c117966 Add function to unregister metrics from default set #12 hagen1778 2020-07-26 10:26:13 +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
  • a494df3462 Properly unregister Summary metric in Set.UnregisterMetric Aliaksandr Valialkin 2020-02-26 20:37:47 +02:00
  • 900c892625
    Allow unregistration of metrics (#6) Roland Lammel 2020-02-26 18:52:38 +01:00
  • 6c0d4d736c Cleanup unregister metrics patch, add generic WriteProcessMetrics Roland Lammel 2020-02-26 18:26:53 +01:00
  • 0d2f9fc288 Provide metrics.WritePrometheusSet to write using a dedicated metric set Roland Lammel 2020-02-14 14:38:08 +01:00
  • f63b12aa0b Allow unregistration of metrics Roland Lammel 2020-02-14 14:01:10 +01:00
  • 0ee6a1fa32 Update url to MetricsQL in docs to Histogram Aliaksandr Valialkin 2020-02-10 23:05:09 +02:00
  • e6d6f46b5d Proposal: Add new type of counter: FloatCounter (#5) Ivan G 2020-01-23 13:48:00 +03:00
  • a871ded987 Fix PR review: * sync.RWMutex -> sync.Mutex * more idiomatic add/sub Ivan Goncharov 2020-01-23 10:42:28 +03:00
  • da88049781 Add new type of counter: FloatCounter * sometimes you need to count things with more precision than uint64 * FloatCounter also usefull if you need setable Gauge w/o callback func Ivan Goncharov 2020-01-22 22:29:18 +03:00
  • 21c3ffd10e histogram.go: rename Extended PromQL to PromQL extensions to be more clear Aliaksandr Valialkin 2019-12-12 19:24:01 +02:00
  • fcb89496ec Prevent from possible deadlock in Set.WritePrometheus when Gague callback could call Set.mu.Lock Aliaksandr Valialkin 2019-12-02 22:26:56 +02:00
  • ddbf13fd17 histogram.go: add a link to https://github.com/VictoriaMetrics/VictoriaMetrics/wiki/ExtendedPromQL in Histogram docs Aliaksandr Valialkin 2019-11-27 14:06:17 +02:00
  • 4d9d3a095f Add examples for Histogram Aliaksandr Valialkin 2019-11-27 14:04:12 +02:00
  • 007e78a6c7 Add links to https://medium.com/@valyala/improving-histogram-usability-for-prometheus-and-grafana-bc7e5df0e350 from Histogram docs Aliaksandr Valialkin 2019-11-27 14:01:15 +02:00
  • 674ca26d5f Reduced the number of steps per decimal exponent from 5 to 2, since 5 is too big for the majority of cases Aliaksandr Valialkin 2019-11-25 15:19:31 +02:00
  • 3306660b50 Reduce histogram buckets from 0.1 to 0.02 of the size for the current decimal exponent Aliaksandr Valialkin 2019-11-25 13:03:26 +02:00
  • eb780f4caa Buffer all the output in memory before writing it to the provided io.Writer in WritePrometheus Aliaksandr Valialkin 2019-11-25 13:01:23 +02:00
  • 839018719c Add Histogram.VisitNonZeroBuckets Aliaksandr Valialkin 2019-11-23 23:58:18 +02:00
  • eab0e32ed4 Added docs about Histogram Aliaksandr Valialkin 2019-11-23 13:04:24 +02:00
  • 83922c2aa8 Modify _vmbucket suffix to _bucket suffix for histogram buckets in order to be compatible with Prometheus histograms Aliaksandr Valialkin 2019-11-23 11:47:06 +02:00
  • 577f3b5e99 Remove rounding error when marshaling histogram ranges Aliaksandr Valialkin 2019-11-23 00:46:51 +02:00
  • 984b12dbb5 Add easy-to-use histograms Aliaksandr Valialkin 2019-11-23 00:16:17 +02:00
  • 42ee365914 all: fix typo lables -> labels (#3) Aleksandr Razumov 2019-09-30 00:06:17 +03:00
  • cf4ddb80a2
    all: fix typo lables -> labels Aleksandr Razumov 2019-09-29 15:47:14 +03:00
  • cc02f82ddd [ci] update actions workflow. Run main flow when PR comes from fork Artem Navoiev 2019-09-11 09:35:50 +03:00
  • a063987ba4 [ci] use github actions Artem Navoiev 2019-09-08 14:50:30 +03:00