ship exporter dockerfile to keep it local

pull/2/head
lza_menace 4 years ago
parent 09f25c5165
commit f4fd3661fb

@ -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"]

@ -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

@ -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,13 +120,13 @@
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 9, "h": 7,
"w": 12, "w": 12,
"x": 12, "x": 0,
"y": 0 "y": 6
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 2, "id": 8,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
@ -149,15 +149,16 @@
"seriesOverrides": [ "seriesOverrides": [
{ {
"alias": "/.*/", "alias": "/.*/",
"color": "#C4162A" "color": "#FA6400"
} }
], ],
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": true, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "avg(monerod_block_difficulty)", "expr": "avg(monerod_block_reward)",
"legendFormat": "Block Reward (WOW)",
"refId": "A" "refId": "A"
} }
], ],
@ -165,7 +166,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Difficulty", "title": "Block Reward (WOW)",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
@ -181,6 +182,7 @@
}, },
"yaxes": [ "yaxes": [
{ {
"decimals": null,
"format": "none", "format": "none",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -194,7 +196,7 @@
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": null,
"show": true "show": false
} }
], ],
"yaxis": { "yaxis": {
@ -211,13 +213,13 @@
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 8, "h": 7,
"w": 12, "w": 12,
"x": 0, "x": 12,
"y": 9 "y": 6
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 8, "id": 2,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
@ -240,16 +242,15 @@
"seriesOverrides": [ "seriesOverrides": [
{ {
"alias": "/.*/", "alias": "/.*/",
"color": "#FA6400" "color": "#C4162A"
} }
], ],
"spaceLength": 10, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": true,
"targets": [ "targets": [
{ {
"expr": "avg(monerod_block_reward)", "expr": "avg(monerod_block_difficulty)",
"legendFormat": "Block Reward (WOW)",
"refId": "A" "refId": "A"
} }
], ],
@ -257,7 +258,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Block Reward (WOW)", "title": "Difficulty",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
@ -273,7 +274,6 @@
}, },
"yaxes": [ "yaxes": [
{ {
"decimals": null,
"format": "none", "format": "none",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -287,7 +287,7 @@
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": null,
"show": false "show": true
} }
], ],
"yaxis": { "yaxis": {
@ -297,17 +297,17 @@
}, },
{ {
"aliasColors": {}, "aliasColors": {},
"bars": true, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": null, "datasource": null,
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 8, "h": 7,
"w": 12, "w": 24,
"x": 12, "x": 0,
"y": 9 "y": 13
}, },
"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
} }