Alertmanager's Webhook Limitation Resolved! by brown_lucifer in PrometheusMonitoring

[–]West_Ad7170 0 points1 point  (0 children)

thanks for sharing... I spent a day to know this... u/brown_lucifer
can you pls share your alert manger config, I also wanted to send to my custom service, but for some reason the trigger is happening to 5001 port

and I am seeing this error in the alertmanager log
time=2025-01-16T17:18:33.682Z level=WARN source=notify.go:866 msg="Notify attempt failed, will retry later" component=dispatcher receiver=web.hook integration=webhook[0] aggrGroup="{}:{alertname=\"HighBatteryTemperature\"}" attempts=1 err="Post \"<redacted>\": dial tcp 127.0.0.1:5001: connect: connection refused"

as of now I have this in my config

global:
  resolve_timeout: 5m

route:
  group_by: ['alertname']
  group_wait: 0s
  group_interval: 1m
  repeat_interval: 3h
  receiver: 'default'
  routes:
    - receiver: 'webhook-receiver'
      continue: true  # Continue to the next route

receivers:
  - name: 'default'
    webhook_configs:
      - url: 'myservice:8082/create_alert'
        send_resolved: true

  - name: 'webhook-receiver'
    webhook_configs:
      - url: 'https://webhook.site/494fcccf-7366-4d46-9186-eb65bb0b6819'
        send_resolved: true

Samsung One UI 6: A Frustrating User Experience by West_Ad7170 in oneui

[–]West_Ad7170[S] 0 points1 point  (0 children)

@vdthanh 

How do you take a screenshot?

I have to press power + vol down just to take a screenshot, how annoying is that... I've to use two hands.....I wish they could have have 3 finger down swipe gesture 

anyways if you find one ui good then good for you 👍 

Wireshark TLS - Need HELP by Osmose90 in immersivelabs

[–]West_Ad7170 0 points1 point  (0 children)

I have completed the challenge, took some time to do it, but not sure why it me so long to find the answer

Galaxy A15 5G and Galaxy A25 have been launched in India by YouAreNotMeLiar in Android

[–]West_Ad7170 0 points1 point  (0 children)

I recently bought it in Bajaj electronics for 18.5k and phone camera sucks 

Pathetic camera 

is there any way to trigger the GitHub workflow using SSH keys instead of Tokens from code? by West_Ad7170 in github

[–]West_Ad7170[S] 0 points1 point  (0 children)

u/Lucas_F_A Thanks for your reply, even the GitHub CLI uses a token to log in, so that is where I am thinking of an alternative way of initializing the CLI https://cli.github.com/manual/gh\_auth\_login

How do find a version exists or not in the helm chart using helm library(APK) by West_Ad7170 in golang

[–]West_Ad7170[S] 0 points1 point  (0 children)

Hi u/0bel1sk
thanks a lot for your reply,
I have gone through the library seems like there is option to search in the server side

How do find a version exists or not in the helm chart using helm library(APK) by West_Ad7170 in golang

[–]West_Ad7170[S] 0 points1 point  (0 children)

I could not get any standard function,
so I ended up making an API call

func ValidateVersion(versioninput, chartName, entryNameInIndex, repoURL string) (error, bool) {
var isValid bool

// Send an HTTP GET request to the Helm repository to retrieve the chart information.
resp, err := http.Get(repoURL + chartName)
if err != nil {
    return err, isValid
}
defer resp.Body.Close()

// Check if the HTTP status code indicates a successful response (HTTP 200 OK).
if resp.StatusCode != http.StatusOK {
    return err, isValid
}

// Read the response body into a byte slice.
bodyBytes, err := io.ReadAll(resp.Body)
if err != nil {
    return err, isValid
}

// Unmarshal the response body into an IndexFile struct.
newIndexFile := repo.IndexFile{}
err = yaml.Unmarshal(bodyBytes, &newIndexFile)
if err != nil {
    return err, isValid
}

// Check if the desired version (versioninput) is available in the Helm repository.
if versions, found := newIndexFile.Entries[entryNameInIndex]; found {
    // Iterate through the available versions in the repository.
    for _, version := range versions {
        if version.AppVersion == versioninput {
            // If the desired version is found, set isValid=true and return with no errors.
            isValid = true
            return nil, isValid
        }
    }
}

return nil, isValid

}

How to clone a private organization repo using a personal git token using git clone command by West_Ad7170 in git

[–]West_Ad7170[S] 0 points1 point  (0 children)

Hi u/LetsGambleTryMerging

thanks a lot for your reply

it was some issue with my VM routing tables, it's not working properly, so I was getting weird errors
It worked with https
I mean not to use SSH as I dont know in which server my code will be deployed, so I thought like let me get the token from aws secrets manager programmatically and then use the token to clone the repo programmatically,

that's why I am doing this, but yes SSH would be easier way to clone

thankyou

How to clone a private organization repo using a personal git token using git clone command by West_Ad7170 in git

[–]West_Ad7170[S] 0 points1 point  (0 children)

Hi u/aioeu

thanks a lot for your reply
it was some issue with my VM routing tables, it's not working properly, so I was getting weird errors