Skip to content
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

Prometheus: Disable suggestions at beginning of value #21302

Merged
merged 2 commits into from
Jan 3, 2020

Conversation

davkal
Copy link
Contributor

@davkal davkal commented Dec 31, 2019

  • fixed comparison operator regex
  • no longer suggest anything at beginning of label value

Fixes #20403

Copy link

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does what it says, but a bit a dubious about not triggering suggestions when the label value is empty. For example (the | is the cursor):

  • http_requests_total{namespace=~"|} shows suggestions
  • http_requests_total{namespace=~"|"} doesn't show suggestions, while I would expect it to do

- fixed comparison operator regex
- no longer suggest anything at beginning of label value
@davkal davkal force-pushed the davkal/fix-prom-label-start-suggestion branch from 6bde3d9 to 2076355 Compare January 3, 2020 10:47
@davkal davkal merged commit d63ad9a into master Jan 3, 2020
Observability (deprecated, use Observability Squad) automation moved this from Under review to Done Jan 3, 2020
@davkal davkal deleted the davkal/fix-prom-label-start-suggestion branch January 3, 2020 11:16
ryantxu added a commit that referenced this pull request Jan 4, 2020
* origin/master:
  NewsPanel: update default feed url (#21342)
  docs: fix influxdb templated dashboard link (#21336)
  Docs: Update Windows.md (#21333)
  Arrow: don't export arrow... breaking phantomjs e2e test (#21331)
  DataFrame: round trip metadata to arrow Table (#21277)
  Prometheus: user metrics metadata to inform query hints (#21304)
  Panel: disable edit/duplicate/delete entry for repeat panel (#21257)
  Prometheus: Disable suggestions at beginning of value (#21302)
  grafana/ui: Do not build in strict mode as grafana/ui depends on non-strict libs (#21319)
ryantxu added a commit that referenced this pull request Jan 6, 2020
* origin/master: (43 commits)
  Docs: Use https scheme for Grafana playground links (#21360)
  fix docs links (#21359)
  AddDatasourcePage: Refactoring & more Phantom plugins (#21261)
  Chore: Remove empty flot.pie file (#21356)
  Docs: Fix link (#21358)
  Docs: Fix InfluxDB templated dashboard link (#21343)
  Rendering: Fix panel PNG rendering when using sub url & serve_from_sub_path = true (#21306)
  NewsPanel: update default feed url (#21342)
  docs: fix influxdb templated dashboard link (#21336)
  Docs: Update Windows.md (#21333)
  Arrow: don't export arrow... breaking phantomjs e2e test (#21331)
  DataFrame: round trip metadata to arrow Table (#21277)
  Prometheus: user metrics metadata to inform query hints (#21304)
  Panel: disable edit/duplicate/delete entry for repeat panel (#21257)
  Prometheus: Disable suggestions at beginning of value (#21302)
  grafana/ui: Do not build in strict mode as grafana/ui depends on non-strict libs (#21319)
  Docs: Update security.md (#20981)
  @grafana/data: use timeZone parameter rather than isUtc (#21276)
  Units: support dynamic count and currency units (#21279)
  Docs: Added sudo and removed $ where inconsistent. (#21314)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Explore: Prometheus labels autocompletion conflicting with press enter to "Run query"
2 participants