Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ services:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data_itn04:/prometheus
- prometheus_data_testnet:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--storage.tsdb.retention.time=30d'
networks:
- monitor-network

Expand Down Expand Up @@ -48,4 +49,4 @@ networks:
driver: bridge

volumes:
prometheus_data_itn04:
prometheus_data_testnet:
6 changes: 3 additions & 3 deletions prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ global:
evaluation_interval: 15s

scrape_configs:
- job_name: 'shardeum-network-status-monitor'
- job_name: 'shardeum-testnet-monitor'
static_configs:
- targets: ['34.57.40.159:3002'] # the exporter runs on this port
#- targets: ['localhost:3002'] # for local development
# - targets: ['34.57.40.159:3002'] # the exporter runs on this port
- targets: ['localhost:3002'] # for local development
metrics_path: '/metrics'
20 changes: 6 additions & 14 deletions server/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"group": "Archiver Servers",
"servers": [
{
"url": "http://35.193.191.159:4000/nodelist",
"url": "http://104.197.117.164:4000/nodelist",
"name": "Archiver",
"help": "This is the first Archiver server",
"expectedResponse":{
"nodeList": [{}, {}],
"sign":{
"owner":"1c63734aedef5665d6cf02d3a79ae30aedcbd27eae3b76fff05d587a6ac62981",
"sig": "c17b0aca49848cc5b5013caab8f0c16b334bac7bc2c389a818c76fd9e387b936e4eef2a46107698d61cd0b5744c9e54658ae55a82458bbd2e1144ce15b655907a5063ce34c7462a9028aeb57a403d21499bf28fc0ae27bfcc173a29c6e1a824a"
"owner":"d831bb7c09db45d47338af23ab50cac5d29ef8f3a2cd274dd741370aa472d6c1",
"sig": "270fbf891e291653cb4c43f948a0c8a91cd6dcd88ab0e5b3c9feb7b7a505403145a24fe5ce236dde8602f3b73b93ed883810535bd7d68f184e0d5d1559279c0f6cfedf7bae83d8dab2fc0a9515a28f2318dc9a6e46041cbd525d97cb0a521403"
}
}
}
Expand All @@ -21,7 +21,7 @@
"group": "Core Services",
"servers": [
{
"url": "https://atomium.shardeum.org",
"url": "https://api-testnet.shardeum.org",
"name": "JSON-RPC Server",
"help": "This is the first JSON-RPC server",
"body": {
Expand All @@ -34,22 +34,14 @@
"jsonrpc": "2.0",
"id": 73
}
},
{
"url": "https://faucet-atomium.shardeum.org/is-healthy",
"name": "Faucet",
"help": "This is the Shardeum Faucet",
"expectedResponse": {
"health": true
}
}
]
},
{
"group": "Web Services",
"servers": [
{
"url": "https://explorer-atomium.shardeum.org",
"url": "https://explorer-testnet.shardeum.org",
"name": "Explorer",
"help": "This is the Shardeum Explorer",
"expectedResponse": "The Shardeum Betanet Explorer"
Expand All @@ -72,7 +64,7 @@
"group": "Monitor Servers",
"servers": [
{
"url": "http://34.28.123.3:3000/summary",
"url": "http://34.56.47.170:5000/summary",
"name": "Monitor",
"help": "This is the first Monitor server",
"expectedResponse": "Joining Nodes"
Expand Down
2 changes: 1 addition & 1 deletion server/exporter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const express = require('express');
const client = require('prom-client');
const axios = require('axios');
require('dotenv').config({ path: require('path').resolve(__dirname, '.env') });
require('dotenv').config({ path: require('path').resolve(__dirname, '../.env') });

const endpoints = require(process.env.ENDPOINTS_FILE || './endpoints.json');

Expand Down