Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threshold Marker is shown when set to Off #39262

Closed
atifali opened this issue Sep 15, 2021 · 1 comment · Fixed by #39270
Closed

Threshold Marker is shown when set to Off #39262

atifali opened this issue Sep 15, 2021 · 1 comment · Fixed by #39270

Comments

@atifali
Copy link
Contributor

atifali commented Sep 15, 2021

What happened:
Running a simple time-series panel and seeing the threshold marker even when the Show thresholds is set to Off:

Screen Shot 2021-09-15 at 4 50 18 PM

Screen Shot 2021-09-15 at 4 49 00 PM

Note that the default threshold of 80 is being shown here, no other explicit thresholds were set.

What you expected to happen:
I would expect the marker to not show up at all.

How to reproduce it (as minimally and precisely as possible):
Here is the panel JSON if needed:

{
  "id": 23763571993,
  "gridPos": {
    "h": 10,
    "w": 24,
    "x": 0,
    "y": 0
  },
  "type": "timeseries",
  "title": "Test Panel",
  "fieldConfig": {
    "defaults": {
      "custom": {
        "drawStyle": "line",
        "lineInterpolation": "linear",
        "barAlignment": 0,
        "lineWidth": 1,
        "fillOpacity": 0,
        "gradientMode": "none",
        "spanNulls": false,
        "showPoints": "auto",
        "pointSize": 5,
        "stacking": {
          "mode": "none",
          "group": "A"
        },
        "axisPlacement": "auto",
        "axisLabel": "",
        "scaleDistribution": {
          "type": "linear"
        },
        "hideFrom": {
          "tooltip": false,
          "viz": false,
          "legend": false
        },
        "thresholdsStyle": {
          "mode": "off"
        }
      },
      "color": {
        "mode": "palette-classic"
      },
      "thresholds": {
        "mode": "absolute",
        "steps": [
          {
            "color": "green",
            "value": null
          },
          {
            "color": "red",
            "value": 80
          }
        ]
      },
      "mappings": []
    },
    "overrides": []
  },
  "options": {
    "tooltip": {
      "mode": "single"
    },
    "legend": {
      "displayMode": "list",
      "placement": "bottom",
      "calcs": []
    }
  },
  "datasource": null
}

Environment:

  • Grafana version: main
  • Data source type & version: gdev-testdata
  • OS Grafana is installed on: macOS (dev run)
  • User OS & Browser: macOS, Chrome
@atifali
Copy link
Contributor Author

atifali commented Sep 15, 2021

@leeoniya is this what you were seeing as well?

@atifali atifali changed the title Bug: Threshold Marker is shown when set to Off Threshold Marker is shown when set to Off Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant