Open ywwg opened 1 year ago
I think based on the schema we'd do a big JOIN, something like
SELECT Tag.tag FROM Tag JOIN SeriesTag ON SeriesTag.tag == Tag.id AND SeriesTag.Series == Series.id WHERE Series.path=="METRICNAME"
and then
SELECT Tag.tag, TagValue.value FROM TagValue JOIN SeriesTag ON SeriesTag.tag == Tag.id AND SeriesTag.TagValue == TagValue.id WHERE Tag.id IN "THE RESULTS FROM ABOVE"
ah, it'll be simpler than that, we don't need the tag values
hm, the db may just be for querying. the actual storage appears to be an alternative scheme: https://github.com/graphite-project/graphite-web/blob/master/webapp/graphite/tags/utils.py#L125-L134
(imported issue)
Right now the whisper converter only supports untagged metrics. We should add support for tagged metrics.
From the docs, the tags are stored in a separate database from the whisper files. So it looks like: