Skip to content

Commit

Permalink
Merge pull request #228 from barrucadu/bump-resolved
Browse files Browse the repository at this point in the history
Bump resolved & add "refused" to dashboard
  • Loading branch information
barrucadu authored Sep 23, 2023
2 parents e5804db + 4392426 commit f0090a7
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/resolved/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

rustPlatform.buildRustPackage rec {
pname = "resolved";
version = "47da2a112e07bee239c7d2d54a7184946980d3bd";
version = "32c92d919a440c53f8a127d4e04ce848284260e5";

src = fetchFromGitHub {
owner = "barrucadu";
repo = pname;
rev = version;
sha256 = "sha256-aCkhSUHS268cXFdw/YMjZkV0LbPrAq0MpQ+P25M6z6I=";
sha256 = "sha256-L1ix6/w7G9McBBio2Q9AG9KB/C0Sfc4goZFmYvPDVT0=";
};

cargoSha256 = "sha256-Y+XKddzHY2Uk68Oeb4vSPULAnbiVV7ed/Obm8ki3dxQ=";
cargoSha256 = "sha256-D/sqG3PnCS0ormV+PgZLk/p6fSOyhcCNaHV3qRXDh5Q=";

postInstall = ''
cd config
Expand Down
108 changes: 103 additions & 5 deletions shared/resolved/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,108 @@
},
"gridPos": {
"h": 8,
"w": 8,
"w": 6,
"x": 0,
"y": 8
},
"id": 27,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(dns_requests_refused_total{job=\"$Job\"}) by(reason)",
"interval": "",
"legendFormat": "{{reason}}",
"range": true,
"refId": "A"
}
],
"title": "Refused",
"transparent": true,
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P1809F7CD0C75ACF3"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMin": 0,
"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": "never",
"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": 8,
"w": 6,
"x": 6,
"y": 8
},
"id": 13,
"options": {
"legend": {
Expand Down Expand Up @@ -571,8 +669,8 @@
},
"gridPos": {
"h": 8,
"w": 8,
"x": 8,
"w": 6,
"x": 12,
"y": 8
},
"id": 17,
Expand Down Expand Up @@ -724,8 +822,8 @@
},
"gridPos": {
"h": 8,
"w": 8,
"x": 16,
"w": 6,
"x": 18,
"y": 8
},
"id": 18,
Expand Down

0 comments on commit f0090a7

Please sign in to comment.