TLDR zane.chen asked how to validate Prometheus config and sought help with a Grafana JSON template. Srikanth advised on validation, discussing Grafana version compatibility.
You can go to dashboards panel and search for the metric name you would expect after successful scape.
please help confirm the config that weather it‘s ok
is it effective?
do you have common json file? can display metrics data like grafana
What metrics do you expect to be seen?
prometheus metrics,now I have added prometheus, but i need json template to display metrics data
I am not sure I know what _json template to display metrics data mean_
just like the grafana json file import panel
There is a import grafana json option in SigNoz dashboards
yes, do you have this grafana json file in signoz?
Yes, there is a feature to import grafana json
but i load my prepared grafana json file, appears above error
You need to make sure the imported dashboard doesn’t have an invalid expression.
my imported json file is standard grafana dashboard json file, no special expression
Can you open the panel in edit mode and share the query
The `$interval` is not supported
ok, do you give me a usable grafana json file, let me try?
I will share
thank you very much!
I create one simple grafana dashboard from prometheus data, then import the json file in signoz, but unfortunately, it cannot expect to display, so i suppose maybe not strong support to grafana dashboard function in signoz
{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 16, "links": [], "liveNow": false, "panels": [ { "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 0 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "X6_V2pO4z" }, "exemplar": true, "expr": "prometheus_engine_queries", "interval": "", "legendFormat": "", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "X6_V2pO4z" }, "exemplar": true, "expr": "prometheus_http_requests_total", "hide": false, "interval": "", "legendFormat": "", "refId": "B" } ], "title": "prometheus监控测试", "type": "timeseries" } ], "schemaVersion": 35, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "prometheus监控测试", "uid": "QWjgtZbVz", "version": 1, "weekStart": "" }
the above is simple grafana dashbard json file
Right, no strong support but something that most helps. What does the above show in dashboards UI?
empty panel
The grafana JSON is very different b/w version to version so there is a chance the current logic doesn’t detect this version.
this is show in grafana ui
do you mean signoz cannot support my grafana version?
The Grafana JSON has a version associated with it which we may not support yet
could you tell me the gafana version you have supported?
There is no definitive list. There is some heuristic code which we tested on some major versions.
got it, do you give me a usable grafana json file, let me try?
Sure, I will get back to you on this.
expect for your replay :blush:
I have another question about logs
maybe signoz cannot support application inside logs?
I can only find some http request record in signoz, just like below
2、and can go-zero framework be supported by signoz? my go application used go-zero framework not gin
zane.chen
Thu, 23 Feb 2023 10:31:13 UTCI have setup prometheus receiver in metrics of config file, how to validate this config is effective?