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

Can metric name start with numbers? #230

Open
chenlujjj opened this issue Nov 27, 2024 · 4 comments
Open

Can metric name start with numbers? #230

chenlujjj opened this issue Nov 27, 2024 · 4 comments
Labels
question Further information is requested

Comments

@chenlujjj
Copy link
Contributor

chenlujjj commented Nov 27, 2024

Seems it's not allowed when querying in Grafana:
image

But according to the doc:

Metric names and label names may contain any unicode letter
It should be allowed.

@hagen1778
Copy link
Contributor

@chenlujjj you have to query it as {__name__="3ds.metric.count"}. Otherwise, the parser assumes you're entering a time interval or a number.

@hagen1778 hagen1778 added the question Further information is requested label Dec 1, 2024
@hagen1778
Copy link
Contributor

Related to VictoriaMetrics/VictoriaMetrics#7703

@chenlujjj
Copy link
Contributor Author

Got it, thanks @hagen1778

@possibull
Copy link

possibull commented Dec 28, 2024

Reviewing the MetricsQL code I would think in the case of numbers you could use the escape character \ before the number Ex: \3ds.metrics.count

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants