Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Tag api endpoints #750

Merged
merged 43 commits into from
Nov 1, 2017
Merged

Tag api endpoints #750

merged 43 commits into from
Nov 1, 2017

Conversation

replay
Copy link
Contributor

@replay replay commented Oct 17, 2017

Add the API endpoints for:

/tags (with optional filter)
/tags/<tag> (with optional filter)
/tags/findSeries (with list of expr)

The goal is that the API is exactly the same like documented in the graphite docs: http://graphite.readthedocs.io/en/latest/tags.html#querying
The pretty parameter has been ignored for now.

I think that once we change the main index to use the numeric idx.MetricID type instead of strings then the performance fo calls like /tags/<tag> might improve, because they rely heavily on ID lookups in the main index.

@replay replay changed the title [WIP] Tag api endpoints [Tag api endpoints Oct 18, 2017
@replay replay changed the title [Tag api endpoints Tag api endpoints Oct 18, 2017
@replay replay force-pushed the tag_api_endpoints branch 8 times, most recently from ef0b363 to c1bfb2c Compare October 18, 2017 21:02
@replay
Copy link
Contributor Author

replay commented Oct 24, 2017

@Dieterbe i think all the comments have either been replied to or the requests/suggestions have been added

type IndexTagDetails struct {
OrgId int `json:"orgId" binding:"Required"`
Filter string `json:"filter"`
Tag string `json:"tag"`
Copy link
Contributor

Choose a reason for hiding this comment

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

are empty tag keys legal? otherwise add binding:"Required" here

Copy link
Contributor Author

@replay replay Oct 24, 2017

Choose a reason for hiding this comment

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

you're right, that should be required f3bd367

@replay
Copy link
Contributor Author

replay commented Oct 31, 2017

@Dieterbe before merging i'd like to run that by you to make sure i haven't overseen some edge case in the expression parsing:
01a8c7e

@replay replay force-pushed the tag_api_endpoints branch 3 times, most recently from 207a77f to d4dfc37 Compare October 31, 2017 17:36
@Dieterbe
Copy link
Contributor

Dieterbe commented Nov 1, 2017

in case you missed it: #750 (comment)

@Dieterbe Dieterbe merged commit 574da87 into master Nov 1, 2017
@Dieterbe Dieterbe deleted the tag_api_endpoints branch September 18, 2018 09:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants