mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/protoparser/prometheus: add a test for cassandra-exporter
Thanks to Seva
This commit is contained in:
parent
cb8c6908dc
commit
865610a7c8
1 changed files with 14 additions and 0 deletions
|
@ -180,6 +180,20 @@ func TestRowsUnmarshalSuccess(t *testing.T) {
|
|||
Timestamp: 789,
|
||||
}},
|
||||
})
|
||||
f(`# _ _
|
||||
# ___ __ _ ___ ___ __ _ _ __ __| |_ __ __ _ _____ ___ __ ___ _ __| |_ ___ _ __
|
||||
`+"# / __/ _` / __/ __|/ _` | '_ \\ / _` | '__/ _` |_____ / _ \\ \\/ / '_ \\ / _ \\| '__| __/ _ \\ '__|\n"+`
|
||||
# | (_| (_| \__ \__ \ (_| | | | | (_| | | | (_| |_____| __/> <| |_) | (_) | | | || __/ |
|
||||
# \___\__,_|___/___/\__,_|_| |_|\__,_|_| \__,_| \___/_/\_\ .__/ \___/|_| \__\___|_|
|
||||
# |_|
|
||||
#
|
||||
# TYPE cassandra_token_ownership_ratio gauge
|
||||
cassandra_token_ownership_ratio 78.9`, &Rows{
|
||||
Rows: []Row{{
|
||||
Metric: "cassandra_token_ownership_ratio",
|
||||
Value: 78.9,
|
||||
}},
|
||||
})
|
||||
|
||||
// Timestamp bigger than 1<<31
|
||||
f("aaa 1123 429496729600", &Rows{
|
||||
|
|
Loading…
Reference in a new issue