Skip to content

[Feature]: Plugin output with more details or customised #72

@wattebausch

Description

@wattebausch

Describe the feature request

We alert our developers via Icinga. Via e-mail or a messager. Unfortunately, the developers can't get much information from the message and have to log in to Prometheus. A big advantage would be if we could get more or info or customised like ‘namespace’ or ‘pod’. The info on Instance: [IP:Port] is not necessary from our point of view. The cluster name is covered by the host from Icinga.

Output from check_prometheus

[CRITICAL] - 3 Alerts: 1 Firing - 2 Pending - 0 Inactive
\_ [WARNING] [FluxKustomizationNotApplied] - Job: [kube-state-metrics] on Instance: [10.42.0.58:8080] is pending - value: 1.00
\_ [CRITICAL] [InfoInhibitor] on Instance: [10.XX.XX.XX:10250] is firing - value: 1.00
\_ [WARNING] [CPUThrottlingHigh] on Instance: [10.XX.XX.175:10250] is pending - value: 0.38

Output from Prometheus

FluxKustomizationNotApplied
gotk_resource_info{container="kube-state-metrics", customresource_group="kustomize.toolkit.fluxcd.io", customresource_kind="Kustomization", customresource_version="v1", endpoint="http", exported_namespace="flux-system", instance="10.42.1.10:8080", job="kube-state-metrics", name="apps", namespace="infra", pod="infra-metrics-kube-state-metrics-6d9c96cf74-95ggq", ready="Unknown", revision="main@sha1:40e136d9cd5c81d45bc9293751778a79a9cb795c", service="infra-metrics-kube-state-metrics", source_name="flux-system"} 1

InfoInhibitor
ALERTS{alertname="CPUThrottlingHigh", alertstate="pending", container="container", instance="10.XX.XX.175:10250", namespace="apps-dev", pod="r-deployment-78d78f556d-cwsl9", service="infra-metrics-kube-prometh-kubelet", severity="info"} 1

CPUThrottlingHigh
{container="container", instance="10.XX.XX.XX:10250", namespace="apps-dev", pod="r-deployment-78d78f556d-cwsl9", service="infra-metrics-kube-prometh-kubelet"} 0.38

what do you think about this? how do you deal with messages?
Greetings and thanks
Marcel

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions