prometheus_exporter 2.0.7 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25775f350202635101e313a78e969a076259861a993349069a2dad9af6090304
4
- data.tar.gz: 403ea5cec32df2025140379fe44a4bb7a1850dfadb639c04de65f8d2f5589f79
3
+ metadata.gz: af71a5656b5fe6a90de6fe6ad1b76efa05ccfb67d4fdb3cdcc740f539097546f
4
+ data.tar.gz: cd6ef704ecdc7110d5f78dd999354e1ea093adcba51f2355a0211e99e0fb3c67
5
5
  SHA512:
6
- metadata.gz: c03b38725cef3d3d37d9b11106980d0861892fa225d4e0ffdfcdc0178eda80902e7b89f29955b978bdc58fe496059a42a99504b29a8bc9acb4227c0661f62031
7
- data.tar.gz: fd06bd579d2bcfdb702d40e3f2e13c33a2edfb909e938dc52b26160b5e65b5f96f1ffcd53b22e80c289f2cae013630e5017bd6e93f8b9a7cf5de3da983fae823
6
+ metadata.gz: adf3c09a5609699bd055094bc509e997e320a72833b7c2beca03186d0c3d3fa0fa65fc005708b7faf496a9bf32c68c489cc7a1985525eed7a35ceb6b2d53a9df
7
+ data.tar.gz: 3975585eb3842c5cf409793d9257a184e33af062d4dd45e5bf64164bbba88c87d14aaea946bed519f9db1034afb8695fbdeecef337286bcaf00132cd2cd7a5f2
@@ -20,7 +20,7 @@ jobs:
20
20
  strategy:
21
21
  fail-fast: false
22
22
  matrix:
23
- ruby: ['2.6', '2.7', '3.0', '3.1']
23
+ ruby: ['2.6', '2.7', '3.0', '3.1', '3.2']
24
24
  activerecord: [60, 61]
25
25
 
26
26
  steps:
@@ -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
@@ -1,3 +1,7 @@
1
+ 2.0.8 - 2023-01-20
2
+
3
+ - FEATURE: attempting to make our first docker release
4
+
1
5
  2.0.7 - 2023-01-13
2
6
 
3
7
  - FEATURE: allow binding server to both ipv4 and v6
data/Dockerfile ADDED
@@ -0,0 +1,9 @@
1
+ ARG RUBY_VERSION=3.1
2
+ ARG GEM_VERSION=
3
+
4
+ FROM ruby:${RUBY_VERSION}-slim
5
+
6
+ RUN gem install --no-doc --version=${GEM_VERSION} prometheus_exporter
7
+
8
+ EXPOSE 9394
9
+ ENTRYPOINT ["prometheus_exporter", "-b", "ANY"]
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 :
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrometheusExporter
4
- VERSION = '2.0.7'
4
+ VERSION = "2.0.8"
5
5
  end
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.7
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-16 00:00:00.000000000 Z
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