Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
f031b477
Commit
f031b477
authored
5 years ago
by
S M Y
Committed by
rjshrjndrn
5 years ago
Browse files
Options
Download
Patches
Plain Diff
Removing docker metrics as not monitoring it
parent
d5781895
sunbird-monitoring-release-3.5.0_RC1
sunbird-monitoring-release-3.3.0_RC1
sunbird-monitoring-release-2.6.0
sunbird-monitoring-release-2.6.0_RC6
sunbird-monitoring-release-2.6.0_RC5
sunbird-monitoring-release-2.6.0_RC4
sunbird-monitoring-release-2.6.0_RC3
sunbird-monitoring-release-2.6.0_RC2
sunbird-monitoring-release-2.6.0_RC1
sunbird-monitoring-release-2.5.0_484f884
sunbird-monitoring-release-2.5.0
sunbird-monitoring-release-2.5.0_RC3
sunbird-monitoring-release-2.5.0_RC2
sunbird-monitoring-release-2.5.0_RC1
sunbird-monitoring-release-2.3.0_9009005
sunbird-monitoring-release-2.3.0
sunbird-monitoring-release-2.3.0_RC4
sunbird-monitoring-release-2.3.0_RC3
sunbird-monitoring-release-2.3.0_RC2
sunbird-monitoring-release-2.3.0_RC1
sunbird-monitoring-release-2.2.0_RC1
secor-lag
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/stack-monitor-stateful/templates/prometheus.yml
+10
-10
...ble/roles/stack-monitor-stateful/templates/prometheus.yml
with
10 additions
and
10 deletions
+10
-10
ansible/roles/stack-monitor-stateful/templates/prometheus.yml
+
10
−
10
View file @
f031b477
...
...
@@ -53,16 +53,16 @@ scrape_configs:
type
:
'
A'
port
:
9093
{
%
if enable_scraping_docker_metrics %
}
# This empty line ensures indentation is correct after ansible jinja2 template is materialized
-
job_name
:
'
docker'
static_configs
:
-
targets
:
[
"
{{
groups['swarm-manager']
|
map('regex_replace',
'^(.*)$',
'
\\
1:'
+
docker_metrics_port
)
|
list
|
join("
\"
,
\"")
}}
"
]
metric_relabel_configs:
-
source_labels:
[__name__]
regex:
'grpc_.*'
action:
drop
{%
endif
%}
#
{% if enable_scraping_docker_metrics %}
#
# This empty line ensures indentation is correct after ansible jinja2 template is materialized
#
- job_name: 'docker'
#
static_configs:
#
- targets: ["{{ groups['swarm-manager'] | map('regex_replace', '^(.*)$', '\\1:' + docker_metrics_port ) | list | join("\", \"") }}"]
#
metric_relabel_configs:
#
- source_labels: [__name__]
#
regex: 'grpc_.*'
#
action: drop
#
{% endif %}
-
job_name
:
'
elasticsearch-exporter'
static_configs
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets