Commit 9ea75e6b authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents b46d8405 72298390
...@@ -10,34 +10,31 @@ ...@@ -10,34 +10,31 @@
- install_gitlab_gem - install_gitlab_gem
- ./scripts/trigger-build omnibus - ./scripts/trigger-build omnibus
only: only:
- branches@gitlab-org/gitlab-ce refs:
- branches@gitlab-org/gitlab-ee - branches@gitlab-org/gitlab-ce
except: - branches@gitlab-org/gitlab-ee
- master
package-and-qa-manual: package-and-qa-manual:
extends: extends: .package-and-qa-base
- .package-and-qa-base
- .except-docs-qa
except: except:
refs: refs:
- master - master
needs: ["build-qa-image", "gitlab:assets:compile pull-cache"]
when: manual when: manual
needs: ["build-qa-image", "gitlab:assets:compile pull-cache"]
package-and-qa-manual:master: package-and-qa-manual:master:
extends: extends: .package-and-qa-base
- .package-and-qa-base
needs: ["build-qa-image", "gitlab:assets:compile"]
only: only:
refs: refs:
- master - master
when: manual when: manual
needs: ["build-qa-image", "gitlab:assets:compile"]
package-and-qa: package-and-qa:
extends: .package-and-qa-base extends: .package-and-qa-base
only:
refs:
- /(^qa[\/-].*|.*-qa$)/@gitlab-org/gitlab-ce
- /(^qa[\/-].*|.*-qa$)/@gitlab-org/gitlab-ee
needs: ["build-qa-image", "gitlab:assets:compile pull-cache"] needs: ["build-qa-image", "gitlab:assets:compile pull-cache"]
allow_failure: true allow_failure: true
only:
- /(^qa[\/-].*|.*-qa$)/@gitlab-org/gitlab-ce
- /(^qa[\/-].*|.*-qa$)/@gitlab-org/gitlab-ee
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
build-qa-image: build-qa-image:
extends: extends:
- .review-docker - .review-docker
- .except-docs-qa - .except-docs
only: only:
refs: refs:
- branches@gitlab-org/gitlab-ce - branches@gitlab-org/gitlab-ce
......
...@@ -44,3 +44,26 @@ class ImportCommonMetrics < ActiveRecord::Migration[4.2] ...@@ -44,3 +44,26 @@ class ImportCommonMetrics < ActiveRecord::Migration[4.2]
end end
end end
``` ```
## GitLab Prometheus metrics
GitLab provides [Prometheus metrics](../administration/monitoring/prometheus/gitlab_metrics.md)
to monitor itself.
### Adding a new metric
This section describes how to add new metrics for self-monitoring
([example](https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15440)).
1. Select the [type of metric](https://gitlab.com/gitlab-org/prometheus-client-mmap#metrics):
- `Gitlab::Metrics.counter`
- `Gitlab::Metrics.gauge`
- `Gitlab::Metrics.histogram`
- `Gitlab::Metrics.summary`
1. Select the appropriate name for your metric. Refer to the guidelines
for [Prometheus metric names](https://prometheus.io/docs/practices/naming/#metric-names).
1. Update the list of [GitLab Prometheus metrics](../administration/monitoring/prometheus/gitlab_metrics.md).
1. Trigger the relevant page/code that will record the new metric.
1. Check that the new metric appears at `/-/metrics`.
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11845) in GitLab 11.4. > [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11845) in GitLab 11.4.
CAUTION: **Warning:**
This an _alpha_ feature and is subject to change at any time without
prior notice.
Feature flags allow you to ship a project in different flavors by Feature flags allow you to ship a project in different flavors by
dynamically toggling certain functionality. dynamically toggling certain functionality.
......
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"check-dependencies": "yarn check --integrity", "check-dependencies": "scripts/frontend/check_dependencies.sh",
"clean": "rm -rf public/assets tmp/cache/*-loader", "clean": "rm -rf public/assets tmp/cache/*-loader",
"dev-server": "NODE_OPTIONS=\"--max-old-space-size=3584\" nodemon -w 'config/webpack.config.js' --exec 'webpack-dev-server --config config/webpack.config.js'", "dev-server": "NODE_OPTIONS=\"--max-old-space-size=3584\" nodemon -w 'config/webpack.config.js' --exec 'webpack-dev-server --config config/webpack.config.js'",
"eslint": "eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .", "eslint": "eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .",
......
#!/usr/bin/env bash
if ! yarn check --integrity 2>&1 > /dev/null
then
echo
echo " $(tput setaf 1)yarn check --integrity$(tput sgr0) failed!"
echo " Your dependencies probably don't match the yarn.lock file."
echo " Please run $(tput setaf 2)yarn install$(tput sgr0) and try again."
echo
exit 1
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment