Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
apache-exporter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
silver-platter
apache-exporter
Commits
58115741
Commit
58115741
authored
8 years ago
by
Xavier Hurst
Browse files
Options
Downloads
Patches
Plain Diff
Added Dockerfile, updated README
parent
c1cfe73d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+8
-0
8 additions, 0 deletions
Dockerfile
README.md
+17
-0
17 additions, 0 deletions
README.md
with
25 additions
and
0 deletions
Dockerfile
0 → 100644
+
8
−
0
View file @
58115741
FROM
alpine:3.5
RUN
apk add
--no-cache
ca-certificates
ADD
apache_exporter /
EXPOSE
9117
ENTRYPOINT
["/apache_exporter"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
README.md
+
17
−
0
View file @
58115741
...
...
@@ -21,3 +21,20 @@ Help on flags:
Tested on Apache 2.2 and Apache 2.4.
# Using Docker
## Build
Run the following commands from the project root directory.
```
env GOOS=linux GOARCH=amd64 go build .
docker build -t apache_exporter .
```
## Run
```
docker run -d -p 9117:9117 apache_exporter \
-scrape_uri "https://your.server.com/server-status/?auto"
```
\ No newline at end of file
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