ship exporter dockerfile to keep it local

pull/2/head
lza_menace 3 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
exporter:
build:
context: ../../wownerod_exporter
context: .
dockerfile: Dockerfile-exporter
environment:
DAEMON_HOST: http://wownerod:34570
PORT: 8080

@ -25,10 +25,10 @@
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"fillGradient": 5,
"gridPos": {
"h": 9,
"w": 12,
"h": 6,
"w": 24,
"x": 0,
"y": 0
},
@ -44,7 +44,7 @@
"values": false
},
"lines": true,
"linewidth": 1,
"linewidth": 2,
"nullPointMode": "connected",
"options": {
"dataLinks": []
@ -55,7 +55,7 @@
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"stack": true,
"steppedLine": false,
"targets": [
{
@ -120,13 +120,13 @@
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"h": 7,
"w": 12,
"x": 12,
"y": 0
"x": 0,
"y": 6
},
"hiddenSeries": false,
"id": 2,
"id": 8,
"legend": {
"avg": false,
"current": false,
@ -149,15 +149,16 @@
"seriesOverrides": [
{
"alias": "/.*/",
"color": "#C4162A"
"color": "#FA6400"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": true,
"steppedLine": false,
"targets": [
{
"expr": "avg(monerod_block_difficulty)",
"expr": "avg(monerod_block_reward)",
"legendFormat": "Block Reward (WOW)",
"refId": "A"
}
],
@ -165,7 +166,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Difficulty",
"title": "Block Reward (WOW)",
"tooltip": {
"shared": true,
"sort": 0,
@ -181,6 +182,7 @@
},
"yaxes": [
{
"decimals": null,
"format": "none",
"label": null,
"logBase": 1,
@ -194,7 +196,7 @@
"logBase": 1,
"max": null,
"min": null,
"show": true
"show": false
}
],
"yaxis": {
@ -211,13 +213,13 @@
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"h": 7,
"w": 12,
"x": 0,
"y": 9
"x": 12,
"y": 6
},
"hiddenSeries": false,
"id": 8,
"id": 2,
"legend": {
"avg": false,
"current": false,
@ -240,16 +242,15 @@
"seriesOverrides": [
{
"alias": "/.*/",
"color": "#FA6400"
"color": "#C4162A"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"steppedLine": true,
"targets": [
{
"expr": "avg(monerod_block_reward)",
"legendFormat": "Block Reward (WOW)",
"expr": "avg(monerod_block_difficulty)",
"refId": "A"
}
],
@ -257,7 +258,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Block Reward (WOW)",
"title": "Difficulty",
"tooltip": {
"shared": true,
"sort": 0,
@ -273,7 +274,6 @@
},
"yaxes": [
{
"decimals": null,
"format": "none",
"label": null,
"logBase": 1,
@ -287,7 +287,7 @@
"logBase": 1,
"max": null,
"min": null,
"show": false
"show": true
}
],
"yaxis": {
@ -297,17 +297,17 @@
},
{
"aliasColors": {},
"bars": true,
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 9
"h": 7,
"w": 24,
"x": 0,
"y": 13
},
"hiddenSeries": false,
"id": 6,
@ -321,7 +321,7 @@
"values": false
},
"lines": false,
"linewidth": 1,
"linewidth": 2,
"nullPointMode": "connected",
"options": {
"dataLinks": []
@ -329,7 +329,7 @@
"percentage": false,
"pluginVersion": "6.5.0",
"pointradius": 0.5,
"points": false,
"points": true,
"renderer": "flot",
"seriesOverrides": [
{
@ -412,7 +412,7 @@
"h": 5,
"w": 8,
"x": 8,
"y": 17
"y": 20
},
"id": 10,
"interval": null,
@ -503,5 +503,5 @@
"timezone": "",
"title": "Daemon Stats",
"uid": "0ktA4KDGk",
"version": 3
"version": 4
}