8000 Cut 2.0.0-beta.0 by fabxc · Pull Request #2937 · prometheus/prometheus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cut 2.0.0-beta.0 #2937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jul 12, 2017
Merged

Cut 2.0.0-beta.0 #2937

merged 20 commits into from
Jul 12, 2017

Conversation

fabxc
Copy link
Contributor
@fabxc fabxc commented Jul 12, 2017

mattbostock and others added 17 commits June 23, 2017 09:52
The changes [1][] to Marathon service discovery to support multiple
ports mean that Prometheus now attempts to scrape all ports belonging to
a Marathon service.

You can use port definition or port mapping labels to filter out which
ports to scrape but that requires service owners to update their
Marathon configuration.

To allow for a smoother migration path, add a
`__meta_marathon_port_index` label, whose value is set to the port's
sequential index integer. For example, PORT0 has the value `0`, PORT1
has the value `1`, and so on.

This allows you to support scraping both the first available port (the
previous behaviour) in addition to ports with a `metrics` label.

For example, here's the relabel configuration we might use with
this patch:

    - action: keep
      source_labels: ['__meta_marathon_port_definition_label_metrics', '__meta_marathon_port_mapping_label_metrics', '__meta_marathon_port_index']
      # Keep if port mapping or definition has a 'metrics' label with any
      # non-empty value, or if no 'metrics' port label exists but this is the
      # service's first available port
      regex: ([^;]+;;[^;]+|;[^;]+;[^;]+|;;0)

This assumes that the Marathon API returns the ports in sorted order
(matching PORT0, PORT1, etc), which it appears that it does.

[1]: #2506
Add a colorScheme parameter to PromConsole.Graph, to allow using custom colors in console graphs.
Change 'send' to 'sent'.
Remote queue manager: Fix typo
Fixes #2899

Signed-off-by: Goutham Veeramachaneni <goutham@boomerangcommerce.com>
Make sure rendering config produces valid config
Fixes #2715

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
Log the stopping of TargetManager in Info
Fixing the config/config_test, the discovery/file/file_test and the
promql/promql_test tests for Windows. For most of the tests, the fix involved
correct handling of path separators. In the case of the promql tests, the
issue was related to the removal of the temporal directories used by the
storage. The issue is that the RemoveAll() call returns an error when it
tries to remove a directory which is not empty, which seems to be true due to
some kind of process that is still running after closing the storage. To fix
it I added some retries to the remove of the temporal directories.
Adding tags file from Universal Ctags to .gitignore
Renaming the name of a file of the config tests, in order to properly
use the Go build tags feature.
Add _test.go suffix to promql/bench.go, split test.go in to two.
@brian-brazil
Copy link
Contributor

Looks like there's a vendoring issue.

@fabxc
Copy link
Contributor Author
fabxc commented Jul 12, 2017

Fixed

@brian-brazil
Copy link
Contributor

👍 once CI passes

@fabxc fabxc merged commit 2b5d915 into dev-2.0 Jul 12, 2017
@fabxc fabxc deleted the cutbeta branch July 12, 2017 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
0