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
d251238e
Commit
d251238e
authored
Oct 09, 2016
by
Dominik Schulz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove not-yet-released features and add docs for the gce_sd_config itself
parent
db87823b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
2 deletions
+38
-2
configuration.md
content/docs/operating/configuration.md
+38
-2
No files found.
content/docs/operating/configuration.md
View file @
d251238e
...
...
@@ -456,12 +456,48 @@ The following meta labels are available on targets during relabeling:
*
`__meta_gce_public_ip`
: the public IP address of the instance, if present
*
`__meta_gce_private_ip`
: the private IP address of the instance
*
`__meta_gce_instance_name`
: the name of the instance
*
`__meta_gce_instance_status`
: the lifecycle status of the instance
*
`__meta_gce_instance_tags`
: comma separated list of instance tags
*
`__meta_gce_instance_metadata_<metadatakey>`
: each metadata value of the instance
See below for the configuration options for GCE discovery:
```
# The information to access the GCE API.
# The GCP Project
project: <string>
# The Zone of the scrape targets. If you need multiple zones use multiple
# gce_sd_configs
zone: <string>
# Filter can be used optionally to filter the instance list by other criteria
[ filter: <string> ]
# Refresh interval to re-read the instance list
[ refresh_interval: <duration> | default = 60s ]
# The port to scrape metrics from. If using the public IP address, this must
# instead be specified in the relabeling rule.
[ port: <int> | default = 80 ]
# The tag separator is used to separate the tags on concatenation
[ tag_separator: <string> | default = , ]
```
Credentials are discovered by the Google Cloud SDK default client by looking
in the following places, prefering the first location found:
1.
a JSON file specified by GOOGLE_APPLICATION_CREDENTIALS
2.
a JSON file in a well known path, $HOME/.config/gcloud/application_default_credentials.json
3.
fetched from the GCE Metadata server
If prometheus is running within GCE the service account associated with the
instance it is running on should have at least read only permissions to the
compute resources. If running outside of GCE make sure to create an appropriate
service account and place the credential file in one of the expected locations.
### `<kubernetes_sd_config>`
CAUTION: Kubernetes SD is in beta: breaking changes to configuration are still
...
...
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