-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beaconchain Mobile App as a Node Monitoring option to Stereum (#1459)
* update the fetching * fix the new api for the testers * Revert "fix the new api for the testers" This reverts commit ab01562. * Revert "update the fetching" This reverts commit b5a052c. * add beaconcha row to notif modal * validators added to the modal * add the beaconcha link to go * update the beaconchain modal * add the inputs in the modal * fix the beaconchain modal and frontend is done * add internationalization to the modal * fix the frontend * Added Metrics Exporter Added Metrics Exporter. Automatic configuration not yet implemented. --------- Co-authored-by: PatrickRL <[email protected]>
- Loading branch information
Showing
12 changed files
with
327 additions
and
16 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
launcher/src/backend/ethereum-services/MetricsExporterService.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { NodeService } from "./NodeService"; | ||
import { ServiceVolume } from "./ServiceVolume"; | ||
|
||
export class MetricsExporterService extends NodeService { | ||
static buildByUserInput(network) { | ||
const image = "gobitfly/eth2-client-metrics-exporter"; | ||
const service = new MetricsExporterService(); | ||
const volumes = [ | ||
new ServiceVolume("/sys", "/host/sys", "ro"), | ||
new ServiceVolume("/proc", "/host/proc", "ro"), | ||
new ServiceVolume("/", "/host/rootfs", "ro"), | ||
]; | ||
|
||
service.init( | ||
"MetricsExporterService", //service | ||
service.id, // id, | ||
1, // configVersion | ||
image, // image, | ||
"latest", // imageVersion, | ||
[ | ||
`--server.address=https://beaconcha.in/api/v1/client/metrics?apikey=<API_KEY>&machine=<MACHINE_NAME>`, | ||
`--system.partition=/host/rootfs`, | ||
`--beaconnode.type=prysm`, | ||
`--beaconnode.address=http://stereum-<SERVICE_ID>:8080/metrics`, | ||
`--validator.type=prysm`, | ||
`--validator.address=http://stereum-<SERVICE_ID>:8081/metrics`, | ||
], // command, | ||
["/bin/eth2-client-metrics-exporter"], // entrypoint, | ||
{ | ||
HOST_PROC: "/host/proc", | ||
HOST_SYS: "/host/sys", | ||
}, // env, | ||
[], // ports, | ||
volumes, // volumes, | ||
null, // user, | ||
network // network, | ||
); | ||
return service; | ||
} | ||
|
||
static buildByConfiguration(config) { | ||
const service = new MetricsExporterService(); | ||
|
||
service.initByConfig(config); | ||
|
||
return service; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.