You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use port numbers instead of names in prometheus annotations. (cortexproject#288)
Prometheus scrape configs often use the `prometheus.io/port` annotation
to configure targets per pod:
```
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
action: replace
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
```
This rule only matches when the `prometheus.io/port` annotation is a
port number, and it's not clear to me how the scrape config could be
modified to work with port names. To make the chart compatible with
standard prometheus scrape configs, this patch changes the default port
annotation from port names to port numbers.
Signed-off-by: Josh Carp <jm.carp@gmail.com>
| alertmanager.​persistentVolume.​storageClass | string |`nil`| Alertmanager data Persistent Volume Storage Class If defined, storageClassName: <storageClass> If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. |
121
121
| alertmanager.​persistentVolume.​subPath | string |`""`| Subdirectory of Alertmanager data Persistent Volume to mount Useful if the volume's root directory is not empty |
122
-
| alertmanager.​podAnnotations | object |`{"prometheus.io/port":"http-metrics","prometheus.io/scrape":"true"}`| Pod Annotations |
122
+
| alertmanager.​podAnnotations | object |`{"prometheus.io/port":"8080","prometheus.io/scrape":"true"}`| Pod Annotations |
123
123
| alertmanager.​podDisruptionBudget | object |`{"maxUnavailable":1}`| If not set then a PodDisruptionBudget will not be created |
124
124
| alertmanager.​podLabels | object |`{}`| Pod Labels |
| compactor.​persistentVolume.​storageClass | string |`nil`| compactor data Persistent Volume Storage Class If defined, storageClassName: <storageClass> If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. |
176
176
| compactor.​persistentVolume.​subPath | string |`""`| Subdirectory of compactor data Persistent Volume to mount Useful if the volume's root directory is not empty |
177
-
| compactor.​podAnnotations | object |`{"prometheus.io/port":"http-metrics","prometheus.io/scrape":"true"}`| Pod Annotations |
177
+
| compactor.​podAnnotations | object |`{"prometheus.io/port":"8080","prometheus.io/scrape":"true"}`| Pod Annotations |
178
178
| compactor.​podDisruptionBudget.​maxUnavailable | int |`1`||
179
179
| compactor.​podLabels | object |`{}`| Pod Labels |
| ingester.​persistentVolume.​storageClass | string |`nil`| Ingester data Persistent Volume Storage Class If defined, storageClassName: <storageClass> If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. |
381
381
| ingester.​persistentVolume.​subPath | string |`""`| Subdirectory of Ingester data Persistent Volume to mount Useful if the volume's root directory is not empty |
382
-
| ingester.​podAnnotations | object |`{"prometheus.io/port":"http-metrics","prometheus.io/scrape":"true"}`| Pod Annotations |
382
+
| ingester.​podAnnotations | object |`{"prometheus.io/port":"8080","prometheus.io/scrape":"true"}`| Pod Annotations |
383
383
| ingester.​podDisruptionBudget.​maxUnavailable | int |`1`||
384
384
| ingester.​podLabels | object |`{}`| Pod Labels |
| store_gateway.​persistentVolume.​storageClass | string |`nil`| Store-gateway data Persistent Volume Storage Class If defined, storageClassName: <storageClass> If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. |
686
686
| store_gateway.​persistentVolume.​subPath | string |`""`| Subdirectory of Store-gateway data Persistent Volume to mount Useful if the volume's root directory is not empty |
687
-
| store_gateway.​podAnnotations | object |`{"prometheus.io/port":"http-metrics","prometheus.io/scrape":"true"}`| Pod Annotations |
687
+
| store_gateway.​podAnnotations | object |`{"prometheus.io/port":"8080","prometheus.io/scrape":"true"}`| Pod Annotations |
688
688
| store_gateway.​podDisruptionBudget.​maxUnavailable | int |`1`||
689
689
| store_gateway.​podLabels | object |`{}`| Pod Labels |
0 commit comments