Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
float
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
float
Commits
ba145dc3
Commit
ba145dc3
authored
3 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Add float_service label to health-check probes
parent
eff7b1a5
No related branches found
No related tags found
1 merge request
!234
Create health check probes for all monitoring targets
Pipeline
#27547
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/float-infra-prometheus/templates/prometheus.yml.j2
+1
-0
1 addition, 0 deletions
roles/float-infra-prometheus/templates/prometheus.yml.j2
roles/float-infra-prometheus/templates/rules/rules_base.conf.yml
+8
-6
8 additions, 6 deletions
...loat-infra-prometheus/templates/rules/rules_base.conf.yml
with
9 additions
and
6 deletions
roles/float-infra-prometheus/templates/prometheus.yml.j2
+
1
−
0
View file @
ba145dc3
...
...
@@ -135,6 +135,7 @@ scrape_configs:
probe: health
probeset: health
prober_float_service: prometheus
float_service: "{{ service_name }}"
{% endfor %}
{% endfor %}
...
...
This diff is collapsed.
Click to expand it.
roles/float-infra-prometheus/templates/rules/rules_base.conf.yml
+
8
−
6
View file @
ba145dc3
...
...
@@ -8,20 +8,22 @@ groups:
-
record
:
job:up:ratio
expr
:
job:up:sum / job:up:count
# Sum prober metrics over the probers (hosts), producing
# an aggregation by target.
# Sum prober metrics over the probers (hosts), producing an
# aggregation by target. The following rules use 'without' in
# order to preserve additional probe_success labels that might
# be present.
-
record
:
target:probe_success:count
expr
:
count(probe_success)
by (probe,probeset,zone,host,prober_float_service
)
expr
:
count(probe_success)
without (job,instance,prober_host
)
-
record
:
target:probe_success:sum
expr
:
sum(probe_success)
by (probe,probeset,zone,host,prober_float_service
)
expr
:
sum(probe_success)
without (job,instance,prober_host
)
-
record
:
target:probe_success:ratio
expr
:
target:probe_success:sum / target:probe_success:count
# Sum prober metrics over targets, aggregating by probe.
-
record
:
probe:probe_success:count
expr
:
count(probe_success)
by (probe,probeset,prober_float_service,zone
)
expr
:
count(probe_success)
without (job,instance,prober_host,host
)
-
record
:
probe:probe_success:sum
expr
:
sum(probe_success)
by (probe,probeset,prober_float_service,zone
)
expr
:
sum(probe_success)
without (job,instance,prober_host,host
)
-
record
:
probe:probe_success:ratio
expr
:
probe:probe_success:sum / probe:probe_success:count
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment