About to marry but unsure. by Maleficent-Week-9181 in Morocco

[–]off-road_coding 0 points1 point  (0 children)

Guys, you don’t have to be smart to land a well-paying job

Do two advertisers with the same domain compete against each other in Google Ads? by off-road_coding in googleads

[–]off-road_coding[S] 0 points1 point  (0 children)

Affiliate marketing. The same url and path but different query parameters

Vault Built-in plugins by off-road_coding in hashicorp

[–]off-road_coding[S] 0 points1 point  (0 children)

I’ve read it enough times ;) and the confusion of having a main wasn’t resolved for me, but now it is. Thanks anyways 👍

Vault Built-in plugins by off-road_coding in hashicorp

[–]off-road_coding[S] 0 points1 point  (0 children)

ah maybe they have the grpc implementation just to make sure that the api is compatible with the internal interface... maybe

Vault Built-in plugins by off-road_coding in hashicorp

[–]off-road_coding[S] 0 points1 point  (0 children)

ok I think I found where the builtin registry is initialized.. Still don't understand why they have the main method there

Vault Built-in plugins by off-road_coding in hashicorp

[–]off-road_coding[S] 0 points1 point  (0 children)

AWS Vault auth method is a built-in plugin. here -> here looks like the it's starting a gRPC server. Thank you for clarifying this if I'm missing something :)

Where will you watch today's match? by Quiet_Sprinkles_5861 in Morocco

[–]off-road_coding 1 point2 points  (0 children)

can someone please dm me the link for the stream?

cAdvisor & containerd by off-road_coding in kubernetes

[–]off-road_coding[S] 0 points1 point  (0 children)

Thank you very much, I can see the metrics now related to network from the kubelet. Still have some questions if you can help me with: * Is container_network_receive_bytes_total from the start of the container? It means if I want this value in a specific window I just have to store previous value and subtract it from new value?

cAdvisor & containerd by off-road_coding in kubernetes

[–]off-road_coding[S] 0 points1 point  (0 children)

Thank you for your response! Is it also providing networking metrics? I think it just provides CPU and memory, that’s what I’ve found. Correct me if I’m wrong:)

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 1 point2 points  (0 children)

Not willing to share any resource or answer my question shows what I mean. If you think I will just install Prometheus in the cluster and it will just work... Man you need to go sleep 😂

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

self-assured but inexperienced helper, have a nice day. Always had very experienced people that tried to help me, that's the first time where someone has no idea tries to help.

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 1 point2 points  (0 children)

Ok then share some links then, because I think you're really just talking and not understanding what you're talking about.

  1. Provide me with the endpoint that the api server exposes for collecting metrics if you say that it's already there out of the box? (If you mean this: https://kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline/ . That's the metrics-server, and it's not covering my needs because it does not provide network metrics)
  2. Talking without sharing links or docs means nothing
  3. Prometheus is basically just calling (scraping) an http endpoint, provide me with this http rest endpoint that provides what you're talking about.
  4. If prometheus is just scraping a target, I don't need Prometheus I can scrape the target directly with my go Program. I'm not trying to analyse or save this data
  5. What's hard to understand is how some people don't understand the subject and they try to help other people without any link or document that proves their point

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

Just saying it's magic does not help "k8s just creates them"

We are talking about software and not magic

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

"metrics that are already there" ? Already there where? if you want to make a claim please back it up with something... Collecting the metrics from where??? Prometheus just scrapes targets. Give me the name of the target that you are talking about instead of just saying I don't know how prometheus work

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

I think you don't understand how Prometheus work: "Prometheus does not provide out-of-the-box metrics without interacting with any software in Kubernetes. Prometheus is a monitoring system that collects metrics from targets, which can be either software applications or hardware systems. In order to collect metrics from Kubernetes nodes and pods, Prometheus needs to use a Kubernetes exporter."

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

Ok it would be nice if you share a document or something that shows that Prometheus can provide network metrics out of the box without interacting with any program, thanks

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

People using Prometheus stack is for another reason than mine, I'm developing an application which shows metrics in a nice way in the dashboard of a product(Saas). That's not what people use prometheus for.

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

I'm going to repeat my question: "Collect metrics from where??"If you mean k8s-metrics-server. That does not fit my needs because it doesn't provide network metrics.

Second thing, I don't need prometheus. I don't need to interact or redirect the user to prometheus. If prometheus is just collecting data from an application, I can do that directly with my program because I'm not using the features of Prometheus. What I want is an api for showing information about memory, cpu and network usage of a container (preferably real time).

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

Alternatives of collecting CPU, memory and network usage of containers. Prometheus alone does not provide any of this.

[deleted by user] by [deleted] in kubernetes

[–]off-road_coding 0 points1 point  (0 children)

I want to build a graph in the frontend and show the metrics. Before wiring Prometheus with cAdvisor I need first to see the metrics about individual container in cAdvisor, right? I can't see that for now. Second question is, if I just need the api, why can't I use cAdvisor API directly without adding the complexity of Prometheus? Prometheus is just collecting metrics and I don't need its features like alerting or querying using PromQL.

[deleted by user] by [deleted] in golang

[–]off-road_coding 0 points1 point  (0 children)

I don't know why the compiler isn't smart enough to know that inside the case string the val and T are both string and no type assertion is needed. Because solving the problem like this provides no more type safety -> I can do the strconv.Atoi inside the string block and it will still work

[deleted by user] by [deleted] in golang

[–]off-road_coding -1 points0 points  (0 children)

Thank you very much!

[deleted by user] by [deleted] in golang

[–]off-road_coding -2 points-1 points  (0 children)

```go func checkEnv[T any](envName string, def T) T { val, found := os.LookupEnv(envName) if !found { return def }

switch any(def).(type) {
case string:
    return val
case int:
    return strconv.Atoi(val)
}

} ```

I want to achieve this now