Skip to content

Commit 64bd72a

Browse files
authored
Merge branch 'master' into szuro-patch-1
2 parents 59ab3d1 + cee0123 commit 64bd72a

File tree

136 files changed

+46368
-7770
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+46368
-7770
lines changed

.drone/drone.jsonnet

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ local run(name, commands) = {
1616
};
1717

1818
[
19-
pipeline('build', [
20-
run('lint-fmt', [
21-
'make install-ci-deps',
22-
'make lint-fmt',
23-
'make lint-mixins',
24-
]),
25-
]),
19+
pipeline(
20+
'build', [
21+
run('lint-fmt', [
22+
'make install-ci-deps',
23+
'make lint-fmt',
24+
'make lint-mixins',
25+
]),
26+
run('tests', [
27+
'make install-ci-deps',
28+
'make tests',
29+
]),
30+
]
31+
),
2632
]

.drone/drone.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ steps:
88
- make lint-mixins
99
image: golang:1.18
1010
name: lint-fmt
11+
- commands:
12+
- make install-ci-deps
13+
- make tests
14+
image: golang:1.18
15+
name: tests
1116
trigger:
1217
event:
1318
include:
1419
- pull_request
1520
---
1621
kind: signature
17-
hmac: 78a1dae3b7fa280bb32281b3ddbdbc7d1a9a7ab54681a00ed536876e2bdca55d
22+
hmac: 569cd1940689a70b907683e347d832a4a2809c1dbf23035ab036acf88b72a57a
1823

1924
...

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ lint-mixins:
3939
done; \
4040
exit $$RESULT
4141

42+
tests:
43+
pushd . && cd ./common-lib && make vendor && make tests
44+
4245
drone:
4346
drone jsonnet --stream --source .drone/drone.jsonnet --target .drone/drone.yml --format yaml
4447
drone lint .drone/drone.yml

apache-cassandra-mixin/.lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ exclusions:
1717
- panel: "Keyspaces count"
1818
- panel: "Repair jobs started"
1919
- panel: "Repair jobs completed"
20+
panel-datasource-rule:
21+
reason: "Loki datasource variable is being named as loki_datasource now while linter expects 'datasource'"
2022
template-datasource-rule:
2123
reason: "Based on new convention we are using variable names prometheus_datasource and loki_datasource where as linter expects 'datasource'"
2224
template-instance-rule:

apache-cassandra-mixin/alerts/alerts.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
{
8080
alert: 'HintsStoredOnNode',
8181
expr: |||
82-
cassandra_storage_totalhints_count > %(alertsWarningHintsStored1m)s
82+
increase(cassandra_storage_totalhints_count[5m]) > %(alertsWarningHintsStored1m)s
8383
||| % $._config,
8484
'for': '1m',
8585
labels: {
@@ -115,7 +115,7 @@
115115
{
116116
alert: 'HighCpuUsage',
117117
expr: |||
118-
jvm_process_cpu_load * 100 > %(alertsCriticalHighCpuUsage5m)s
118+
jvm_process_cpu_load{job=~"integrations/apache-cassandra"} * 100 > %(alertsCriticalHighCpuUsage5m)s
119119
||| % $._config,
120120
'for': '5m',
121121
labels: {
@@ -133,7 +133,7 @@
133133
{
134134
alert: 'HighMemoryUsage',
135135
expr: |||
136-
sum(jvm_memory_usage_used_bytes{area="Heap"}) / sum(jvm_physical_memory_size) * 100 > %(alertsCriticalHighMemoryUsage5m)s
136+
sum(jvm_memory_usage_used_bytes{job=~"integrations/apache-cassandra", area="Heap"}) / sum(jvm_physical_memory_size{job=~"integrations/apache-cassandra"}) * 100 > %(alertsCriticalHighMemoryUsage5m)s
137137
||| % $._config,
138138
'for': '5m',
139139
labels: {

apache-couchdb-mixin/config.libsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
_config+:: {
3+
enableMultiCluster: false,
4+
couchDBSelector: if self.enableMultiCluster then 'job=~"$job", cluster=~"$cluster"' else 'job=~"$job"',
5+
multiClusterSelector: 'job=~"$job"',
6+
37
dashboardTags: ['apache-couchdb-mixin'],
48
dashboardPeriod: 'now-1h',
59
dashboardTimezone: 'default',

0 commit comments

Comments
 (0)