forked from cerc-io/stack-orchestrator
Use alias for blackbox targets in dashboard
This commit is contained in:
parent
fb0138e975
commit
159402921d
@ -1,7 +1,7 @@
|
|||||||
modules:
|
modules:
|
||||||
http_2xx:
|
http_2xx:
|
||||||
prober: http
|
prober: http
|
||||||
timeout: 5s
|
timeout: 15s
|
||||||
http:
|
http:
|
||||||
valid_status_codes: [] #default to 2xx
|
valid_status_codes: [] #default to 2xx
|
||||||
method: GET
|
method: GET
|
||||||
|
@ -136,7 +136,7 @@
|
|||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "$target status",
|
"title": "$target",
|
||||||
"type": "row"
|
"type": "row"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -8,6 +8,7 @@ policies:
|
|||||||
group_by:
|
group_by:
|
||||||
- grafana_folder
|
- grafana_folder
|
||||||
- alertname
|
- alertname
|
||||||
|
- instance
|
||||||
routes:
|
routes:
|
||||||
- receiver: SlackNotifier
|
- receiver: SlackNotifier
|
||||||
object_matchers:
|
object_matchers:
|
||||||
|
@ -28,17 +28,25 @@ scrape_configs:
|
|||||||
- targets:
|
- targets:
|
||||||
# - https://github.com
|
# - https://github.com
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
|
# Forward the original target URL as the 'target' parameter.
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
regex: (.*)(:80)?
|
regex: (.*)(:80)?
|
||||||
target_label: __param_target
|
target_label: __param_target
|
||||||
- source_labels: [__param_target]
|
# Use the custom alias if defined for the 'instance' label.
|
||||||
regex: (.*)
|
- source_labels: [alias]
|
||||||
target_label: instance
|
target_label: instance
|
||||||
replacement: ${1}
|
action: replace
|
||||||
- source_labels: []
|
# If no alias is set, fall back to the target URL.
|
||||||
regex: .*
|
- source_labels: [instance]
|
||||||
target_label: __address__
|
regex: ^$
|
||||||
|
target_label: instance
|
||||||
|
replacement: ${__param_target}
|
||||||
|
# Finally, tell Prometheus to scrape the blackbox_exporter.
|
||||||
|
- target_label: __address__
|
||||||
replacement: blackbox:9115
|
replacement: blackbox:9115
|
||||||
|
# Drop the original alias label as it's now redundant with instance
|
||||||
|
- action: labeldrop
|
||||||
|
regex: ^alias$
|
||||||
|
|
||||||
- job_name: chain_heads
|
- job_name: chain_heads
|
||||||
scrape_interval: 10s
|
scrape_interval: 10s
|
||||||
|
@ -44,16 +44,33 @@ laconic-so --stack monitoring deploy create --spec-file monitoring-testnet-spec.
|
|||||||
- job_name: 'blackbox'
|
- job_name: 'blackbox'
|
||||||
...
|
...
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets: ["https://wallet.laconic.com"]
|
||||||
- https://wallet.laconic.com
|
labels:
|
||||||
- https://laconicd-sapo.laconic.com
|
alias: "Wallet App"
|
||||||
- https://console-sapo.laconic.com
|
- targets: ["https://laconicd-sapo.laconic.com"]
|
||||||
- https://fixturenet-eth.laconic.com
|
labels:
|
||||||
- https://deploy.laconic.com
|
alias: "Node (laconicd)"
|
||||||
- https://deploy-backend.laconic.com/staging/version
|
- targets: ["https://console-sapo.laconic.com"]
|
||||||
- https://container-registry.apps.vaasl.io
|
labels:
|
||||||
- https://webapp-deployer-api.apps.vaasl.io
|
alias: "Console App"
|
||||||
- https://webapp-deployer-ui.apps.vaasl.io
|
- targets: ["https://fixturenet-eth.laconic.com"]
|
||||||
|
labels:
|
||||||
|
alias: "Fixturenet ETH"
|
||||||
|
- targets: ["https://deploy.laconic.com"]
|
||||||
|
labels:
|
||||||
|
alias: "Deploy App"
|
||||||
|
- targets: ["https://deploy-backend.laconic.com/staging/version"]
|
||||||
|
labels:
|
||||||
|
alias: "Deploy Backend"
|
||||||
|
- targets: ["https://container-registry.apps.vaasl.io"]
|
||||||
|
labels:
|
||||||
|
alias: "Container Registry"
|
||||||
|
- targets: ["https://webapp-deployer-api.apps.vaasl.io"]
|
||||||
|
labels:
|
||||||
|
alias: "Webapp Deployer API"
|
||||||
|
- targets: ["https://webapp-deployer-ui.apps.vaasl.io"]
|
||||||
|
labels:
|
||||||
|
alias: "Webapp Deployer UI"
|
||||||
...
|
...
|
||||||
- job_name: laconicd
|
- job_name: laconicd
|
||||||
...
|
...
|
||||||
|
@ -44,9 +44,12 @@ Add the following scrape configs to prometheus config file (`monitoring-watchers
|
|||||||
- job_name: 'blackbox'
|
- job_name: 'blackbox'
|
||||||
...
|
...
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets: ["<AZIMUTH_GATEWAY_GQL_ENDPOINT>"]
|
||||||
- <AZIMUTH_GATEWAY_GQL_ENDPOINT>
|
labels:
|
||||||
- <LACONICD_GQL_ENDPOINT>
|
alias: "Azimuth Watcher"
|
||||||
|
- targets: ["<LACONICD_GQL_ENDPOINT>"]
|
||||||
|
labels:
|
||||||
|
alias: "Node (laconicd)"
|
||||||
...
|
...
|
||||||
- job_name: laconicd
|
- job_name: laconicd
|
||||||
static_configs:
|
static_configs:
|
||||||
|
Loading…
Reference in New Issue
Block a user