Goutham Veeramachaneni
11ee713ced
Handle common escape characters properly. ( #2995 )
...
Fixes #2974
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Julius Volz
c6f41ce391
Allow metric and label names to begin with underscores ( #2961 )
...
While this is not recommended, it is allowed in our data model
(https://prometheus.io/docs/concepts/data_model/ ).
Fixes https://github.com/prometheus/prometheus/issues/2959
7 years ago
Goutham Veeramachaneni
b7eddbcd98
textparse: Add fuzzing and fix bug caught
...
See https://github.com/cznic/golex/issues/11 for info on the bug
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Goutham Veeramachaneni
0e78b7e7c8
parser: support spaces everywhere
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Brian Brazil
dd07f693c8
Single quotes are not valid label value delimiters.
8 years ago
Brian Brazil
a6ca391e6e
Reject scrapes with invalid utf-8 label values.
8 years ago
Goutham Veeramachaneni
592cb00c2f
Remove version from RuleGroups
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
8 years ago
Goutham Veeramachaneni
6b70a4d850
Incorporate PR feedback
...
* Move fingerprint to Hash()
* Move away from tsdb.MultiError
* 0777 -> 0666 for files
* checkOverflow of extra fields
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
8 years ago
Goutham Veeramachaneni
dc69645e92
Move back to go-yaml
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
8 years ago
Goutham Veeramachaneni
e893c89333
Validate labels and annotations
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
8 years ago
Goutham Veeramachaneni
c884881f7d
Add License Header
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
8 years ago
Goutham Veeramachaneni
2d1e92513b
Add tests
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
8 years ago
Goutham Veeramachaneni
a48a018368
Make sure groups are unique in a single file
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
8 years ago
Goutham Veeramachaneni
cea1e99f78
Add update-rules command to promtool
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
8 years ago
Goutham Veeramachaneni
e8f55669ea
Move rules to new format
...
Signed-off-by: Goutham Veeramachaneni <goutham@boomerangcommerce.com>
8 years ago
Fabian Reinartz
c843a0cd29
pkg/rulefmt: Add rule group parsing
8 years ago
Fabian Reinartz
bc7aff8cef
retrieval: extract scrape cache
8 years ago
Fabian Reinartz
a83014f53c
retrieval: fix memory leak and consumption for caches
8 years ago
Fabian Reinartz
bdc763f95f
pkg/textparse: allow null bytes in label values
8 years ago
Brian Brazil
9aa8f822c1
Fix typo
8 years ago
Fabian Reinartz
ea09299ca5
pkg/textparse: handle trailing labels comma ( #2752 )
8 years ago
Brian Brazil
73049ba79d
Make the choice of NaN values clearer.
...
Also switch stale nan value to one more suitable for expansion.
8 years ago
Brian Brazil
a5cf25743c
Move stalness check into a function
8 years ago
Brian Brazil
beaa7d5a43
Move consistent NaN logic into the parser.
8 years ago
Brian Brazil
76acf7b9b1
Ensure all the NaNs we ingest have the same bit pattern.
8 years ago
Fabian Reinartz
f7c5d96e84
pkg/textparse: parse metric names with ':'
8 years ago
Fabian Reinartz
377886b371
pkg/textparse: implement timestamp parsing
8 years ago
Brian Brazil
5c9a6ce747
Add license to files.
...
This should fix CI for dev-2.0.
8 years ago
Fabian Reinartz
d9fb57cde4
*: Simplify []byte to string unsafe conversion
8 years ago
Fabian Reinartz
d80a3de235
pkg/textparse: add documentation
8 years ago
Fabian Reinartz
db48726a6b
pkg/textparse: allocate single string per metric
8 years ago
Fabian Reinartz
c691895a0f
retrieval: cache series references, use pkg/textparse
...
With this change the scraping caches series references and only
allocates label sets if it has to retrieve a new reference.
pkg/textparse is used to do the conditional parsing and reduce
allocations from 900B/sample to 0 in the general case.
8 years ago
Fabian Reinartz
fb3ab9bdb7
pkg/textparse: add more benchmarking, align lex defs
8 years ago
Fabian Reinartz
e44d80314d
pkg/textparse: add tests and method to retrieve full labels
8 years ago
Fabian Reinartz
091a7f2395
pkg/textparse: add initial text parser
8 years ago
Fabian Reinartz
e94b0899ee
rules: fix tests, remove model types
8 years ago
Fabian Reinartz
8b4e4a9d2b
notifier: fully use labels.Labels
8 years ago
Fabian Reinartz
f8fc1f5bb2
*: migrate ingestion to new batch Appender
8 years ago
Fabian Reinartz
86cb0f30fd
pkg/relabel: add relabel pkg using new labels
8 years ago
Fabian Reinartz
0987a72ec9
pkg/timestamp: create timestamp package
8 years ago
Fabian Reinartz
71fe0c58a8
promql: misc fixes
8 years ago
Fabian Reinartz
fecf9532b9
*: fix misc compile errors
8 years ago
Fabian Reinartz
0492ddbd4d
*: fully decouple tsdb, add new storage interfaces
8 years ago
Fabian Reinartz
5817cb5bde
*: migrate from model.* to promql.* types
8 years ago
Fabian Reinartz
9ea10d5265
promql: use labels.Builder to modify labels
8 years ago
Fabian Reinartz
c6cd998905
promql: use local labels, add conversion
8 years ago
Fabian Reinartz
0de6edbdfc
Move pkg/ to util/
10 years ago
Fabian Reinartz
dbc0d30e3e
Move string functionality to pkg/strutil
10 years ago
Fabian Reinartz
ccf51b132e
Move stats package to pkg/stats
10 years ago
Fabian Reinartz
dfaf31a1da
Move web/httputils to pkg/httputil and add DeadlineClient to it
10 years ago