I have setup prometheus receiver in metrics of con...
# support
z
I have setup prometheus receiver in metrics of config file, how to validate this config is effective?
s
You can go to dashboards panel and search for the metric name you would expect after successful scape.
z
image.png
please help confirm the config that weather it‘s ok
image.png
is it effective?
do you have common json file? can display metrics data like grafana
image.png
image.png
s
What metrics do you expect to be seen?
z
prometheus metrics,now I have added prometheus, but i need json template to display metrics data
s
I am not sure I know what json template to display metrics data mean
z
image.png
just like the grafana json file import panel
s
There is a import grafana json option in SigNoz dashboards
z
yes, do you have this grafana json file in signoz?
s
Yes, there is a feature to import grafana json
z
image.png
but i load my prepared grafana json file, appears above error
s
You need to make sure the imported dashboard doesn’t have an invalid expression.
z
my imported json file is standard grafana dashboard json file, no special expression
s
Can you open the panel in edit mode and share the query
z
服务器资源监控Dashboard-1677205655305.json
image.png
s
The
$interval
is not supported
z
ok, do you give me a usable grafana json file, let me try?
s
I will share
z
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
Copy code
{
  "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
s
Right, no strong support but something that most helps. What does the above show in dashboards UI?
z
image.png
empty panel
image.png
s
The grafana JSON is very different b/w version to version so there is a chance the current logic doesn’t detect this version.
z
this is show in grafana ui
do you mean signoz cannot support my grafana version?
s
The Grafana JSON has a version associated with it which we may not support yet
z
could you tell me the gafana version you have supported?
s
There is no definitive list. There is some heuristic code which we tested on some major versions.
z
got it, do you give me a usable grafana json file, let me try?
s
Sure, I will get back to you on this.
z
expect for your replay 😊
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
image.png
2、and can go-zero framework be supported by signoz? my go application used go-zero framework not gin