Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Goshimmer_without_tipselection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COLLET Ismael
Goshimmer_without_tipselection
Commits
cbe5fc1d
Unverified
Commit
cbe5fc1d
authored
4 years ago
by
capossele
Browse files
Options
Downloads
Patches
Plain Diff
Update Prometheus
parent
6a1ec92f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plugins/prometheus/metrics.go
+2
-2
2 additions, 2 deletions
plugins/prometheus/metrics.go
plugins/prometheus/parameters.go
+1
-1
1 addition, 1 deletion
plugins/prometheus/parameters.go
tools/docker-network/docker-compose.yml
+14
-1
14 additions, 1 deletion
tools/docker-network/docker-compose.yml
with
17 additions
and
4 deletions
plugins/prometheus/metrics.go
+
2
−
2
View file @
cbe5fc1d
...
...
@@ -17,9 +17,9 @@ func init() {
registry
.
MustRegister
(
messagesPerSecond
)
addCollect
(
collect
Server
)
addCollect
(
collect
Metrics
)
}
func
collect
Server
()
{
func
collect
Metrics
()
{
messagesPerSecond
.
Set
(
float64
(
metrics
.
ReceivedMessagesPerSecond
()))
}
This diff is collapsed.
Click to expand it.
plugins/prometheus/parameters.go
+
1
−
1
View file @
cbe5fc1d
...
...
@@ -16,7 +16,7 @@ const (
)
func
init
()
{
flag
.
String
(
CfgPrometheusBindAddress
,
"
localhost
:9311"
,
"the bind address on which the Prometheus exporter listens on"
)
flag
.
String
(
CfgPrometheusBindAddress
,
"
0.0.0.0
:9311"
,
"the bind address on which the Prometheus exporter listens on"
)
flag
.
Bool
(
CfgPrometheusGoMetrics
,
false
,
"include go metrics"
)
flag
.
Bool
(
CfgPrometheusProcessMetrics
,
false
,
"include process metrics"
)
flag
.
Bool
(
CfgPrometheusPromhttpMetrics
,
false
,
"include promhttp metrics"
)
...
...
This diff is collapsed.
Click to expand it.
tools/docker-network/docker-compose.yml
+
14
−
1
View file @
cbe5fc1d
...
...
@@ -40,14 +40,15 @@ services:
command
:
>
--config-dir=/tmp
--database.directory=/tmp/mainnetdb
--node.enablePlugins=bootstrap
--node.disablePlugins=valuetransfers
--node.enablePlugins=bootstrap,prometheus
volumes
:
-
./config.docker.json:/tmp/config.json:ro
-
goshimmer-cache:/go
ports
:
-
"
127.0.0.1:8080:8080/tcp"
# web API
-
"
127.0.0.1:8081:8081/tcp"
# dashboard
-
"
127.0.0.1:9311:9311/tcp"
# prometheus
depends_on
:
-
entry_node
...
...
@@ -67,6 +68,18 @@ services:
depends_on
:
-
entry_node
prometheus
:
image
:
prom/prometheus:latest
container_name
:
prometheus
ports
:
-
9090:9090
command
:
-
--config.file=/etc/prometheus/prometheus.yml
volumes
:
-
./prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on
:
-
peer_master
volumes
:
goshimmer-cache
:
name
:
goshimmer-cache
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment