ship exporter dockerfile to keep it local

This commit is contained in:
lza_menace 2020-10-29 15:01:27 -07:00
parent 09f25c5165
commit f4fd3661fb
3 changed files with 120 additions and 108 deletions

View File

@ -0,0 +1,11 @@
FROM node:8
WORKDIR /opt/monerod_exporter
RUN git clone https://github.com/ExcitableAardvark/monerod_exporter.git --branch=master --depth=1 .
RUN npm install
EXPOSE 8080
ENTRYPOINT ["node", "index.js"]

View File

@ -40,7 +40,8 @@ services:
- grafana:/var/lib/grafana - grafana:/var/lib/grafana
exporter: exporter:
build: build:
context: ../../wownerod_exporter context: .
dockerfile: Dockerfile-exporter
environment: environment:
DAEMON_HOST: http://wownerod:34570 DAEMON_HOST: http://wownerod:34570
PORT: 8080 PORT: 8080

View File

@ -25,10 +25,10 @@
"dashes": false, "dashes": false,
"datasource": null, "datasource": null,
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 5,
"gridPos": { "gridPos": {
"h": 9, "h": 6,
"w": 12, "w": 24,
"x": 0, "x": 0,
"y": 0 "y": 0
}, },
@ -44,7 +44,7 @@
"values": false "values": false
}, },
"lines": true, "lines": true,
"linewidth": 1, "linewidth": 2,
"nullPointMode": "connected", "nullPointMode": "connected",
"options": { "options": {
"dataLinks": [] "dataLinks": []
@ -55,7 +55,7 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [], "seriesOverrides": [],
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": true,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
@ -120,10 +120,103 @@
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 9, "h": 7,
"w": 12,
"x": 0,
"y": 6
},
"hiddenSeries": false,
"id": 8,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "connected",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/.*/",
"color": "#FA6400"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg(monerod_block_reward)",
"legendFormat": "Block Reward (WOW)",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Block Reward (WOW)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 0 "y": 6
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 2, "id": 2,
@ -211,103 +304,10 @@
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 8, "h": 7,
"w": 12, "w": 24,
"x": 0, "x": 0,
"y": 9 "y": 13
},
"hiddenSeries": false,
"id": 8,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "connected",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/.*/",
"color": "#FA6400"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg(monerod_block_reward)",
"legendFormat": "Block Reward (WOW)",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Block Reward (WOW)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 9
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 6, "id": 6,
@ -321,7 +321,7 @@
"values": false "values": false
}, },
"lines": false, "lines": false,
"linewidth": 1, "linewidth": 2,
"nullPointMode": "connected", "nullPointMode": "connected",
"options": { "options": {
"dataLinks": [] "dataLinks": []
@ -329,7 +329,7 @@
"percentage": false, "percentage": false,
"pluginVersion": "6.5.0", "pluginVersion": "6.5.0",
"pointradius": 0.5, "pointradius": 0.5,
"points": false, "points": true,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
@ -412,7 +412,7 @@
"h": 5, "h": 5,
"w": 8, "w": 8,
"x": 8, "x": 8,
"y": 17 "y": 20
}, },
"id": 10, "id": 10,
"interval": null, "interval": null,
@ -503,5 +503,5 @@
"timezone": "", "timezone": "",
"title": "Daemon Stats", "title": "Daemon Stats",
"uid": "0ktA4KDGk", "uid": "0ktA4KDGk",
"version": 3 "version": 4
} }