Add URL to dashboard panel label
Some checks failed
Deploy Test / Run deploy test suite (pull_request) Failing after 0s
Lint Checks / Run linter (pull_request) Failing after 1s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Failing after 0s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Failing after 1s
Webapp Test / Run webapp test suite (pull_request) Failing after 0s
Smoke Test / Run basic test suite (pull_request) Failing after 0s

This commit is contained in:
Nabarun 2025-04-08 12:21:50 +05:30
parent 159402921d
commit 320517b6b0
3 changed files with 45 additions and 4 deletions

View File

@ -133,10 +133,13 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "probe_success{instance=~\"$target\"}",
"format": "time_series",
"instant": true,
"refId": "A"
}
],
"title": "$target",
"title": "$target ($url)",
"type": "row"
},
{
@ -1057,6 +1060,29 @@
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": false,
"text": "",
"value": ""
},
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"definition": "label_values(probe_success{instance=~\"$target\"}, url)",
"hide": 2,
"includeAll": false,
"multi": false,
"name": "url",
"options": [],
"query": "label_values(probe_success{instance=~\"$target\"}, url)",
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},

View File

@ -25,8 +25,10 @@ scrape_configs:
module: [http_2xx]
static_configs:
# Add URLs to be monitored below
- targets:
# - https://github.com
# - targets: ["https://github.com"]
# labels:
# alias: "GitHub"
# url: "https://github.com"
relabel_configs:
# Forward the original target URL as the 'target' parameter.
- source_labels: [__address__]
@ -36,6 +38,10 @@ scrape_configs:
- source_labels: [alias]
target_label: instance
action: replace
# Preserve the URL label
- source_labels: [url]
target_label: url
action: replace
# If no alias is set, fall back to the target URL.
- source_labels: [instance]
regex: ^$

View File

@ -47,30 +47,39 @@ laconic-so --stack monitoring deploy create --spec-file monitoring-testnet-spec.
- targets: ["https://wallet.laconic.com"]
labels:
alias: "Wallet App"
url: "https://wallet.laconic.com"
- targets: ["https://laconicd-sapo.laconic.com"]
labels:
alias: "Node (laconicd)"
alias: "Node laconicd"
url: "https://laconicd-sapo.laconic.com"
- targets: ["https://console-sapo.laconic.com"]
labels:
alias: "Console App"
url: "https://console-sapo.laconic.com"
- targets: ["https://fixturenet-eth.laconic.com"]
labels:
alias: "Fixturenet ETH"
url: "https://fixturenet-eth.laconic.com"
- targets: ["https://deploy.laconic.com"]
labels:
alias: "Deploy App"
url: "https://deploy.laconic.com"
- targets: ["https://deploy-backend.laconic.com/staging/version"]
labels:
alias: "Deploy Backend"
url: "https://deploy-backend.laconic.com/staging/version"
- targets: ["https://container-registry.apps.vaasl.io"]
labels:
alias: "Container Registry"
url: "https://container-registry.apps.vaasl.io"
- targets: ["https://webapp-deployer-api.apps.vaasl.io"]
labels:
alias: "Webapp Deployer API"
url: "https://webapp-deployer-api.apps.vaasl.io"
- targets: ["https://webapp-deployer-ui.apps.vaasl.io"]
labels:
alias: "Webapp Deployer UI"
url: "https://webapp-deployer-ui.apps.vaasl.io"
...
- job_name: laconicd
...