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

Updated stream json objects to be more parse friendly #1010

Merged
merged 14 commits into from
Sep 13, 2019

Conversation

joe-elliott
Copy link
Member

@joe-elliott joe-elliott commented Sep 11, 2019

What this PR does / why we need it:

  • Updated the "streams" type returned from the query endpoints to reflect requests in More browser / parser friendly return format for timestamps  #273
  • Added testing for the custom Marshal methods that make this possible
  • Pathed /loki/v1/api/push to the push handler.
  • Cleaned up documentation to reflect changes and removed deprecated endpoints.
  • Set GOGC=20 on test to avoid OOM in circleci

Which issue(s) this PR fixes:
Fixes #273

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM we might to change promtail push path.

@joe-elliott
Copy link
Member Author

LGTM we might to change promtail push path.

Doing a quick search fo the codebase for the old path: /api/prom/push suggests we should do this as a separate PR I think. It will be a nontrivial amount of changes/testing.

@cyriltovena cyriltovena merged commit 6185d54 into grafana:master Sep 13, 2019
slim-bean added a commit that referenced this pull request Sep 13, 2019
slim-bean added a commit that referenced this pull request Sep 13, 2019
rfratto added a commit to rfratto/loki that referenced this pull request Sep 23, 2019
/loki/api/v1/push was added in grafana#1010 but was temporarily reverted. grafana#1022
reintroduced changes from grafana#1010 but inadvertently did not reintroduce
the new push endpoint.
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.

More browser / parser friendly return format for timestamps
2 participants