Comments (3)
I've been able to reproduce, the variable support was not enabled for the "single" format.
This issue is now fixed, I also added the support of "All" and "Multi" values.
from grafana-prometheus-alertmanager-datasource.
I can not reproduce this for the single stat in 0.0.3.
When I create a variable in the dashboard it gets properly replaced by it's value:
Metrik query:
alertname="$alertname"
Query Inspector:
xhrStatus:"complete"
request:Object
method:"GET"
url:"api/datasources/proxy/1/api/v1/alerts?silenced=false&filter=alertname%3D%22Blackbox_Exporter_Probe_Failure%22"
data:Object
timezone:"browser"
panelId:3
range:Object
rangeRaw:Object
interval:"15s"
intervalMs:15000
targets:Array[1]
format:"json"
maxDataPoints:1259
scopedVars:Object
cacheTimeout:undefined
response:Object
status:"success"
data:Array[1]
0:Object
Make sure you select the format of the metric as "single" for singlestat and table for tables. Otherwise it doesn't seam to work.
from grafana-prometheus-alertmanager-datasource.
I just tried it again with a custom label from prometheus:
customer="$customer"
xhrStatus:"complete"
request:Object
method:"GET"
url:"api/datasources/proxy/2/api/v1/alerts?silenced=false&filter=customer%3D%22%24customer%22"
data:Object
timezone:"browser"
panelId:21
range:Object
rangeRaw:Object
interval:"15m"
intervalMs:900000
targets:Array[1]
format:"json"
maxDataPoints:100
scopedVars:Object
cacheTimeout:null
response:Object
status:"success"
data:Array[0]
Default variables like alertname or instance won't work here either.
I think somewhere outside the plugin itself is an entry that causes my problem. I installed the version 0.0.1 and updated manually to 0.0.3 and tryed to reinstalled it without any success.
from grafana-prometheus-alertmanager-datasource.
Related Issues (20)
- Issues with Stat Panel using Alertmanager Data Source HOT 6
- Показывает 0 на панели несмотря на алерт HOT 1
- Cmaptocamp alert manager plugin object(...)(...) fetch is not a function error HOT 3
- Add AWS SigV4 compatibility Feature request HOT 1
- Plugin doesn't work in Grafana 8.3.5 HOT 6
- Grafana 8.4.4] After grafana upgrade Alertmanager datasource started behaving strange. One time displaying alarm annotation next time labels HOT 3
- Show only most critical alerts on a panel HOT 1
- The 1.2.1 plugin version is not available in the official Grafana repo HOT 2
- Missing high severity value
- Wrong logo HOT 3
- Add variable query editor HOT 1
- Plugin doesn't work normally after grafana upgrading to version 9 HOT 4
- Angular is deprecated - please migrate to React HOT 3
- Plugin doesn't work when Openalerts manager uses the alertmanager data source HOT 1
- Would it be possible to share the JSON for the dashboard shown in the README image? HOT 1
- Grafana11 Will not support Angular plugins HOT 3
- Configure Datasource returns error HOT 2
- alertstatus and alertstatus_code field no value
- alertstatus and alertstatus_code field not work
- Configurable severity and SeverityLevels
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-prometheus-alertmanager-datasource.