Skip to content

Commit

Permalink
Upgrade to ES 7.13.0 and release version 7.13.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vvanholl committed May 29, 2021
1 parent 1ed3f5f commit 9c3829c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:
- "6.x"

env:
gradle-version: "6.8.2"
java-version: "15"
gradle-version: "7.0.2"
java-version: "16"

jobs:
build:
Expand All @@ -36,12 +36,12 @@ jobs:
with:
gradle-version: "${{ env.gradle-version }}"
arguments: "check"
- name: "Gradle release"
- name: "GitHub release"
if: "contains('refs/heads/master refs/heads/5.x refs/heads/6.x', github.ref)"
env:
ORG_GRADLE_PROJECT_github_owner: ${{ github.repository_owner }}
ORG_GRADLE_PROJECT_github_token: ${{ github.token }}
uses: "eskatos/gradle-command-action@v1"
with:
gradle-version: "${{ env.gradle-version }}"
arguments: "release"
run: |
version=$(cat gradle.properties | grep -e "^version *=" | awk -F" *= *" '{print $NF}')
is_snapshot=$(echo ${version} | grep -e "-SNAPSHOT$" | wc -l)
if [ "$is_snapshot" == "0" ]; then
echo ${{ github.token }} | gh auth login --with-token
gh release create ${version} ./build/distributions/*.zip
fi
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ It collects all relevant metrics and makes them available to Prometheus via the

| Elasticsearch | Plugin | Release date |
| -------------- | -------------- | ------------ |
| 7.13.1 | 7.13.0.0 | May 27, 2021 |
| 7.12.1 | 7.12.1.0 | May 01, 2021 |
| 7.12.0 | 7.12.0.0 | Apr 04, 2021 |
| 7.11.2 | 7.11.2.0 | Mar 20, 2021 |
Expand Down Expand Up @@ -63,7 +64,7 @@ It collects all relevant metrics and makes them available to Prometheus via the

## Install

`./bin/elasticsearch-plugin install -b https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/7.12.1.0/prometheus-exporter-7.12.1.0.zip`
`./bin/elasticsearch-plugin install -b https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/7.13.0.0/prometheus-exporter-7.13.0.0.zip`

**Do not forget to restart the node after the installation!**

Expand Down
19 changes: 7 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ licenseFile = rootProject.file('LICENSE.txt')
noticeFile = rootProject.file('NOTICE.txt')

// POM validation can be enabled
validateNebulaPom.enabled = false
validateElasticPom.enabled = false

// No unit tests in this plugin
test.enabled = false
Expand All @@ -69,6 +69,7 @@ ext {
}

configurations {
runtime
releaseJars {
extendsFrom runtime
exclude group: "org.elasticsearch"
Expand All @@ -78,11 +79,11 @@ configurations {
}

dependencies {
compile "org.elasticsearch:elasticsearch:${versions.elasticsearch}"
compile "io.prometheus:simpleclient:${versions.prometheus}"
compile "io.prometheus:simpleclient_common:${versions.prometheus}"
compile "org.apache.logging.log4j:log4j-api:${versions.log4j}"
testCompile (group: 'junit', name: 'junit', version: "${versions.junit}") {
api "org.elasticsearch:elasticsearch:${versions.elasticsearch}"
api "io.prometheus:simpleclient:${versions.prometheus}"
api "io.prometheus:simpleclient_common:${versions.prometheus}"
api "org.apache.logging.log4j:log4j-api:${versions.log4j}"
testImplementation (group: 'junit', name: 'junit', version: "${versions.junit}") {
exclude group:'org.hamcrest' //also included in ES test framework
}
releaseJars "${project.group}:${project.name}:${project.version}"
Expand All @@ -100,12 +101,6 @@ esplugin {
classname pluginClassname
}

restResources {
restApi {
includeCore '*'
}
}

testClusters.all {
numberOfNodes = 2

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group = org.elasticsearch.plugin.prometheus

version = 7.12.1.1-SNAPSHOT
version = 7.13.0.0

pluginName = prometheus-exporter
pluginClassname = org.elasticsearch.plugin.prometheus.PrometheusExporterPlugin
Expand Down

0 comments on commit 9c3829c

Please sign in to comment.