prometheus_exporter 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/docker.yml +47 -0
- data/CHANGELOG +4 -0
- data/Dockerfile +9 -0
- data/README.md +23 -0
- data/lib/prometheus_exporter/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af71a5656b5fe6a90de6fe6ad1b76efa05ccfb67d4fdb3cdcc740f539097546f
|
4
|
+
data.tar.gz: cd6ef704ecdc7110d5f78dd999354e1ea093adcba51f2355a0211e99e0fb3c67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adf3c09a5609699bd055094bc509e997e320a72833b7c2beca03186d0c3d3fa0fa65fc005708b7faf496a9bf32c68c489cc7a1985525eed7a35ceb6b2d53a9df
|
7
|
+
data.tar.gz: 3975585eb3842c5cf409793d9257a184e33af062d4dd45e5bf64164bbba88c87d14aaea946bed519f9db1034afb8695fbdeecef337286bcaf00132cd2cd7a5f2
|
data/.github/workflows/ci.yml
CHANGED
@@ -0,0 +1,47 @@
|
|
1
|
+
name: Docker
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- "v*"
|
7
|
+
|
8
|
+
permissions:
|
9
|
+
contents: read
|
10
|
+
packages: write
|
11
|
+
|
12
|
+
env:
|
13
|
+
DOCKER_REPO: ghcr.io/discourse/prometheus_exporter
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
build-and-publish:
|
17
|
+
runs-on: ubuntu-latest
|
18
|
+
timeout-minutes: 30
|
19
|
+
|
20
|
+
steps:
|
21
|
+
- name: Set vars
|
22
|
+
id: vars
|
23
|
+
run: |
|
24
|
+
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
25
|
+
|
26
|
+
- uses: actions/checkout@v3
|
27
|
+
- uses: docker/setup-qemu-action@v2
|
28
|
+
- uses: docker/setup-buildx-action@v2
|
29
|
+
|
30
|
+
- name: Login to Github Container Registry
|
31
|
+
uses: docker/login-action@v2
|
32
|
+
with:
|
33
|
+
registry: ghcr.io
|
34
|
+
username: ${{ github.actor }}
|
35
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
36
|
+
|
37
|
+
- name: Build and push images
|
38
|
+
uses: docker/build-push-action@v3
|
39
|
+
with:
|
40
|
+
context: .
|
41
|
+
push: true
|
42
|
+
platforms: linux/amd64,linux/arm64
|
43
|
+
build-args: |
|
44
|
+
GEM_VERSION=${{ steps.vars.outputs.version }}
|
45
|
+
tags: |
|
46
|
+
${{ env.DOCKER_REPO }}:${{ steps.vars.outputs.version }}
|
47
|
+
${{ env.DOCKER_REPO }}:latest
|
data/CHANGELOG
CHANGED
data/Dockerfile
ADDED
data/README.md
CHANGED
@@ -32,6 +32,7 @@ To learn more see [Instrumenting Rails with Prometheus](https://samsaffron.com/a
|
|
32
32
|
* [Transport concerns](#transport-concerns)
|
33
33
|
* [JSON generation and parsing](#json-generation-and-parsing)
|
34
34
|
* [Logging](#logging)
|
35
|
+
* [Docker Usage](#docker-usage)
|
35
36
|
* [Contributing](#contributing)
|
36
37
|
* [License](#license)
|
37
38
|
* [Code of Conduct](#code-of-conduct)
|
@@ -963,6 +964,28 @@ You can also pass a log level (default is [`Logger::WARN`](https://ruby-doc.org/
|
|
963
964
|
PrometheusExporter::Client.new(log_level: Logger::DEBUG)
|
964
965
|
```
|
965
966
|
|
967
|
+
## Docker Usage
|
968
|
+
|
969
|
+
You can run `prometheus_exporter` project using an official Docker image:
|
970
|
+
|
971
|
+
```bash
|
972
|
+
docker pull discourse/prometheus_exporter:latest
|
973
|
+
# or use specific version
|
974
|
+
docker pull discourse/prometheus_exporter:x.x.x
|
975
|
+
```
|
976
|
+
|
977
|
+
The start the container:
|
978
|
+
|
979
|
+
```bash
|
980
|
+
docker run -p 9394:9394 discourse/prometheus_exporter
|
981
|
+
```
|
982
|
+
|
983
|
+
Additional flags could be included:
|
984
|
+
|
985
|
+
```
|
986
|
+
docker run -p 9394:9394 discourse/prometheus_exporter --verbose --prefix=myapp
|
987
|
+
```
|
988
|
+
|
966
989
|
## Docker/Kubernetes Healthcheck
|
967
990
|
|
968
991
|
A `/ping` endpoint which only returns `PONG` is available so you can run container healthchecks :
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prometheus_exporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webrick
|
@@ -243,11 +243,13 @@ extensions: []
|
|
243
243
|
extra_rdoc_files: []
|
244
244
|
files:
|
245
245
|
- ".github/workflows/ci.yml"
|
246
|
+
- ".github/workflows/docker.yml"
|
246
247
|
- ".gitignore"
|
247
248
|
- ".rubocop.yml"
|
248
249
|
- Appraisals
|
249
250
|
- CHANGELOG
|
250
251
|
- CODE_OF_CONDUCT.md
|
252
|
+
- Dockerfile
|
251
253
|
- Gemfile
|
252
254
|
- Guardfile
|
253
255
|
- LICENSE.txt
|