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

[wip] Meta Tag Index #960

Closed
wants to merge 1 commit into from
Closed

[wip] Meta Tag Index #960

wants to merge 1 commit into from

Conversation

replay
Copy link
Contributor

@replay replay commented Jul 11, 2018

that's just a first prototype after some internal discussions. related to #660

@replay replay changed the title [wip] (no need to review) add datastructure for extrinsic tags [wip] (no need to review yet) add datastructure for extrinsic tags Jul 11, 2018
@replay replay changed the title [wip] (no need to review yet) add datastructure for extrinsic tags [wip] Meta Tag Index Jan 22, 2019
NOT_MATCH // !=~
PREFIX // ^= exact prefix, not regex. non-standard, required for auto complete of tag values
PREFIX_TAG // __tag^= exact prefix with tag. non-standard, required for auto complete of tag keys
OP_NONE match = iota
Copy link
Contributor

Choose a reason for hiding this comment

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

please:

  1. follow Go naming conventions. see https://stackoverflow.com/a/22688926/227168
  2. do renames and cleanups separate from your logical changes. ideally as a commit preceeding the rest, or even as a separate PR (if you order your commits properly, it's always easy to make separate branches and PR's)

@replay replay force-pushed the extrinsic_tags branch 22 times, most recently from ed0af91 to 10f8ae4 Compare February 15, 2019 20:06
Copy link

@codelingo codelingo bot left a comment

Choose a reason for hiding this comment

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

0 issues found before hitting an error.
Error: Sorry, an error occurred while processing your request. Please try again.

@replay replay force-pushed the extrinsic_tags branch 3 times, most recently from c1911b9 to 70c3a4f Compare March 22, 2019 08:44
@replay replay force-pushed the extrinsic_tags branch 2 times, most recently from 5087a2f to bce27be Compare April 1, 2019 10:10
Copy link

@codelingo codelingo bot left a comment

Choose a reason for hiding this comment

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

0 issues found before hitting an error.
Error: Sorry, an error occurred while processing your request. Please try again.

@replay replay force-pushed the extrinsic_tags branch 6 times, most recently from 19c75fb to d715dfd Compare April 3, 2019 12:42
@@ -300,7 +300,7 @@ func parseDuration(s string) (time.Duration, error) {
func SeriesToSeriesSet(out []models.Series) (*models.PrometheusSeriesSet, error) {
series := []storage.Series{}
for _, metric := range out {
series = append(series, models.NewPrometheusSeries(buildTagSet(metric.Target), dataPointsToPrometheusSamplePairs(metric.Datapoints)))
series = append(series, models.NewPrometheusSeries(metric.Tags, dataPointsToPrometheusSamplePairs(metric.Datapoints)))
Copy link
Member

Choose a reason for hiding this comment

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

prometheus expects a "name" tag. But metric.Tags uses a "name" label.

@replay replay force-pushed the extrinsic_tags branch 7 times, most recently from d77aa4b to 34c7312 Compare April 5, 2019 08:21
@replay replay force-pushed the extrinsic_tags branch 2 times, most recently from 8bac270 to d572c16 Compare May 4, 2019 21:03
@replay replay self-assigned this May 27, 2019
@replay
Copy link
Contributor Author

replay commented Jun 10, 2019

Closing this because I'm submitting it piece-by-piece instead of creating one gigantic PR, as described here: #660 (comment)

@replay replay closed this Jun 10, 2019
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