https://signoz.io logo
#support
Title
# support
z

zane.chen

02/23/2023, 10:31 AM
I have setup prometheus receiver in metrics of config file, how to validate this config is effective?
s

Srikanth Chekuri

02/23/2023, 12:14 PM
You can go to dashboards panel and search for the metric name you would expect after successful scape.
z

zane.chen

02/24/2023, 1:14 AM
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

Srikanth Chekuri

02/24/2023, 1:58 AM
What metrics do you expect to be seen?
z

zane.chen

02/24/2023, 2:09 AM
prometheus metrics,now I have added prometheus, but i need json template to display metrics data
s

Srikanth Chekuri

02/24/2023, 2:10 AM
I am not sure I know what json template to display metrics data mean
z

zane.chen

02/24/2023, 2:12 AM
image.png
just like the grafana json file import panel
s

Srikanth Chekuri

02/24/2023, 2:12 AM
There is a import grafana json option in SigNoz dashboards
z

zane.chen

02/24/2023, 2:15 AM
yes, do you have this grafana json file in signoz?
s

Srikanth Chekuri

02/24/2023, 2:15 AM
Yes, there is a feature to import grafana json
z

zane.chen

02/24/2023, 2:23 AM
image.png
but i load my prepared grafana json file, appears above error
s

Srikanth Chekuri

02/24/2023, 2:25 AM
You need to make sure the imported dashboard doesn’t have an invalid expression.
z

zane.chen

02/24/2023, 2:26 AM
my imported json file is standard grafana dashboard json file, no special expression
s

Srikanth Chekuri

02/24/2023, 2:27 AM
Can you open the panel in edit mode and share the query
z

zane.chen

02/24/2023, 2:27 AM
服务器资源监控Dashboard-1677205655305.json
image.png
s

Srikanth Chekuri

02/24/2023, 2:29 AM
The
$interval
is not supported
z

zane.chen

02/24/2023, 2:33 AM
ok, do you give me a usable grafana json file, let me try?
s

Srikanth Chekuri

02/24/2023, 2:41 AM
I will share
z

zane.chen

02/24/2023, 2:42 AM
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

Srikanth Chekuri

02/24/2023, 2:49 AM
Right, no strong support but something that most helps. What does the above show in dashboards UI?
z

zane.chen

02/24/2023, 2:50 AM
image.png
empty panel
image.png
s

Srikanth Chekuri

02/24/2023, 2:51 AM
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

zane.chen

02/24/2023, 2:51 AM
this is show in grafana ui
do you mean signoz cannot support my grafana version?
s

Srikanth Chekuri

02/24/2023, 2:54 AM
The Grafana JSON has a version associated with it which we may not support yet
z

zane.chen

02/24/2023, 2:56 AM
could you tell me the gafana version you have supported?
s

Srikanth Chekuri

02/24/2023, 2:57 AM
There is no definitive list. There is some heuristic code which we tested on some major versions.
z

zane.chen

02/24/2023, 2:58 AM
got it, do you give me a usable grafana json file, let me try?
s

Srikanth Chekuri

02/24/2023, 2:59 AM
Sure, I will get back to you on this.
z

zane.chen

02/24/2023, 3:00 AM
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
3 Views