Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
fix(custom): add missing custom themes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Mar 15, 2024
1 parent e7afbd8 commit 56757d9
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{
"description": "bjw-s app-template",
"fileMatch": [
"bjw-s.io/apptemplate.json"
"custom/bjw-s-apptemplate.json"
],
"matchStrings": [
"https://raw\\.githubusercontent\\.com/(?<depName>\\S+)/common-(?<currentValue>\\d+\\.\\d+\\.\\d+)"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name: "Renovate"
default: "debug"
required: false
schedule:
- cron: "0 0 * * *"
- cron: "0 * * * *"
push:
branches:
- master
Expand Down
69 changes: 69 additions & 0 deletions custom/alertmanager-group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/prometheus.rules.json",
"additionalProperties": false,
"description": "alertmanager rules list file",
"definitions": {
"duration": {
"type": ["string", "null"],
"pattern": "^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$",
"minLength": 1
},
"labels": {
"type": ["object", "null"],
"patternProperties": {
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"type": ["object", "null"],
"patternProperties": {
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
"type": "string"
}
},
"additionalProperties": false
}
},
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z0-9-]+\\.rules$"
},
"rules": {
"type": ["array"],
"items": {
"type": "object",
"properties": {
"alert": {
"description": "The name of the alert. Must be a valid metric name.",
"type": "string"
},
"expr": {
"description": "The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts.",
"type": "string"
},
"for": {
"$ref": "#/definitions/duration",
"description": "Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending."
},
"keep_firing_for": {
"$ref": "#/definitions/duration",
"description": "How long an alert will continue firing after the condition that triggered it has cleared."
},
"labels": {
"$ref": "#/definitions/labels",
"description": "Labels to add or overwrite for each alert."
},
"annotations": {
"$ref": "#/definitions/annotations",
"description": "Annotations to add to each alert."
}
}
}
}
}
}
File renamed without changes.

0 comments on commit 56757d9

Please sign in to comment.