Skip to content

Possible misconfiguration with rules and serviceMonitor #311

@jmtt89

Description

@jmtt89

on kube-thanos-rule.libsonnet

...
            containers: [c] +
                        (
                          if std.length(tr.config.rulesConfig) > 0 || std.length(tr.config.extraVolumeMounts) > 0 || tr.config.alertmanagerConfigFile != {} || tr.config.remoteWriteConfigFile != {} then [
                            reloadContainer,
                          ] else []
                        ),
...
  serviceMonitor: 
      endpoints: [
        ...
        { port: 'reloader' },
...

when I don't include any of the fields: rulesConfig, extraVolumeMounts, alertmanagerConfigFile or remoteWriteConfigFile, the 'reloader' port is still included on ServiceMonitor, but I don't go to anywhere because the reloadContainer is not included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions