Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
c5d8365c
Commit
c5d8365c
authored
Jan 09, 2015
by
Julius Volz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand gotchas-section in query basics doc a bit.
parent
1a3089c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
basics.md
content/docs/querying/basics.md
+20
-2
No files found.
content/docs/querying/basics.md
View file @
c5d8365c
...
...
@@ -119,6 +119,24 @@ in detail in the [expression language functions](/docs/querying/functions) page.
## Gotchas
TODO: explain staleness and inerpolation
### Time series staleness
TODO: explain avoiding slow queries
TODO: TODO: explain staleness
### Interpolation
TODO: TODO: explain interpolation
### Avoiding slow queries and overloads
If a query needs to operate on a very large amount of data, graphing it might
time out or overload the server or browser. Thus, when gradually constructing
queries over unknown data, always start building the query in the tabular view
of Prometheus's expression browser until the result set seems reasonable. Only
when you have filtered or aggregated your data sufficiently, switch to graph
mode. If the expression still takes too long to graph ad-hoc, pre-record it via
a
[
recording rule
](
/docs/operating/rules/#recording-rules
)
.
This is especially relevant for Prometheus's query language, where a bare
metric name selector like
`api_http_requests_total`
could expand to thousands
of time series with different labels.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment