Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
19d3a7ce
Commit
19d3a7ce
authored
Sep 02, 2015
by
Robert Jacob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for Marathon SD.
parent
8d3c5312
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
configuration.md
content/docs/operating/configuration.md
+36
-0
No files found.
content/docs/operating/configuration.md
View file @
19d3a7ce
...
...
@@ -337,6 +337,42 @@ server: <host>
[ retry_interval: <duration> | default = 1s ]
```
### Marathon SD configurations `<marathon_sd_configs>`
CAUTION: Marathon SD is in beta: breaking changes to configuration are still
likely in future releases.
Marathon SD configurations allow retrieving scrape targets using the
[
Marathon
](
https://mesosphere.github.io/marathon/
)
REST API. Prometheus
will periodically check the REST endpoint for currently running tasks and
create a target group for every app that has at least one healthy task.
The following meta labels are available on targets during relabeling:
*
`__meta_marathon_app`
: the name of the app (with slashes replaced by dashes)
*
`__meta_marathon_image`
: the name of the Docker image used (if available)
*
`__meta_marathon_task`
: the ID of the Mesos task
*
`__meta_marathon_app_label_<labelname>`
: any Marathon labels attached to the app
See below for the configuration options for Marathon discovery:
```
# List of URLs to be used to contact Marathon servers.
# You need to provide at least one server URL, but should provide URLs for
# all masters you have running.
servers:
- <string>
# Polling interval
[ refresh_interval: <duration> | default = 30s ]
```
By default every app listed in Marathon will be scraped by Prometheus. If not all
of your services provide Prometheus metrics, you can use a Marathon label and
Prometheus relabeling to control which instances will actually be scraped. Also
by default all apps will show up as a single job in Prometheus (the one specified
in the configuration file), which can also be changed using relabeling.
### Zookeeper Serverset SD configurations `<serverset_sd_config>`
Serverset SD configurations allow retrieving scrape targets from
[
Serversets
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment