Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
425d2cfd
Commit
425d2cfd
authored
Mar 07, 2018
by
Alexander Zobnin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker: add prometheus/example-golang-random to docker-compose blocks
parent
759e05d0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
4 deletions
+42
-4
docker/blocks/prometheus/docker-compose.yaml
+6
-0
docker/blocks/prometheus/prometheus.yml
+6
-2
docker/blocks/prometheus2/docker-compose.yaml
+6
-0
docker/blocks/prometheus2/prometheus.yml
+6
-2
docker/blocks/prometheus_random_data/Dockerfile
+18
-0
No files found.
docker/blocks/prometheus/docker-compose.yaml
View file @
425d2cfd
...
@@ -23,3 +23,9 @@
...
@@ -23,3 +23,9 @@
network_mode
:
host
network_mode
:
host
ports
:
ports
:
-
"
9093:9093"
-
"
9093:9093"
prometheus-random-data
:
build
:
blocks/prometheus_random_data
network_mode
:
host
ports
:
-
"
8080:8080"
docker/blocks/prometheus/prometheus.yml
View file @
425d2cfd
...
@@ -25,11 +25,15 @@ scrape_configs:
...
@@ -25,11 +25,15 @@ scrape_configs:
-
job_name
:
'
node_exporter'
-
job_name
:
'
node_exporter'
static_configs
:
static_configs
:
-
targets
:
[
'
127.0.0.1:9100'
]
-
targets
:
[
'
127.0.0.1:9100'
]
-
job_name
:
'
fake-data-gen'
-
job_name
:
'
fake-data-gen'
static_configs
:
static_configs
:
-
targets
:
[
'
127.0.0.1:9091'
]
-
targets
:
[
'
127.0.0.1:9091'
]
-
job_name
:
'
grafana'
-
job_name
:
'
grafana'
static_configs
:
static_configs
:
-
targets
:
[
'
127.0.0.1:3000'
]
-
targets
:
[
'
127.0.0.1:3000'
]
-
job_name
:
'
prometheus-random-data'
static_configs
:
-
targets
:
[
'
127.0.0.1:8080'
]
docker/blocks/prometheus2/docker-compose.yaml
View file @
425d2cfd
...
@@ -23,3 +23,9 @@
...
@@ -23,3 +23,9 @@
network_mode
:
host
network_mode
:
host
ports
:
ports
:
-
"
9093:9093"
-
"
9093:9093"
prometheus-random-data
:
build
:
blocks/prometheus_random_data
network_mode
:
host
ports
:
-
"
8080:8080"
docker/blocks/prometheus2/prometheus.yml
View file @
425d2cfd
...
@@ -25,11 +25,15 @@ scrape_configs:
...
@@ -25,11 +25,15 @@ scrape_configs:
-
job_name
:
'
node_exporter'
-
job_name
:
'
node_exporter'
static_configs
:
static_configs
:
-
targets
:
[
'
127.0.0.1:9100'
]
-
targets
:
[
'
127.0.0.1:9100'
]
-
job_name
:
'
fake-data-gen'
-
job_name
:
'
fake-data-gen'
static_configs
:
static_configs
:
-
targets
:
[
'
127.0.0.1:9091'
]
-
targets
:
[
'
127.0.0.1:9091'
]
-
job_name
:
'
grafana'
-
job_name
:
'
grafana'
static_configs
:
static_configs
:
-
targets
:
[
'
127.0.0.1:3000'
]
-
targets
:
[
'
127.0.0.1:3000'
]
-
job_name
:
'
prometheus-random-data'
static_configs
:
-
targets
:
[
'
127.0.0.1:8080'
]
docker/blocks/prometheus_random_data/Dockerfile
0 → 100644
View file @
425d2cfd
# This Dockerfile builds an image for a client_golang example.
# Builder image, where we build the example.
FROM
golang:1.9.0 AS builder
# Download prometheus/client_golang/examples/random first
RUN
go get github.com/prometheus/client_golang/examples/random
WORKDIR
/go/src/github.com/prometheus/client_golang
WORKDIR
/go/src/github.com/prometheus/client_golang/prometheus
RUN
go get
-d
WORKDIR
/go/src/github.com/prometheus/client_golang/examples/random
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build
-a
-tags
netgo
-ldflags
'-w'
# Final image.
FROM
scratch
LABEL
maintainer "The Prometheus Authors <prometheus-developers@googlegroups.com>"
COPY
--from=builder /go/src/github.com/prometheus/client_golang/examples/random .
EXPOSE
8080
ENTRYPOINT
["/random"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment