Skip to content
代码片段 群组 项目
未验证 提交 6187770a 编辑于 作者: Fred de Gier's avatar Fred de Gier 提交者: GitLab
浏览文件

Merge branch 'tchu-prom-gauge-metric-and-sidekiq-warning-to-docs' into 'master'

Add warning for gauge metrics on sidekiq

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/184324



Merged-by: default avatarFred de Gier <fdegier@gitlab.com>
Approved-by: default avatarIgor <iwiedler@gitlab.com>
Approved-by: default avatarFred de Gier <fdegier@gitlab.com>
Co-authored-by: default avatarTerri Chu <tchu@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -37,8 +37,19 @@ generate them from a cron-based Sidekiq job: ...@@ -37,8 +37,19 @@ generate them from a cron-based Sidekiq job:
- For Geo related metrics, check `Geo::MetricsUpdateService`. - For Geo related metrics, check `Geo::MetricsUpdateService`.
- For other "global" / instance-wide metrics, check: `Metrics::GlobalMetricsUpdateService`. - For other "global" / instance-wide metrics, check: `Metrics::GlobalMetricsUpdateService`.
When exporting data from Sidekiq in an installation with more than one Sidekiq instance, {{< alert type="warning" >}}
you are not guaranteed that the same exporter will always be queried.
You can read more and understand the caveats in [issue 406583](https://gitlab.com/gitlab-org/gitlab/-/issues/406583), When exporting metrics from Sidekiq in a multi-instance deployment:
- The same exporter is not guaranteed to be queried consistently.
- This is especially problematic for gauge metrics, as each Sidekiq worker will continue reporting the last recorded value
until that specific worker runs the metric collection code again.
- This can lead to inconsistent or stale metrics data across your monitoring system.
For more reliable metrics collection, consider creating the exporter as a custom exporter
in [`gitlab-exporter`](https://gitlab.com/gitlab-org/ruby/gems/gitlab-exporter/)
{{< /alert >}}
For more details, see [issue 406583](https://gitlab.com/gitlab-org/gitlab/-/issues/406583),
where we also discuss a possible solution using a push-gateway. where we also discuss a possible solution using a push-gateway.
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册