-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Expand file tree
/
Copy pathvalues.yaml
More file actions
174 lines (155 loc) · 4.98 KB
/
Copy pathvalues.yaml
File metadata and controls
174 lines (155 loc) · 4.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# Default values for prometheus-modbus-exporter.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
## if one needs to define the below modbus.yml in a separate configMap
## that configMap name can be mentioned here:
# configMapFile: "my-existing-modbus-config"
## when the above configMapFile parameter is not defined, it will be created
## using below parameters (usually send to the chart as custom values)
modules:
# Module name, needs to be passed as parameter by Prometheus.
# the name must be matched with the name of serviceMonitor.endpointsConfig[x].params.module
- name: "fake"
protocol: 'tcp/ip'
metrics:
# Name of the metric.
- name: "power_consumption_total"
# Help text of the metric.
help: "represents the overall power consumption by phase"
# Labels to be added to the time series.
labels:
phase: "1"
# Register address.
# The first digit of the address is the function code
# Supported codes are: 1, 2, 3, 4
address: 300022
# Datatypes allowed: bool, int16, int32, int64, uint16, uint32, uint64,
# float16, float32, float64
# One register holds 16 bits.
dataType: int16
# Endianness allowed: big, little, mixed, yolo
# Optional. If not defined: big.
endianness: big
# Prometheus metric type: https://prometheus.io/docs/concepts/metric_types/.
metricType: counter
# Factor can be specified to represent metric value.
# Examples: 1, 2, 1.543, 0.01 etc
# Factor is multiplied with the scraped value to produce the metric value
# Optional.
factor: 3.1415926535
- name: "some_gauge"
help: "some help for some gauge"
address: 30023
dataType: int16
metricType: gauge
factor: 2
- name: "coil"
help: "some help for some coil"
address: 124
dataType: bool
bitOffset: 0
metricType: gauge
## The prometheus operator serviceMonitor for modbus
serviceMonitor:
## even if enabled is true, if serviceMonitor crd is not installed, this will be skipped.
enabled: true
endpointsConfig:
- params:
target:
- "10.1.2.3:502"
module:
## module listed must be matched with the module[x].name specified in section above
- "fake"
sub_target:
- "1"
## configurations common for all above endpoints:
endpointsCommonConfig:
## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
scheme: http
interval: 10s
scrapeTimeout: 1s
metricRelabelings: []
relabelings: []
followRedirects: true
# enableHttp2: false
annotations: {}
labels:
release: prometheus
log:
## choose one: debug,info,warn,error
level: "info"
## logfmt,json
format: "logfmt"
## The prometheus operator serviceMonitor for exporter itself
serviceMonitorExporterItself:
enabled: true
annotations: {}
labels:
release: prometheus
image:
registry: docker.io
# repository: richih/modbus_exporter
repository: openenergyprojects/modbus_exporter
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "20230617_a144551"
configReloaderSidecar:
enabled: true
image:
registry: docker.io
repository: openenergyprojects/config-reloader-sidecar
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "20230519_90573b0"
# The config-reloader-sidecar image runs as root in order to send signals
# to the modbus_exporter process via the shared PID namespace. When the
# pod-level podSecurityContext sets runAsNonRoot: true (the default), the
# sidecar must declare a container-level securityContext that overrides it,
# otherwise kubelet refuses to start the container with
# "container has runAsNonRoot and image will run as root".
securityContext:
runAsNonRoot: false
runAsUser: 0
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext:
# runAsGroup: 65534
# runAsUser: 65534
# fsGroup: 65534
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 9602
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}