node-exporter, prometheus, grafana and friends.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yutsuo da86e12820 update 4 years ago
.env update 4 years ago
README.md update 4 years ago
alert.rules.yml update 4 years ago
alertmanager.yml update 4 years ago
docker-compose.yml updates 4 years ago
msteams-card.json updates 4 years ago
prometheus.yml update 4 years ago
telegram-group.json update 4 years ago
url-encoded-string update 4 years ago

README.md

https://github.com/little-angry-clouds/prometheus-data-generator

{
  "id": 2,
  "gridPos": {
    "h": 9,
    "w": 12,
    "x": 0,
    "y": 0
  },
  "type": "stat",
  "title": "Fruits",
  "pluginVersion": "8.4.5",
  "fieldConfig": {
    "defaults": {
      "mappings": [],
      "thresholds": {
        "mode": "absolute",
        "steps": [
          {
            "color": "green",
            "value": null
          },
          {
            "color": "red",
            "value": 80
          }
        ]
      },
      "color": {
        "mode": "continuous-GrYlRd"
      }
    },
    "overrides": [
      {
        "matcher": {
          "id": "byName",
          "options": "number_of_fruits{color=\"red\", instance=\"localhost:9000\", job=\"data-exporter\", name=\"apple\"}"
        },
        "properties": [
          {
            "id": "color",
            "value": {
              "fixedColor": "red",
              "mode": "fixed"
            }
          }
        ]
      },
      {
        "matcher": {
          "id": "byName",
          "options": "number_of_fruits{color=\"yellow\", instance=\"localhost:9000\", job=\"data-exporter\", name=\"apple\"}"
        },
        "properties": [
          {
            "id": "color",
            "value": {
              "fixedColor": "yellow",
              "mode": "fixed"
            }
          }
        ]
      }
    ]
  },
  "options": {
    "reduceOptions": {
      "values": false,
      "calcs": [
        "lastNotNull"
      ],
      "fields": ""
    },
    "orientation": "auto",
    "textMode": "auto",
    "colorMode": "value",
    "graphMode": "area",
    "justifyMode": "auto"
  },
  "targets": [
    {
      "datasource": {
        "type": "prometheus",
        "uid": "XgffZ787k"
      },
      "exemplar": true,
      "expr": "number_of_fruits{color=\"green\"}",
      "interval": "",
      "legendFormat": "GREEN",
      "refId": "A"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "XgffZ787k"
      },
      "exemplar": true,
      "expr": "number_of_fruits{color=\"red\"}",
      "hide": false,
      "interval": "",
      "legendFormat": "RED",
      "refId": "B"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "XgffZ787k"
      },
      "exemplar": true,
      "expr": "number_of_fruits{color=\"yellow\"}",
      "hide": false,
      "interval": "",
      "legendFormat": "YELLOW",
      "refId": "C"
    }
  ],
  "interval": "5s",
  "datasource": null
}