-
Hello, community! I have a question regarding internal vector metrics. There are cases when:
The solution for
For the
Yet it needs to be more accurate because the real problem is when the end of a sink responds with errors, but I need help finding a generic approach. No idea how to alert on I'd appreciate it if someone could take a look at what I'm doing and give me some hints hot to setup alerting rules correctly for vector. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @nabokihms , For For For For Hope this helps |
Beta Was this translation helpful? Give feedback.
-
@neuronull thank you for the answer. The The only behavior that may be not so obvious is that Example of scrapes:
This behavior makes the result of the |
Beta Was this translation helpful? Give feedback.
Hi @nabokihms ,
For
2
, when you say "Vector cannot send logs" , do you mean that the vector source cannot send events downstream? (My following notes assume this is the case).For
2.1
, you can use https://vector.dev/docs/reference/configuration/sources/internal_metrics/#component_errors_totalFor
2.2
, the one you identified is good. This is also helpful, if the sink has a buffer: https://vector.dev/docs/reference/configuration/sources/internal_metrics/#buffer_discarded_events_totalFor
1
,component_errors_total
is also what I'd recommend. This might also be helpful https://vector.dev/docs/reference/configuration/sources/kubernetes_logs/#k8s_watch_stream_failed_totalHope this helps