Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iter18 #36

Open
wants to merge 73 commits into
base: main
Choose a base branch
from
Open

Iter18 #36

wants to merge 73 commits into from

Conversation

MlDenis
Copy link
Owner

@MlDenis MlDenis commented Jan 26, 2024

No description provided.

MlDenis and others added 30 commits July 13, 2023 19:03
…nter and gauge metrics, storages and type conversion methods.
…mat string and no further arguments should use print-style function instead
…tp://localhost:8080/update/counter/testCounter/100 -> Delete 415 response from unsupported content type.
…ime, custom, agregate), hardWorker. Added basic test for all module.
…ge github.com/MlDenis/prometheus_wannabe/cmd/html; to add it:

	go get github.com/MlDenis/prometheus_wannabe/cmd/html
# github.com/MlDenis/prometheus_wannabe/internal/metrics
internal/metrics/agregateMetricsProvider.go:31:4: fmt.Println call has possible formatting directive %v
internal/metrics/customMetricsProvider.go:32:2: fmt.Println call has possible formatting directive %v
internal/metrics/customMetricsProvider.go:35:2: fmt.Println call has possible formatting directive %v
internal/metrics/runtimeMetricsProvider.go:41:3: fmt.Printf format %V has unknown verb V.
…ge github.com/MlDenis/prometheus_wannabe/cmd/html; to add it:

	go get github.com/MlDenis/prometheus_wannabe/cmd/html.
…gnment mismatch: 1 variable but NewHTTPMetricsAgent returns 2 values
…начнут поступать данные: context deadline exceeded.
io-2301 and others added 29 commits July 31, 2023 12:26
Changed the cpuUtilizationMetrics type to slice instead of map.
Changed cpuInterval to a constant.
The updateCPUMetrics function now checks that index i does not exceed the length of cpuUtilizationMetrics.
Instead of returning an error immediately after receiving it, error handling is implemented directly in the loop.
Instead of logging every metric update, only errors are logged.
Rename profile dirrectory to profiles.
Go version up to 1.21.5.
Add result.pprof.
Rename profile dirrectory to profiles.
Add result.pprof.
Used the goimports utility to correct imports in the project.
Added documentation in year format to the main exported methods and variables (handlers, public structures and interfaces).
Added an example of working with practical track endpoints in the example_test.go format.
"github.com/sirupsen/logrus"
)

type Config struct {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

К конфигу хорошо бы дать комментарии или доку, важная часть

})
}

func (p *postgresDataBase) ReadItem(ctx context.Context, metricType string, metricName string) (*database.DBItem, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Как и ко всем публичным методам

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants