alertmanager | Prometheus Alertmanager | Monitoring library

 by   prometheus Go Version: v0.25.0 License: Apache-2.0

kandi X-RAY | alertmanager Summary

kandi X-RAY | alertmanager Summary

alertmanager is a Go library typically used in Performance Management, Monitoring, Prometheus applications. alertmanager has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integrations such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              alertmanager has a medium active ecosystem.
              It has 5752 star(s) with 2010 fork(s). There are 184 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 380 open issues and 1246 have been closed. On average issues are closed in 108 days. There are 87 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of alertmanager is v0.25.0

            kandi-Quality Quality

              alertmanager has 0 bugs and 0 code smells.

            kandi-Security Security

              alertmanager has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              alertmanager code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              alertmanager is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              alertmanager releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 41078 lines of code, 1868 functions and 225 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of alertmanager
            Get all kandi verified functions for this library.

            alertmanager Key Features

            No Key Features are available at this moment for alertmanager.

            alertmanager Examples and Code Snippets

            No Code Snippets are available at this moment for alertmanager.

            Community Discussions

            QUESTION

            Enable use of images from the local library on Kubernetes
            Asked 2022-Mar-20 at 13:23

            I'm following a tutorial https://docs.openfaas.com/tutorials/first-python-function/,

            currently, I have the right image

            ...

            ANSWER

            Answered 2022-Mar-16 at 08:10

            If your image has a latest tag, the Pod's ImagePullPolicy will be automatically set to Always. Each time the pod is created, Kubernetes tries to pull the newest image.

            Try not tagging the image as latest or manually setting the Pod's ImagePullPolicy to Never. If you're using static manifest to create a Pod, the setting will be like the following:

            Source https://stackoverflow.com/questions/71493306

            QUESTION

            I am getting this error while installing prometheus operator in helm
            Asked 2022-Mar-08 at 11:47

            This chart is deprecated Error: INSTALLATION FAILED: failed to install CRD crds/crd-alertmanager.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

            ...

            ANSWER

            Answered 2022-Mar-08 at 11:47

            helm install prometheus monitor/prometheus-operator --namespace prometheus

            The chart prometheus-operator is deprecated!

            Deprecation message:

            Source https://stackoverflow.com/questions/71393371

            QUESTION

            create a Prometheus alert that flips on and off every 1 minute
            Asked 2022-Mar-04 at 13:19

            I would like to create a Prometheus alert that sends a firing alert every minute and then resolves itself and sends a resolved alert. What i am instead seeing is that the alert stays firing instead of ever becoming resolved.

            This is the rule file:

            ...

            ANSWER

            Answered 2022-Mar-04 at 13:19

            Adding an explicit threshold to the expression for your rule should solve the issue, like this:

            expr: minute() % 2 == 0

            Source https://stackoverflow.com/questions/71341148

            QUESTION

            Grafana Datasource Prometheus 404
            Asked 2022-Feb-25 at 10:13

            We are using AWS EKS, i deployed Promethus using the below command:

            ...

            ANSWER

            Answered 2022-Feb-25 at 10:13

            This is because you're targeting the wrong service. You're using the alert manager url instead of the prometheus server.
            The URL should be this one :

            Source https://stackoverflow.com/questions/71261619

            QUESTION

            sync all firing alerts to webhook at specific point in time from alertmanager
            Asked 2022-Feb-23 at 11:13

            Trying to resend all firing alarms to webhook at a specific point in time due to webhook requirement for synchronisation. Prometheus and alertmanager are deployed within a kubernetes cluster in gcp.

            Any idea how to do this. The repeat_intervall is only resending one specific alert after 12h but need to send all of them at once.

            find attached my alertmanager config

            ...

            ANSWER

            Answered 2022-Feb-23 at 11:13

            Looks like there's no such configuration in alertmanager for now.

            Instead you could call the alertmanager api to fetch all currently firing alerts at a specific point in time in your webhook system, the same way as amtool does.

            The swagger openapi docs is as follows:

            Alertmanager API

            Source https://stackoverflow.com/questions/71232982

            QUESTION

            How to pass viewmodel to a viewcontroller using navigationController?
            Asked 2022-Feb-21 at 11:01

            So i ran into this weird problem.This is my navigation navigation basically it's LoginVC then NavigationController then HomeVC i'm trying to change rootViewcontroller form loginVC to Navigation.HomeVC is itself a rootVC for navigationController. The problem is that i cannot figure out how to pass viewmodel from loginVC to homeVC. This is how i instaniate NavigationController:

            ...

            ANSWER

            Answered 2022-Feb-21 at 11:01

            If you initialize your HomeVC via Storyboard, you cannot initialize it with your init(viewmodel:) initializer. Storyboard uses init(coder:) initializer to initialize your view controller. So you need set your viewmodel after you initalize your HomeVC. And if you set your HomeVC to root of your UINavigationController on Storybard. You can reach it from UINavigationController's topViewController property.

            But if you want to use initializer injection approach to pass your dependencies, then you need to initialize your viewcontrollers programmatically. For example:

            Source https://stackoverflow.com/questions/71204223

            QUESTION

            Drop or rename scrape_config label
            Asked 2022-Feb-18 at 16:15

            I'd love to rename or drop a label from a /metrics endpoint within my metric. The metric itself is from the kube-state-metrics application, so nothing extraordinary. The metric looks like this:

            ...

            ANSWER

            Answered 2022-Feb-18 at 16:15

            The problem is that you are doing those operations at the wrong time. relabel_configs happens before metrics are actually gathered, so, at this time, you can only manipulate the labels that you got from service discovery.

            That node label comes from the exporter. Therefore, you need to do this relabeling action under metric_relabel_configs:

            Source https://stackoverflow.com/questions/71174336

            QUESTION

            "Smart" Grafana alerts - or - Compound Conditional of Unrelated Targets in Prometheus
            Asked 2022-Feb-17 at 06:24
            Summary

            I want to alert using Grafana 8+ when a specific PromQL result is greater than 0 and when another, unrelated PromQL result is 1.

            Background

            We have devices that are turned on and off each day. I want to know when they're down during this operating window. I'm using probe_success as the PromQL query to know when a device is down. I'm using a custom Prometheus app to know when devices are on and off - example PromQL powerStatus{job="powerMonitor", section="1", zone="2" } == bool 1

            Attempts

            I've looked into straight alertmanager/PromQL but haven't found a query that will work when I want it to, considering the power status of the section and zone. I've tried everything I can extract out of the Grafana 8 alert documentation including using Classic Condition expressions but it seems that I can only come up with a solution that relies on the evaluation of a Classic Condition in another Classic Condition which isn't allowed. I thought this would be a common use case but I'm not seeing blog posts on the web about it.

            Hunch

            I have a feeling that there is an idiomatic way to accomplish this that I'm not seeing, sort of like when going from imperative to declarative programming and wanting to loop through sets of data :).

            Can you help?

            ...

            ANSWER

            Answered 2022-Feb-17 at 06:24

            The thing you need is the on() vector match operator. The thing works much like JOIN in the context of relational databases.

            The examples below are based on the following metrics:

            Source https://stackoverflow.com/questions/70353516

            QUESTION

            Upgrading to Traefik v2 in docker-compose file for Docker Swarm - use of $ signs in the config, etc
            Asked 2022-Feb-15 at 10:49

            Traefik works great. Setting it up may require some perseverance. In this post you find a number of hints on upgrading to Traefik v2.5 in a Docker Swarm environment. In the question about how to use the $ sign.

            What are the rules for using $ signs and environment variables in the dynamic Traefik configuration in docker-compose files? What is the design behind this way of coding?

            I haven't found a solid description on what to use in the docker-compose file for Traefik. Yes, Treafik documentation mentions a few times that we should take care of the $ sign.

            As a 'spec by example' after scanning the internet, are these all valid? Are there better ways? => yes

            • "traefik.http.routers.mycomp.rule=Host(`somwhere.uk`) && PathPrefix(`/comp/${STACK_NAME}}`)"
            • "traefik.http.routers.mycomp.service=wiremock_${STACK_NAME}"

            Basic authentication: so, doubling any $ sign => yes

            • "traefik.http.middlewares.dashboard.basicauth.users=admin:$$2a$$13$$xoE7...HG"

            Replacements: doubling any $ sign? => yes

            • "traefik.http.middlewares.grafana.replacepathregex.regex=^/grafana/(.*)" with
            • "traefik.http.middlewares.grafana.replacepathregex.replacement=/$$1"

            Replacements with an environment variable. Just like this?

            • "traefik.http.routers.dkkbeheerapp.middlewares=abc"
            • "traefik.http.middlewares.abc.stripprefix.prefixes=/prefix/${STACK_NAME}"

            Regexps:doubling any $ sign? => yes

            • "traefik.http.routers.alertmanager.middlewares=abc,def"
            • "traefik.http.middlewares.abc.redirectregex.regex=^(.*)/alertmanager$$"
            • "traefik.http.middlewares.abc.redirectregex.replacement=$$1/alertmanager/"
            • "traefik.http.middlewares.def.replacepathregex.regex=^/alertmanager/(.*)"
            • "traefik.http.middlewares.def.replacepathregex.replacement=/alertmanager/$$1"
            ...

            ANSWER

            Answered 2022-Feb-15 at 09:39

            Finally I got all Traefik v1 config upgraded to v2.5.

            The configs given in the question are all valid.

            Maybe you value some conversion hints to Traefik v2.5 in a Docker Swarm:

            • When you have different host names, back-quote each of them. So, Host( `a`, `b`).
            • There is a conversion tool. Be aware that the standard global: {} gives errors. Use the clause only with at least one property, like checkNewVersion: false.
            • In a set of different Docker Swarms and multiple nodes, you may have to listen to Docker events on a specific Docker EE managers port. Not the /var/run/docker.sock.
            • In a Docker Swarm you may use service names like stack_container. I had to use these stack_container name as well as the name in the routers, not just 'container'.
            • Don't forget to put the Traefik labels under the deploy section of your service (in a docker-compose.yml) file.
            • When you get this message (failed ... InvalidArgument desc = only updates to Labels are allowed) then you should remove (or update via a version-suffix) your static traefik configuration file.

            Enjoy Traefik v2.5+

            Source https://stackoverflow.com/questions/71052602

            QUESTION

            Change in Grafana helm chart to install as kind Statefulset instead of Deployment
            Asked 2022-Feb-03 at 16:26

            I had installed kube-prometheus-stack from the helm chart repo prometheus-community

            ...

            ANSWER

            Answered 2022-Feb-03 at 08:21

            Enable persistence if you want to make it stateful. However I did not see an option to make Grafana a statefulset in the chart you mentioned.

            Usually you will see persistence enable option if the corresponding Helm chart support it. For example: you can enable persistence in this grafana helm chart. You may generate template out of it and make use of it in your repo.

            Source https://stackoverflow.com/questions/70960615

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install alertmanager

            There are various ways of installing Alertmanager.
            Precompiled binaries for released versions are available in the download section on prometheus.io. Using the latest production release binary is the recommended way of installing Alertmanager.
            Alternatively you can install with:.

            Support

            Check the Prometheus contributing page. To contribute to the user interface, refer to ui/app/CONTRIBUTING.md.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Monitoring Libraries

            netdata

            by netdata

            sentry

            by getsentry

            skywalking

            by apache

            osquery

            by osquery

            cat

            by dianping

            Try Top Libraries by prometheus

            prometheus

            by prometheusGo

            node_exporter

            by prometheusGo

            client_golang

            by prometheusGo

            blackbox_exporter

            by prometheusGo

            client_python

            by prometheusPython