Compare commits

...

17 Commits

Author SHA1 Message Date
kongfei
6a1f6c68f5 chore: update github actions 2024-07-25 20:22:46 +08:00
kongfei605
054d202068 Merge pull request #117 from flashcatcloud/up
chore: update building workflow
2024-07-25 20:18:50 +08:00
kongfei
7a6ea64e20 chore: update building workflow 2024-07-25 20:18:21 +08:00
kongfei605
a4c3f26455 Merge pull request #116 from flashcatcloud/v7
chore: 7.0.0 release
2024-07-25 20:09:29 +08:00
kongfei
0f44db31de chore: 7.0.0 release 2024-07-25 20:09:05 +08:00
kongfei605
8893668a0e Merge pull request #115 from flashcatcloud/v7
chore: enable ForceUseServerTS
2024-07-25 17:08:34 +08:00
kongfei
1c3f40b39b chore: enable ForceUseServerTS 2024-07-25 10:59:55 +08:00
kongfei605
26c249cbdc Merge pull request #114 from flashcatcloud/v7
chore: v7 release
2024-07-25 09:01:30 +08:00
kongfei
36ec573258 chore: v7 release 2024-07-24 17:33:14 +08:00
kongfei605
6c53644a26 Merge pull request #113 from shichanglin5/6_5_0/fix-engine-name
build(update configmap: 'ClusterName' to 'EngineName'):
2024-04-23 06:34:39 +08:00
changlin.shi
1316ad9ef5 build(update configmap: 'ClusterName' to 'EngineName'): 2024-04-22 17:44:50 +08:00
kongfei605
c68c2172b6 Merge pull request #111 from shichanglin5/unmerged/fix_redis_type
fix redis type
2024-04-22 08:42:41 +08:00
changlin.shi
119b37612f fix redis type 2024-04-19 14:08:00 +08:00
kongfei605
43345dcf37 Merge pull request #109 from dinghui40/master
fix: prometheus targets mistake
2024-03-16 18:02:36 +08:00
offends
60b4dc50f1 fix: prometheus targets mistake 2024-03-15 16:55:49 +08:00
kongfei605
38fac0006f Merge pull request #102 from xemxx/fix-deployment
fix resources indentation in deployment templates
2023-12-26 10:50:45 +08:00
xem
a2035ef808 fix resources indentation in deployment templates 2023-11-23 21:55:57 +08:00
9 changed files with 32 additions and 45 deletions

View File

@@ -12,17 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go Environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -25,11 +25,11 @@ keywords:
- logs
home: https://n9e.github.io
sources:
- https://github.com/didi/nightingale
- https://github.com/ccfos/nightingale
maintainers:
- email: contact-us@flashcat.cloud
name: flashcatcloud
version: 0.2.7
version: 0.2.8
apiVersion: v1
appVersion: 6.3.4
appVersion: 7.0.0
icon: https://raw.githubusercontent.com/flashcatcloud/n9e-helm/master/n9e-icon.png

View File

@@ -160,6 +160,18 @@ app: "{{ template "nightingale.name" . }}"
{{- printf "80" -}}
{{- end -}}
{{- define "nightingale.n9e.ibexPort" -}}
{{- if eq .Values.n9e.type "internal" -}}
{{- printf "%s" "20090" -}}
{{- else -}}
{{- .Values.n9e.external.ibexPort -}}
{{- end -}}
{{- end -}}
{{- define "nightingale.n9e.ibexServicePort" -}}
{{- printf "20090" -}}
{{- end -}}
{{- define "nightingale.prometheus.host" -}}
{{- if eq .Values.prometheus.type "internal" -}}
{{- template "nightingale.prometheus" . }}

View File

@@ -60,8 +60,6 @@ data:
user001 = "ccc26da7b9aba533cbb263a36c07dcc5"
[HTTP.JWTAuth]
# signing key
SigningKey = "5b94a0fd640fe2765af826acfe42d151"
# unit: min
AccessExpired = 1500
# unit: min
@@ -86,12 +84,11 @@ data:
MaxLifetime = 7200
MaxOpenConns = 150
MaxIdleConns = 50
TablePrefix = ""
[Redis]
Address = "{{ template "nightingale.redis.addr" . }}"
Password = "{{ template "nightingale.redis.password" . }}"
RedisType = "{{ template "nightingale.redis.mode"}}"
RedisType = "{{ template "nightingale.redis.mode" . }}"
[Alert]
[Alert.Heartbeat]
@@ -99,7 +96,7 @@ data:
IP = ""
# unit ms
Interval = 1000
ClusterName = "default"
EngineName = "default"
[Center]
MetricsYamlFile = "/app/etc/metrics.yaml"
@@ -112,6 +109,7 @@ data:
[Pushgw]
# use target labels in database instead of in series
LabelRewrite = true
ForceUseServerTS = true
[[Pushgw.Writers]]
Url = "http://{{ template "nightingale.prometheus.host" . }}:{{ template "nightingale.prometheus.servicePort" . }}/api/v1/write"
@@ -131,4 +129,7 @@ data:
MaxConnsPerHost = 0
MaxIdleConns = 100
MaxIdleConnsPerHost = 100
[Ibex]
Enable = false
RPCListen = "0.0.0.0:{{ template "nightingale.n9e.ibexPort" . }}"
{{- end -}}

View File

@@ -57,14 +57,12 @@ spec:
ports:
- containerPort: {{ template "nightingale.n9e.port" . }}
{{- if .Values.n9e.internal.resources }}
resources:
{{ toYaml .Values.n9e.internal.resources | indent 10 }}
resources:
{{ toYaml .Values.n9e.internal.resources | indent 12 }}
{{- end }}
volumeMounts:
- mountPath: /app/etc
name: n9e-config
- mountPath: /app/etc/template
name: n9e-template
- mountPath: /app/etc/script
name: n9e-script
# hostname: n9e
@@ -73,9 +71,6 @@ spec:
- name: n9e-config
configMap:
name: n9e-config
- name: n9e-template
configMap:
name: n9e-template
- name: n9e-script
configMap:
name: n9e-script

View File

@@ -26,6 +26,9 @@ spec:
- name: "port"
port: {{ template "nightingale.n9e.servicePort" . }}
targetPort: {{ template "nightingale.n9e.port" . }}
- name: "ibex"
port: {{ template "nightingale.n9e.ibexServicePort" . }}
targetPort: {{ template "nightingale.n9e.ibexPort" . }}
selector:
{{ include "nightingale.matchLabels" . | indent 4 }}
component: center

View File

@@ -1,24 +0,0 @@
{{/*
# Copyright 2022 flashcat.cloud | 快猫星云
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
*/}}
{{- if eq .Values.n9e.type "internal" -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: n9e-template
data:
{{ (.Files.Glob "tpl/*.tpl").AsConfig | indent 2 }}
{{- end -}}

View File

@@ -24,7 +24,7 @@ data:
[
{
"targets": [
"n9e: {{ template "nightingale.n9e.servicePort" . }}"
"nightingale-center:{{ template "nightingale.n9e.servicePort" . }}"
]
}
]

View File

@@ -216,7 +216,7 @@ n9e:
automountServiceAccountToken: false
image:
repository: flashcatcloud/nightingale
tag: 6.3.4
tag: 7.0.0
resources: {}
# requests:
# memory: 512Mi